数据库表设计时必须有的字段

387 阅读1分钟

image.png

  • create_time
  • update_time
  • is_deleted
create_time   timestamp default CURRENT_TIMESTAMP not null comment '创建时间',
update_time   timestamp default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间',
is_deleted  tinyint default 0 not null comment '删除标志(0:未删除,1:已删除)'