35 lines
627 B
PHP
35 lines
627 B
PHP
|
|
<?php namespace Akami\Shift\Models;
|
||
|
|
|
||
|
|
use Model;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Model
|
||
|
|
*/
|
||
|
|
class Content extends Model
|
||
|
|
{
|
||
|
|
use \October\Rain\Database\Traits\Validation;
|
||
|
|
|
||
|
|
use \October\Rain\Database\Traits\SoftDelete;
|
||
|
|
|
||
|
|
protected $dates = ['deleted_at'];
|
||
|
|
|
||
|
|
public $implement = ['@RainLab.Translate.Behaviors.TranslatableModel'];
|
||
|
|
|
||
|
|
public $translatable = [
|
||
|
|
'contents'
|
||
|
|
];
|
||
|
|
|
||
|
|
public $jsonable = ['contents','imgs'];
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @var string The database table used by the model.
|
||
|
|
*/
|
||
|
|
public $table = 'akami_shift_content';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @var array Validation rules
|
||
|
|
*/
|
||
|
|
public $rules = [
|
||
|
|
];
|
||
|
|
}
|