1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- kind: DataContainer
- spec:
- namespace: # 替换
- data_source: # 替换
- name: # 替换.permissions
- spec:
- table_name: # 替换.permissions
- columns:
- - name: id
- type: "varchar(32)"
- comment: id
- primary_key: true
- - name: name
- type: "varchar(256)"
- comment: 权限名称
- not_null: true
- index: true
- unique: true
- - name: description
- type: "text"
- comment: 权限描述
- not_null: true
- - name: resource
- type: "text"
- comment: resource
- not_null: true
- index: true
- unique_index: "permission_resource_action"
- - name: action
- type: "varchar(128)"
- comment: action
- not_null: true
- index: true
- unique_index: "permission_resource_action"
- - name: create_user_id
- type: "varchar(32)"
- comment: 创建用户ID
- not_null: true
- - name: last_update_user_id
- type: "varchar(32)"
- comment: 最近更新用户ID
- not_null: true
- - name: created_time
- type: "timestamp with time zone"
- comment: 创建时间
- not_null: true
- - name: last_updated_time
- type: "timestamp with time zone"
- comment: 最近更新时间
- not_null: true
|