This commit is contained in:
aozhiwei 2023-08-11 13:48:43 +08:00
parent 23648b48b8
commit 563a032f5b

12
README.md Normal file
View File

@ -0,0 +1,12 @@
# 数据库规范
所有的表都必须有一下字段
CREATE TABLE `t_xxx` (
`idx` bigint(20) NOT NULL AUTO_INCREMENT,
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8;
表字段没特别原因下,必须有默认值
表名称t_开始