yuheng/SQL/meta/0000_snapshot.json
expressgy b13d584f57 feat: 新增Swagger插件并优化数据库配置
添加Swagger插件以支持API文档生成,并优化数据库配置和日志记录。同时,更新了SQL表结构和迁移文件,确保数据库的一致性和完整性。
2025-03-21 18:02:16 +08:00

1514 lines
37 KiB
JSON

{
"id": "00000000-0000-0000-0000-000000000000",
"prevId": "",
"version": "5",
"dialect": "mysql",
"tables": {
"sys_dict": {
"name": "sys_dict",
"columns": {
"id": {
"autoincrement": true,
"name": "id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"version": {
"default": 0,
"autoincrement": false,
"name": "version",
"type": "int",
"primaryKey": false,
"notNull": true
},
"pid": {
"autoincrement": false,
"name": "pid",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"module": {
"autoincrement": false,
"name": "module",
"type": "tinyint",
"primaryKey": false,
"notNull": false
},
"dict_key": {
"autoincrement": false,
"name": "dict_key",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"value": {
"autoincrement": false,
"name": "value",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"description": {
"autoincrement": false,
"name": "description",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"sort": {
"default": 0,
"autoincrement": false,
"name": "sort",
"type": "int",
"primaryKey": false,
"notNull": true
},
"status": {
"autoincrement": false,
"name": "status",
"type": "int",
"primaryKey": false,
"notNull": true
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_dict_id": {
"name": "sys_dict_id",
"columns": [
"id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_dict_key": {
"name": "uniq_dict_key",
"columns": [
"dict_key",
"pid"
]
}
},
"checkConstraint": {}
},
"sys_organization": {
"name": "sys_organization",
"columns": {
"org_id": {
"autoincrement": true,
"name": "org_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"pid": {
"default": 0,
"autoincrement": false,
"name": "pid",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"org_name": {
"autoincrement": false,
"name": "org_name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"org_code": {
"autoincrement": false,
"name": "org_code",
"type": "varchar(128)",
"primaryKey": false,
"notNull": false
},
"org_type": {
"autoincrement": false,
"name": "org_type",
"type": "int",
"primaryKey": false,
"notNull": true
},
"description": {
"autoincrement": false,
"name": "description",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"sort": {
"default": 0,
"autoincrement": false,
"name": "sort",
"type": "int",
"primaryKey": false,
"notNull": true
},
"status": {
"autoincrement": false,
"name": "status",
"type": "int",
"primaryKey": false,
"notNull": true
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_organization_org_id": {
"name": "sys_organization_org_id",
"columns": [
"org_id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_org_code": {
"name": "uniq_org_code",
"columns": [
"org_code",
"pid"
]
},
"uniq_org_name": {
"name": "uniq_org_name",
"columns": [
"org_name",
"pid"
]
}
},
"checkConstraint": {}
},
"sys_organization_manager": {
"name": "sys_organization_manager",
"columns": {
"id": {
"autoincrement": true,
"name": "id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"version": {
"default": 0,
"autoincrement": false,
"name": "version",
"type": "int",
"primaryKey": false,
"notNull": true
},
"org_id": {
"autoincrement": false,
"name": "org_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"user_id": {
"autoincrement": false,
"name": "user_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"rank": {
"autoincrement": false,
"name": "rank",
"type": "int",
"primaryKey": false,
"notNull": true
},
"description": {
"autoincrement": false,
"name": "description",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_organization_manager_id": {
"name": "sys_organization_manager_id",
"columns": [
"id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_org_user": {
"name": "uniq_org_user",
"columns": [
"org_id",
"user_id"
]
}
},
"checkConstraint": {}
},
"sys_permission": {
"name": "sys_permission",
"columns": {
"perm_id": {
"autoincrement": true,
"name": "perm_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"pid": {
"default": 0,
"autoincrement": false,
"name": "pid",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"perm_name": {
"autoincrement": false,
"name": "perm_name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"perm_key": {
"autoincrement": false,
"name": "perm_key",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"url": {
"autoincrement": false,
"name": "url",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"avatar_url": {
"autoincrement": false,
"name": "avatar_url",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"description": {
"autoincrement": false,
"name": "description",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"perm_type": {
"autoincrement": false,
"name": "perm_type",
"type": "int",
"primaryKey": false,
"notNull": true
},
"is_visible": {
"default": 0,
"autoincrement": false,
"name": "is_visible",
"type": "int",
"primaryKey": false,
"notNull": true
},
"version": {
"default": 0,
"autoincrement": false,
"name": "version",
"type": "int",
"primaryKey": false,
"notNull": true
},
"sort": {
"default": 0,
"autoincrement": false,
"name": "sort",
"type": "int",
"primaryKey": false,
"notNull": true
},
"status": {
"autoincrement": false,
"name": "status",
"type": "int",
"primaryKey": false,
"notNull": true
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_permission_perm_id": {
"name": "sys_permission_perm_id",
"columns": [
"perm_id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_pid_name": {
"name": "uniq_pid_name",
"columns": [
"perm_name",
"pid"
]
},
"uniq_perm_key": {
"name": "uniq_perm_key",
"columns": [
"perm_key"
]
}
},
"checkConstraint": {}
},
"sys_re_role_permission": {
"name": "sys_re_role_permission",
"columns": {
"id": {
"autoincrement": true,
"name": "id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"role_id": {
"autoincrement": false,
"name": "role_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"perm_id": {
"autoincrement": false,
"name": "perm_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_re_role_permission_id": {
"name": "sys_re_role_permission_id",
"columns": [
"id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_perm_role": {
"name": "uniq_perm_role",
"columns": [
"role_id",
"perm_id"
]
}
},
"checkConstraint": {}
},
"sys_re_user_organization": {
"name": "sys_re_user_organization",
"columns": {
"id": {
"autoincrement": true,
"name": "id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"user_id": {
"autoincrement": false,
"name": "user_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"org_id": {
"autoincrement": false,
"name": "org_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"version": {
"default": 0,
"autoincrement": false,
"name": "version",
"type": "int",
"primaryKey": false,
"notNull": true
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_re_user_organization_id": {
"name": "sys_re_user_organization_id",
"columns": [
"id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_user_org": {
"name": "uniq_user_org",
"columns": [
"user_id",
"org_id"
]
}
},
"checkConstraint": {}
},
"sys_re_user_role": {
"name": "sys_re_user_role",
"columns": {
"id": {
"autoincrement": true,
"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
},
"version": {
"default": 0,
"autoincrement": false,
"name": "version",
"type": "int",
"primaryKey": false,
"notNull": true
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_re_user_role_id": {
"name": "sys_re_user_role_id",
"columns": [
"id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_user_role": {
"name": "uniq_user_role",
"columns": [
"user_id",
"role_id"
]
}
},
"checkConstraint": {}
},
"sys_role": {
"name": "sys_role",
"columns": {
"role_id": {
"autoincrement": true,
"name": "role_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"pid": {
"autoincrement": false,
"name": "pid",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"role_name": {
"autoincrement": false,
"name": "role_name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"role_key": {
"autoincrement": false,
"name": "role_key",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"description": {
"autoincrement": false,
"name": "description",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"status": {
"autoincrement": false,
"name": "status",
"type": "int",
"primaryKey": false,
"notNull": true
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_role_role_id": {
"name": "sys_role_role_id",
"columns": [
"role_id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_role_pid": {
"name": "uniq_role_pid",
"columns": [
"role_name",
"pid"
]
}
},
"checkConstraint": {}
},
"sys_user": {
"name": "sys_user",
"columns": {
"user_id": {
"autoincrement": false,
"name": "user_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"pid": {
"autoincrement": false,
"name": "pid",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"username": {
"autoincrement": false,
"name": "username",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"email": {
"autoincrement": false,
"name": "email",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"phone": {
"autoincrement": false,
"name": "phone",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"avatar_url": {
"autoincrement": false,
"name": "avatar_url",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"user_type": {
"autoincrement": false,
"name": "user_type",
"type": "tinyint",
"primaryKey": false,
"notNull": false
},
"status": {
"default": 0,
"autoincrement": false,
"name": "status",
"type": "tinyint",
"primaryKey": false,
"notNull": true
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_user_user_id": {
"name": "sys_user_user_id",
"columns": [
"user_id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_username": {
"name": "uniq_username",
"columns": [
"username"
]
},
"uniq_email": {
"name": "uniq_email",
"columns": [
"email"
]
}
},
"checkConstraint": {}
},
"sys_user_auth": {
"name": "sys_user_auth",
"columns": {
"user_id": {
"autoincrement": false,
"name": "user_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"password_hash": {
"autoincrement": false,
"name": "password_hash",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"password_modified": {
"autoincrement": false,
"name": "password_modified",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"password_expire": {
"autoincrement": false,
"name": "password_expire",
"type": "datetime",
"primaryKey": false,
"notNull": false
}
},
"compositePrimaryKeys": {
"sys_user_auth_user_id": {
"name": "sys_user_auth_user_id",
"columns": [
"user_id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {},
"checkConstraint": {}
},
"sys_user_auth_history": {
"name": "sys_user_auth_history",
"columns": {
"id": {
"autoincrement": true,
"name": "id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"user_id": {
"autoincrement": false,
"name": "user_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"password_hash": {
"autoincrement": false,
"name": "password_hash",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"modified_at": {
"autoincrement": false,
"name": "modified_at",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_user_auth_history_id": {
"name": "sys_user_auth_history_id",
"columns": [
"id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {},
"checkConstraint": {}
},
"sys_user_field_definition": {
"name": "sys_user_field_definition",
"columns": {
"field_id": {
"autoincrement": true,
"name": "field_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"version": {
"default": 0,
"autoincrement": false,
"name": "version",
"type": "int",
"primaryKey": false,
"notNull": true
},
"field_name": {
"autoincrement": false,
"name": "field_name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"field_key": {
"autoincrement": false,
"name": "field_key",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"field_type": {
"autoincrement": false,
"name": "field_type",
"type": "tinyint",
"primaryKey": false,
"notNull": true
},
"dict_module": {
"autoincrement": false,
"name": "dict_module",
"type": "int",
"primaryKey": false,
"notNull": false
},
"is_required": {
"default": 0,
"autoincrement": false,
"name": "is_required",
"type": "tinyint",
"primaryKey": false,
"notNull": true
},
"limit": {
"autoincrement": false,
"name": "limit",
"type": "int",
"primaryKey": false,
"notNull": false
},
"description": {
"autoincrement": false,
"name": "description",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"default_value": {
"autoincrement": false,
"name": "default_value",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"default_options": {
"autoincrement": false,
"name": "default_options",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"sort": {
"default": 0,
"autoincrement": false,
"name": "sort",
"type": "int",
"primaryKey": false,
"notNull": true
},
"status": {
"autoincrement": false,
"name": "status",
"type": "int",
"primaryKey": false,
"notNull": true
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_user_field_definition_field_id": {
"name": "sys_user_field_definition_field_id",
"columns": [
"field_id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_field_name": {
"name": "uniq_field_name",
"columns": [
"field_name"
]
},
"uniq_field_key": {
"name": "uniq_field_key",
"columns": [
"field_key"
]
}
},
"checkConstraint": {}
},
"sys_user_field_value": {
"name": "sys_user_field_value",
"columns": {
"id": {
"autoincrement": true,
"name": "id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"user_id": {
"autoincrement": false,
"name": "user_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"field_id": {
"autoincrement": false,
"name": "field_id",
"type": "int",
"primaryKey": false,
"notNull": true
},
"value": {
"autoincrement": false,
"name": "value",
"type": "varchar(4096)",
"primaryKey": false,
"notNull": false
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_user_field_value_id": {
"name": "sys_user_field_value_id",
"columns": [
"id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_user_field": {
"name": "uniq_user_field",
"columns": [
"user_id",
"field_id"
]
}
},
"checkConstraint": {}
},
"sys_user_profile": {
"name": "sys_user_profile",
"columns": {
"id": {
"autoincrement": true,
"name": "id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"version": {
"default": 0,
"autoincrement": false,
"name": "version",
"type": "int",
"primaryKey": false,
"notNull": true
},
"name": {
"autoincrement": false,
"name": "name",
"type": "varchar(32)",
"primaryKey": false,
"notNull": true
},
"profile_key": {
"autoincrement": false,
"name": "profile_key",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"description": {
"autoincrement": false,
"name": "description",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"content": {
"autoincrement": false,
"name": "content",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"created_by": {
"autoincrement": false,
"name": "created_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"updated_by": {
"autoincrement": false,
"name": "updated_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"created_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "created_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
},
"updated_at": {
"default": "(CURRENT_TIMESTAMP)",
"autoincrement": false,
"name": "updated_at",
"type": "datetime",
"primaryKey": false,
"notNull": true
}
},
"compositePrimaryKeys": {
"sys_user_profile_id": {
"name": "sys_user_profile_id",
"columns": [
"id"
]
}
},
"indexes": {},
"foreignKeys": {},
"uniqueConstraints": {
"uniq_name": {
"name": "uniq_name",
"columns": [
"name"
]
},
"uniq_profile_key": {
"name": "uniq_profile_key",
"columns": [
"profile_key"
]
}
},
"checkConstraint": {}
}
},
"views": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
},
"internal": {
"tables": {
"sys_dict": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
},
"sys_organization": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
},
"sys_organization_manager": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
},
"sys_permission": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
},
"sys_re_role_permission": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
},
"sys_re_user_organization": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
},
"sys_re_user_role": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
},
"sys_role": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
},
"sys_user": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
},
"sys_user_field_definition": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
},
"sys_user_field_value": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
},
"sys_user_profile": {
"columns": {
"created_at": {
"isDefaultAnExpression": true
},
"updated_at": {
"isDefaultAnExpression": true
}
}
}
},
"indexes": {}
}
}