mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
默认添加create_time update_time 自动完成规则
This commit is contained in:
@@ -48,9 +48,13 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
// 字段完成规则
|
||||
protected $auto = [];
|
||||
// 新增的字段完成
|
||||
protected $insert = [];
|
||||
protected $insert = [
|
||||
'create_time' => 'time',
|
||||
];
|
||||
// 更新的字段完成
|
||||
protected $update = [];
|
||||
protected $update = [
|
||||
'update_time' => 'time',
|
||||
];
|
||||
|
||||
// 当前执行的关联类型
|
||||
private $relation;
|
||||
|
||||
Reference in New Issue
Block a user