2100 lines
50 KiB
JSON
2100 lines
50 KiB
JSON
{
|
|
"id": "00000000-0000-0000-0000-000000000000",
|
|
"prevId": "",
|
|
"version": "5",
|
|
"dialect": "mysql",
|
|
"tables": {
|
|
"sys_dict_items": {
|
|
"name": "sys_dict_items",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"type_id": {
|
|
"autoincrement": false,
|
|
"name": "type_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"item_key": {
|
|
"autoincrement": false,
|
|
"name": "item_key",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"item_value": {
|
|
"autoincrement": false,
|
|
"name": "item_value",
|
|
"type": "varchar(200)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"label": {
|
|
"autoincrement": false,
|
|
"name": "label",
|
|
"type": "varchar(100)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"label_en": {
|
|
"autoincrement": false,
|
|
"name": "label_en",
|
|
"type": "varchar(200)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"description": {
|
|
"autoincrement": false,
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"pid": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "pid",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"path": {
|
|
"autoincrement": false,
|
|
"name": "path",
|
|
"type": "varchar(500)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"level": {
|
|
"default": 1,
|
|
"autoincrement": false,
|
|
"name": "level",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"sort_order": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "sort_order",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"default": "'active'",
|
|
"autoincrement": false,
|
|
"name": "status",
|
|
"type": "varchar(20)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"css_class": {
|
|
"autoincrement": false,
|
|
"name": "css_class",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"color": {
|
|
"autoincrement": false,
|
|
"name": "color",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"extra": {
|
|
"autoincrement": false,
|
|
"name": "extra",
|
|
"type": "json",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_by": {
|
|
"autoincrement": false,
|
|
"name": "created_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_by": {
|
|
"autoincrement": false,
|
|
"name": "updated_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "updated_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"deleted_at": {
|
|
"autoincrement": false,
|
|
"name": "deleted_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_dict_items_id": {
|
|
"name": "sys_dict_items_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_deleted_at": {
|
|
"name": "idx_deleted_at",
|
|
"columns": [
|
|
"deleted_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_key": {
|
|
"name": "idx_key",
|
|
"columns": [
|
|
"item_key"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_pid": {
|
|
"name": "idx_pid",
|
|
"columns": [
|
|
"pid"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_sort": {
|
|
"name": "idx_sort",
|
|
"columns": [
|
|
"type_id",
|
|
"sort_order"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_status": {
|
|
"name": "idx_status",
|
|
"columns": [
|
|
"status"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_type_id": {
|
|
"name": "idx_type_id",
|
|
"columns": [
|
|
"type_id"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {
|
|
"uk_type_key": {
|
|
"name": "uk_type_key",
|
|
"columns": [
|
|
"type_id",
|
|
"item_key",
|
|
"deleted_at"
|
|
]
|
|
}
|
|
},
|
|
"checkConstraint": {}
|
|
},
|
|
"sys_dict_types": {
|
|
"name": "sys_dict_types",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"code": {
|
|
"autoincrement": false,
|
|
"name": "code",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"autoincrement": false,
|
|
"name": "name",
|
|
"type": "varchar(100)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"description": {
|
|
"autoincrement": false,
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"pid": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "pid",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"path": {
|
|
"autoincrement": false,
|
|
"name": "path",
|
|
"type": "varchar(500)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"level": {
|
|
"default": 1,
|
|
"autoincrement": false,
|
|
"name": "level",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"default": "'active'",
|
|
"autoincrement": false,
|
|
"name": "status",
|
|
"type": "varchar(20)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"is_system": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "is_system",
|
|
"type": "tinyint(1)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"sort_order": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "sort_order",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_by": {
|
|
"autoincrement": false,
|
|
"name": "created_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_by": {
|
|
"autoincrement": false,
|
|
"name": "updated_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "updated_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"deleted_at": {
|
|
"autoincrement": false,
|
|
"name": "deleted_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_dict_types_id": {
|
|
"name": "sys_dict_types_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_deleted_at": {
|
|
"name": "idx_deleted_at",
|
|
"columns": [
|
|
"deleted_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_is_system": {
|
|
"name": "idx_is_system",
|
|
"columns": [
|
|
"is_system"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_name": {
|
|
"name": "idx_name",
|
|
"columns": [
|
|
"name"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_path": {
|
|
"name": "idx_path",
|
|
"columns": [
|
|
"path"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_pid": {
|
|
"name": "idx_pid",
|
|
"columns": [
|
|
"pid"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_sort": {
|
|
"name": "idx_sort",
|
|
"columns": [
|
|
"pid",
|
|
"sort_order"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_status": {
|
|
"name": "idx_status",
|
|
"columns": [
|
|
"status"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {
|
|
"uk_code": {
|
|
"name": "uk_code",
|
|
"columns": [
|
|
"code",
|
|
"deleted_at"
|
|
]
|
|
}
|
|
},
|
|
"checkConstraint": {}
|
|
},
|
|
"sys_operation_logs": {
|
|
"name": "sys_operation_logs",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"user_id": {
|
|
"autoincrement": false,
|
|
"name": "user_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"username": {
|
|
"autoincrement": false,
|
|
"name": "username",
|
|
"type": "varchar(100)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"module": {
|
|
"autoincrement": false,
|
|
"name": "module",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"action": {
|
|
"autoincrement": false,
|
|
"name": "action",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"target": {
|
|
"autoincrement": false,
|
|
"name": "target",
|
|
"type": "varchar(200)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"target_id": {
|
|
"autoincrement": false,
|
|
"name": "target_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"request_data": {
|
|
"autoincrement": false,
|
|
"name": "request_data",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"response_data": {
|
|
"autoincrement": false,
|
|
"name": "response_data",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"status": {
|
|
"autoincrement": false,
|
|
"name": "status",
|
|
"type": "varchar(20)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"ip": {
|
|
"autoincrement": false,
|
|
"name": "ip",
|
|
"type": "varchar(45)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"user_agent": {
|
|
"autoincrement": false,
|
|
"name": "user_agent",
|
|
"type": "varchar(200)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"duration": {
|
|
"autoincrement": false,
|
|
"name": "duration",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"error_msg": {
|
|
"autoincrement": false,
|
|
"name": "error_msg",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_operation_logs_id": {
|
|
"name": "sys_operation_logs_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_created_at": {
|
|
"name": "idx_created_at",
|
|
"columns": [
|
|
"created_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_ip": {
|
|
"name": "idx_ip",
|
|
"columns": [
|
|
"ip"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_module_action": {
|
|
"name": "idx_module_action",
|
|
"columns": [
|
|
"module",
|
|
"action"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_status": {
|
|
"name": "idx_status",
|
|
"columns": [
|
|
"status"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_target": {
|
|
"name": "idx_target",
|
|
"columns": [
|
|
"target_id"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_user_id": {
|
|
"name": "idx_user_id",
|
|
"columns": [
|
|
"user_id"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {},
|
|
"checkConstraint": {}
|
|
},
|
|
"sys_organizations": {
|
|
"name": "sys_organizations",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"code": {
|
|
"autoincrement": false,
|
|
"name": "code",
|
|
"type": "varchar(100)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"autoincrement": false,
|
|
"name": "name",
|
|
"type": "varchar(200)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"full_name": {
|
|
"autoincrement": false,
|
|
"name": "full_name",
|
|
"type": "varchar(200)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"description": {
|
|
"autoincrement": false,
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"pid": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "pid",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"path": {
|
|
"autoincrement": false,
|
|
"name": "path",
|
|
"type": "varchar(500)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"level": {
|
|
"default": 1,
|
|
"autoincrement": false,
|
|
"name": "level",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"type": {
|
|
"autoincrement": false,
|
|
"name": "type",
|
|
"type": "varchar(20)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"status": {
|
|
"default": "'active'",
|
|
"autoincrement": false,
|
|
"name": "status",
|
|
"type": "varchar(20)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"sort_order": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "sort_order",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"leader_id": {
|
|
"autoincrement": false,
|
|
"name": "leader_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"address": {
|
|
"autoincrement": false,
|
|
"name": "address",
|
|
"type": "varchar(200)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"phone": {
|
|
"autoincrement": false,
|
|
"name": "phone",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"extra": {
|
|
"autoincrement": false,
|
|
"name": "extra",
|
|
"type": "json",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_by": {
|
|
"autoincrement": false,
|
|
"name": "created_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_by": {
|
|
"autoincrement": false,
|
|
"name": "updated_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "updated_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"deleted_at": {
|
|
"autoincrement": false,
|
|
"name": "deleted_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version": {
|
|
"default": 1,
|
|
"autoincrement": false,
|
|
"name": "version",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_organizations_id": {
|
|
"name": "sys_organizations_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_deleted_at": {
|
|
"name": "idx_deleted_at",
|
|
"columns": [
|
|
"deleted_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_leader_id": {
|
|
"name": "idx_leader_id",
|
|
"columns": [
|
|
"leader_id"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_name": {
|
|
"name": "idx_name",
|
|
"columns": [
|
|
"name"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_path": {
|
|
"name": "idx_path",
|
|
"columns": [
|
|
"path"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_pid": {
|
|
"name": "idx_pid",
|
|
"columns": [
|
|
"pid"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_sort": {
|
|
"name": "idx_sort",
|
|
"columns": [
|
|
"pid",
|
|
"sort_order"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_status": {
|
|
"name": "idx_status",
|
|
"columns": [
|
|
"status"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_type": {
|
|
"name": "idx_type",
|
|
"columns": [
|
|
"type"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {
|
|
"uk_code": {
|
|
"name": "uk_code",
|
|
"columns": [
|
|
"code",
|
|
"deleted_at"
|
|
]
|
|
}
|
|
},
|
|
"checkConstraint": {}
|
|
},
|
|
"sys_permissions": {
|
|
"name": "sys_permissions",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"code": {
|
|
"autoincrement": false,
|
|
"name": "code",
|
|
"type": "varchar(100)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"autoincrement": false,
|
|
"name": "name",
|
|
"type": "varchar(100)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"type": {
|
|
"autoincrement": false,
|
|
"name": "type",
|
|
"type": "varchar(20)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"resource": {
|
|
"autoincrement": false,
|
|
"name": "resource",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"action": {
|
|
"autoincrement": false,
|
|
"name": "action",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"description": {
|
|
"autoincrement": false,
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"pid": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "pid",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"path": {
|
|
"autoincrement": false,
|
|
"name": "path",
|
|
"type": "varchar(500)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"level": {
|
|
"default": 1,
|
|
"autoincrement": false,
|
|
"name": "level",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"sort_order": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "sort_order",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"default": "'active'",
|
|
"autoincrement": false,
|
|
"name": "status",
|
|
"type": "varchar(20)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"meta": {
|
|
"autoincrement": false,
|
|
"name": "meta",
|
|
"type": "json",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_by": {
|
|
"autoincrement": false,
|
|
"name": "created_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_by": {
|
|
"autoincrement": false,
|
|
"name": "updated_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "updated_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"deleted_at": {
|
|
"autoincrement": false,
|
|
"name": "deleted_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_permissions_id": {
|
|
"name": "sys_permissions_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_deleted_at": {
|
|
"name": "idx_deleted_at",
|
|
"columns": [
|
|
"deleted_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_pid": {
|
|
"name": "idx_pid",
|
|
"columns": [
|
|
"pid"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_resource_action": {
|
|
"name": "idx_resource_action",
|
|
"columns": [
|
|
"resource",
|
|
"action"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_sort": {
|
|
"name": "idx_sort",
|
|
"columns": [
|
|
"pid",
|
|
"sort_order"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_status": {
|
|
"name": "idx_status",
|
|
"columns": [
|
|
"status"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_type": {
|
|
"name": "idx_type",
|
|
"columns": [
|
|
"type"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {
|
|
"uk_code": {
|
|
"name": "uk_code",
|
|
"columns": [
|
|
"code",
|
|
"deleted_at"
|
|
]
|
|
}
|
|
},
|
|
"checkConstraint": {}
|
|
},
|
|
"sys_role_permissions": {
|
|
"name": "sys_role_permissions",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"role_id": {
|
|
"autoincrement": false,
|
|
"name": "role_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"permission_id": {
|
|
"autoincrement": false,
|
|
"name": "permission_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"is_half": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "is_half",
|
|
"type": "tinyint(1)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_by": {
|
|
"autoincrement": false,
|
|
"name": "created_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_role_permissions_id": {
|
|
"name": "sys_role_permissions_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_is_half": {
|
|
"name": "idx_is_half",
|
|
"columns": [
|
|
"is_half"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_permission_id": {
|
|
"name": "idx_permission_id",
|
|
"columns": [
|
|
"permission_id"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_role_id": {
|
|
"name": "idx_role_id",
|
|
"columns": [
|
|
"role_id"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {
|
|
"uk_role_permission": {
|
|
"name": "uk_role_permission",
|
|
"columns": [
|
|
"role_id",
|
|
"permission_id"
|
|
]
|
|
}
|
|
},
|
|
"checkConstraint": {}
|
|
},
|
|
"sys_roles": {
|
|
"name": "sys_roles",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"code": {
|
|
"autoincrement": false,
|
|
"name": "code",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"autoincrement": false,
|
|
"name": "name",
|
|
"type": "varchar(100)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"description": {
|
|
"autoincrement": false,
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"pid": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "pid",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"path": {
|
|
"autoincrement": false,
|
|
"name": "path",
|
|
"type": "varchar(500)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"level": {
|
|
"default": 1,
|
|
"autoincrement": false,
|
|
"name": "level",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"sort_order": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "sort_order",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"status": {
|
|
"default": "'active'",
|
|
"autoincrement": false,
|
|
"name": "status",
|
|
"type": "varchar(20)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"is_system": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "is_system",
|
|
"type": "tinyint(1)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"permissions_snapshot": {
|
|
"autoincrement": false,
|
|
"name": "permissions_snapshot",
|
|
"type": "json",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"extra": {
|
|
"autoincrement": false,
|
|
"name": "extra",
|
|
"type": "json",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_by": {
|
|
"autoincrement": false,
|
|
"name": "created_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_by": {
|
|
"autoincrement": false,
|
|
"name": "updated_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "updated_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"deleted_at": {
|
|
"autoincrement": false,
|
|
"name": "deleted_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version": {
|
|
"default": 1,
|
|
"autoincrement": false,
|
|
"name": "version",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_roles_id": {
|
|
"name": "sys_roles_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_deleted_at": {
|
|
"name": "idx_deleted_at",
|
|
"columns": [
|
|
"deleted_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_is_system": {
|
|
"name": "idx_is_system",
|
|
"columns": [
|
|
"is_system"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_name": {
|
|
"name": "idx_name",
|
|
"columns": [
|
|
"name"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_path": {
|
|
"name": "idx_path",
|
|
"columns": [
|
|
"path"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_pid": {
|
|
"name": "idx_pid",
|
|
"columns": [
|
|
"pid"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_sort": {
|
|
"name": "idx_sort",
|
|
"columns": [
|
|
"pid",
|
|
"sort_order"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_status": {
|
|
"name": "idx_status",
|
|
"columns": [
|
|
"status"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {
|
|
"uk_code": {
|
|
"name": "uk_code",
|
|
"columns": [
|
|
"code",
|
|
"deleted_at"
|
|
]
|
|
}
|
|
},
|
|
"checkConstraint": {}
|
|
},
|
|
"sys_tags": {
|
|
"name": "sys_tags",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"name": {
|
|
"autoincrement": false,
|
|
"name": "name",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"type": {
|
|
"default": "'user'",
|
|
"autoincrement": false,
|
|
"name": "type",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"color": {
|
|
"autoincrement": false,
|
|
"name": "color",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"description": {
|
|
"autoincrement": false,
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"usage_count": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "usage_count",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_by": {
|
|
"autoincrement": false,
|
|
"name": "created_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"deleted_at": {
|
|
"autoincrement": false,
|
|
"name": "deleted_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_tags_id": {
|
|
"name": "sys_tags_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_deleted_at": {
|
|
"name": "idx_deleted_at",
|
|
"columns": [
|
|
"deleted_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_name": {
|
|
"name": "idx_name",
|
|
"columns": [
|
|
"name"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_type": {
|
|
"name": "idx_type",
|
|
"columns": [
|
|
"type"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_usage_count": {
|
|
"name": "idx_usage_count",
|
|
"columns": [
|
|
"usage_count"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {
|
|
"uk_name_type": {
|
|
"name": "uk_name_type",
|
|
"columns": [
|
|
"name",
|
|
"type",
|
|
"deleted_at"
|
|
]
|
|
}
|
|
},
|
|
"checkConstraint": {}
|
|
},
|
|
"sys_user_organizations": {
|
|
"name": "sys_user_organizations",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"user_id": {
|
|
"autoincrement": false,
|
|
"name": "user_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"organization_id": {
|
|
"autoincrement": false,
|
|
"name": "organization_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"is_primary": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "is_primary",
|
|
"type": "tinyint(1)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"position": {
|
|
"autoincrement": false,
|
|
"name": "position",
|
|
"type": "varchar(100)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"joined_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "joined_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_by": {
|
|
"autoincrement": false,
|
|
"name": "created_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_user_organizations_id": {
|
|
"name": "sys_user_organizations_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_is_primary": {
|
|
"name": "idx_is_primary",
|
|
"columns": [
|
|
"is_primary"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_joined_at": {
|
|
"name": "idx_joined_at",
|
|
"columns": [
|
|
"joined_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_organization_id": {
|
|
"name": "idx_organization_id",
|
|
"columns": [
|
|
"organization_id"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_user_id": {
|
|
"name": "idx_user_id",
|
|
"columns": [
|
|
"user_id"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {
|
|
"uk_user_org": {
|
|
"name": "uk_user_org",
|
|
"columns": [
|
|
"user_id",
|
|
"organization_id"
|
|
]
|
|
}
|
|
},
|
|
"checkConstraint": {}
|
|
},
|
|
"sys_user_roles": {
|
|
"name": "sys_user_roles",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"user_id": {
|
|
"autoincrement": false,
|
|
"name": "user_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"role_id": {
|
|
"autoincrement": false,
|
|
"name": "role_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"expired_at": {
|
|
"autoincrement": false,
|
|
"name": "expired_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_by": {
|
|
"autoincrement": false,
|
|
"name": "created_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_user_roles_id": {
|
|
"name": "sys_user_roles_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_created_at": {
|
|
"name": "idx_created_at",
|
|
"columns": [
|
|
"created_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_expired_at": {
|
|
"name": "idx_expired_at",
|
|
"columns": [
|
|
"expired_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_role_id": {
|
|
"name": "idx_role_id",
|
|
"columns": [
|
|
"role_id"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_user_id": {
|
|
"name": "idx_user_id",
|
|
"columns": [
|
|
"user_id"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {
|
|
"uk_user_role": {
|
|
"name": "uk_user_role",
|
|
"columns": [
|
|
"user_id",
|
|
"role_id"
|
|
]
|
|
}
|
|
},
|
|
"checkConstraint": {}
|
|
},
|
|
"sys_user_tags": {
|
|
"name": "sys_user_tags",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"user_id": {
|
|
"autoincrement": false,
|
|
"name": "user_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"tag_id": {
|
|
"autoincrement": false,
|
|
"name": "tag_id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_by": {
|
|
"autoincrement": false,
|
|
"name": "created_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_user_tags_id": {
|
|
"name": "sys_user_tags_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_created_at": {
|
|
"name": "idx_created_at",
|
|
"columns": [
|
|
"created_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_tag_id": {
|
|
"name": "idx_tag_id",
|
|
"columns": [
|
|
"tag_id"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_user_id": {
|
|
"name": "idx_user_id",
|
|
"columns": [
|
|
"user_id"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {
|
|
"uk_user_tag": {
|
|
"name": "uk_user_tag",
|
|
"columns": [
|
|
"user_id",
|
|
"tag_id"
|
|
]
|
|
}
|
|
},
|
|
"checkConstraint": {}
|
|
},
|
|
"sys_users": {
|
|
"name": "sys_users",
|
|
"columns": {
|
|
"id": {
|
|
"autoincrement": false,
|
|
"name": "id",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"username": {
|
|
"autoincrement": false,
|
|
"name": "username",
|
|
"type": "varchar(50)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"email": {
|
|
"autoincrement": false,
|
|
"name": "email",
|
|
"type": "varchar(100)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"mobile": {
|
|
"autoincrement": false,
|
|
"name": "mobile",
|
|
"type": "varchar(20)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"password_hash": {
|
|
"autoincrement": false,
|
|
"name": "password_hash",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"avatar": {
|
|
"autoincrement": false,
|
|
"name": "avatar",
|
|
"type": "varchar(255)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"nickname": {
|
|
"autoincrement": false,
|
|
"name": "nickname",
|
|
"type": "varchar(100)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"status": {
|
|
"default": "'active'",
|
|
"autoincrement": false,
|
|
"name": "status",
|
|
"type": "varchar(20)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"gender": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "gender",
|
|
"type": "tinyint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"birthday": {
|
|
"autoincrement": false,
|
|
"name": "birthday",
|
|
"type": "date",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"bio": {
|
|
"autoincrement": false,
|
|
"name": "bio",
|
|
"type": "varchar(500)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"login_count": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "login_count",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"last_login_at": {
|
|
"autoincrement": false,
|
|
"name": "last_login_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"last_login_ip": {
|
|
"autoincrement": false,
|
|
"name": "last_login_ip",
|
|
"type": "varchar(45)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"failed_attempts": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "failed_attempts",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"locked_until": {
|
|
"autoincrement": false,
|
|
"name": "locked_until",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"is_root": {
|
|
"default": 0,
|
|
"autoincrement": false,
|
|
"name": "is_root",
|
|
"type": "tinyint(1)",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"extra": {
|
|
"autoincrement": false,
|
|
"name": "extra",
|
|
"type": "json",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_by": {
|
|
"autoincrement": false,
|
|
"name": "created_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"created_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "created_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"updated_by": {
|
|
"autoincrement": false,
|
|
"name": "updated_by",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"updated_at": {
|
|
"default": "(CURRENT_TIMESTAMP)",
|
|
"autoincrement": false,
|
|
"name": "updated_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"deleted_at": {
|
|
"autoincrement": false,
|
|
"name": "deleted_at",
|
|
"type": "datetime",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"version": {
|
|
"default": 1,
|
|
"autoincrement": false,
|
|
"name": "version",
|
|
"type": "int",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {
|
|
"sys_users_id": {
|
|
"name": "sys_users_id",
|
|
"columns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"indexes": {
|
|
"idx_created_at": {
|
|
"name": "idx_created_at",
|
|
"columns": [
|
|
"created_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_deleted_at": {
|
|
"name": "idx_deleted_at",
|
|
"columns": [
|
|
"deleted_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_is_root": {
|
|
"name": "idx_is_root",
|
|
"columns": [
|
|
"is_root"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_last_login": {
|
|
"name": "idx_last_login",
|
|
"columns": [
|
|
"last_login_at"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_mobile": {
|
|
"name": "idx_mobile",
|
|
"columns": [
|
|
"mobile"
|
|
],
|
|
"isUnique": false
|
|
},
|
|
"idx_status": {
|
|
"name": "idx_status",
|
|
"columns": [
|
|
"status"
|
|
],
|
|
"isUnique": false
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"uniqueConstraints": {
|
|
"uk_email": {
|
|
"name": "uk_email",
|
|
"columns": [
|
|
"email",
|
|
"deleted_at"
|
|
]
|
|
},
|
|
"uk_username": {
|
|
"name": "uk_username",
|
|
"columns": [
|
|
"username",
|
|
"deleted_at"
|
|
]
|
|
}
|
|
},
|
|
"checkConstraint": {}
|
|
}
|
|
},
|
|
"views": {},
|
|
"_meta": {
|
|
"schemas": {},
|
|
"tables": {},
|
|
"columns": {}
|
|
},
|
|
"internal": {
|
|
"tables": {
|
|
"sys_dict_items": {
|
|
"columns": {
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
},
|
|
"updated_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
},
|
|
"sys_dict_types": {
|
|
"columns": {
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
},
|
|
"updated_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
},
|
|
"sys_operation_logs": {
|
|
"columns": {
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
},
|
|
"sys_organizations": {
|
|
"columns": {
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
},
|
|
"updated_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
},
|
|
"sys_permissions": {
|
|
"columns": {
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
},
|
|
"updated_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
},
|
|
"sys_role_permissions": {
|
|
"columns": {
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
},
|
|
"sys_roles": {
|
|
"columns": {
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
},
|
|
"updated_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
},
|
|
"sys_tags": {
|
|
"columns": {
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
},
|
|
"sys_user_organizations": {
|
|
"columns": {
|
|
"joined_at": {
|
|
"isDefaultAnExpression": true
|
|
},
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
},
|
|
"sys_user_roles": {
|
|
"columns": {
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
},
|
|
"sys_user_tags": {
|
|
"columns": {
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
},
|
|
"sys_users": {
|
|
"columns": {
|
|
"created_at": {
|
|
"isDefaultAnExpression": true
|
|
},
|
|
"updated_at": {
|
|
"isDefaultAnExpression": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"indexes": {}
|
|
}
|
|
} |