mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02: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 $auto = [];
|
||||||
// 新增的字段完成
|
// 新增的字段完成
|
||||||
protected $insert = [];
|
protected $insert = [
|
||||||
|
'create_time' => 'time',
|
||||||
|
];
|
||||||
// 更新的字段完成
|
// 更新的字段完成
|
||||||
protected $update = [];
|
protected $update = [
|
||||||
|
'update_time' => 'time',
|
||||||
|
];
|
||||||
|
|
||||||
// 当前执行的关联类型
|
// 当前执行的关联类型
|
||||||
private $relation;
|
private $relation;
|
||||||
|
|||||||
Reference in New Issue
Block a user