sintonia_webapp/app/Models/SmartBlockContent.php
marcoc 1fab88b637 feat(smart blocks): added models, controller and filters.
ToDo: add repeat tracks, schedule (smart block length: remaining)
2025-02-17 18:18:08 +01:00

33 lines
668 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class SmartBlockContent extends Model
{
use HasFactory;
protected $table = 'cc_blockcontents';
public $timestamps = false;
protected $fillable = [
'block_id',
'file_id',
'position',
'trackoffset',
'cliplength',
'cuein',
'cueout',
'fadein',
'fadeout'
];
public function block() {
return $this->belongsTo(SmartBlock::class, 'block_id');
}
public function file() {
return $this->belongsTo(File::class, 'file_id');
}
}