//自动时间戳开启
protected $autoWriteTimestamp = ‘datetime’;
//只读字段。保护字段
protected $readonly = [‘uid’];
//自动类型转换
protected $type=[
‘uid’ => ‘integer’,
‘price’ => ‘float’
];
//自动时间戳开启
protected $autoWriteTimestamp = ‘datetime’;
//只读字段。保护字段
protected $readonly = [‘uid’];
//自动类型转换
protected $type=[
‘uid’ => ‘integer’,
‘price’ => ‘float’
];