b68fc4d2c1
add dao support for db
30 lines
727 B
YAML
30 lines
727 B
YAML
- group: account
|
||
comment: 账号相关
|
||
tables:
|
||
- name: user
|
||
comment: 用户表
|
||
fields:
|
||
- name: id
|
||
comment: 用户编号
|
||
type: INTEGER
|
||
index: pk
|
||
extra: AUTO_INCREMENT
|
||
- name: name
|
||
comment: 姓名
|
||
type: VARCHAR(30)
|
||
- name: phone
|
||
comment: 手机号
|
||
type: VARCHAR(20)
|
||
index: unique
|
||
- name: addDate
|
||
comment: 创建时间
|
||
type: DATETIME
|
||
index: index
|
||
- name: version
|
||
comment: 数据版本号
|
||
type: INTEGER
|
||
index: index
|
||
- name: isValid
|
||
comment: 是否有效(1-启用,0-禁用)
|
||
type: INTEGER
|