database.php 文件中
// 自动写入时间戳字段 //true :是int类型 datetime:是datetime类型
'auto_timestamp' => 'datetime',
int类型则是这样
create_time int(11) unsigned null,
update_time int(11) unsigned null,
delete_time int(11) unsigned null
datetime是这样
create_time timestamp null,
update_time timestamp null,
delete_time timestamp null
datetime默认值为当前时间
deadline timestamp default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '截至日期'