Files
liche/sql/--readme--.txt
2021-07-22 10:01:41 +08:00

38 lines
835 B
Plaintext
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
原则一:NOT NULL
原则二:非必填项 DEFAULT
#一些约定#
除uid外,其他id用 [name]_id 来命名;
在innodb 字符串推荐用 varchar
复合字段命名 *_json eg:log_json
#默认命名#
uid '用户id' int
biz_id '商家id' int
app_id '应用id' int
city_id '城市id' int
sort '排序' int
status '状态' tinyint
ifopen '是否开启' tinyint
ifcheck '是否审核' tinyint
type '类型' tinyint
mobile '手机号码' varchar
descrip '描述/摘要' varchar
cardid '身份证' varchar
c_time '创建时间' int
u_time '更新时间' timestamp
s_time '开始时间' timestamp
e_time '结束时间' timestamp
cf_id ’来源id
cf_title ‘来源title
cf_platform ’来源平台‘
cf_device ‘来源设备’
待补充..