52 lines
994 B
PHP
52 lines
994 B
PHP
<?php
|
|
|
|
namespace app\common\model;
|
|
|
|
use support\Model;
|
|
|
|
class VehDictMapping extends Model
|
|
{
|
|
/**
|
|
* The connection name for the model.
|
|
*
|
|
* @var string|null
|
|
*/
|
|
protected $connection = 'mysql';
|
|
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'veh_dict_mapping';
|
|
|
|
/**
|
|
* The primary key associated with the table.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $primaryKey = 'id';
|
|
|
|
/**
|
|
* Indicates if the model should be timestamped.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $timestamps = true;
|
|
|
|
|
|
protected $dateFormat = 'U';
|
|
|
|
protected $casts = [
|
|
'required' => 'integer',
|
|
'enabled' => 'integer',
|
|
'sort_order' => 'integer',
|
|
'created_at' => 'integer',
|
|
'updated_at' => 'integer',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'field','dict','required','enabled','sort_order',
|
|
'remark','created_at','updated_at'
|
|
];
|
|
} |