You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
sys22/baseSys/userSys/design/database/sys22_user.ndm2

1629 lines
52 KiB

{
"paper": {
"name": "A4",
"leftMargin": 0.5,
"rightMargin": 0.5,
"topMargin": 0.5,
"bottomMargin": 0.5,
"isPortriat": true
},
"modelVersion": 2.01,
"defaultSchema": "sys22_user",
"server": {
"objectType": "Server_MARIADB",
"name": "Default",
"uuid": "",
"serverVersion": 100999,
"edition": "Default",
"lowerCaseTableNames": 0,
"schemas": [
{
"objectType": "Schema_MARIADB",
"name": "sys22_user",
"tables": [
{
"objectType": "Table_MARIADB",
"name": "user_info",
"comment": "",
"engine": "",
"characterSet": "",
"collation": "",
"autoIncrement": 0,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": "",
"union": "",
"pageChecksum": false,
"transactional": false,
"oldName": "",
"encryption": false,
"encryptionKeyID": 0,
"IETFQuotes": false,
"createOptions": "",
"createTime": "",
"checkTime": "",
"dataFree": 0,
"dataLength": 0,
"indexLength": 0,
"maxDataLength": 0,
"rows": 0,
"updateTime": "",
"DDL": "",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MARIADB",
"name": "uuid",
"type": "char",
"length": 32,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "唯一id",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "uuid"
},
{
"objectType": "TableField_MARIADB",
"name": "username",
"type": "varchar",
"length": 255,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "用户名",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "username"
},
{
"objectType": "TableField_MARIADB",
"name": "email",
"type": "varchar",
"length": 255,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "电子邮箱",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "email"
},
{
"objectType": "TableField_MARIADB",
"name": "phone",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "手机号码",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "phone"
},
{
"objectType": "TableField_MARIADB",
"name": "person",
"type": "varchar",
"length": 18,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "身份证",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "person"
},
{
"objectType": "TableField_MARIADB",
"name": "status",
"type": "int",
"length": 1,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "使用状态",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "status"
},
{
"objectType": "TableField_MARIADB",
"name": "createtime",
"type": "bigint",
"length": 13,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "创建时间",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "createtime"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MARIADB",
"name": "",
"fields": [
{
"objectType": "IndexField_MARIADB",
"name": "uuid",
"keyLength": 0,
"order": "",
"oldName": ""
}
],
"oldName": "",
"indexMethod": "",
"comment": ""
},
"foreignKeys": [],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MARIADB",
"name": "user_login",
"comment": "",
"engine": "",
"characterSet": "",
"collation": "",
"autoIncrement": 0,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": "",
"union": "",
"pageChecksum": false,
"transactional": false,
"oldName": "",
"encryption": false,
"encryptionKeyID": 0,
"IETFQuotes": false,
"createOptions": "",
"createTime": "",
"checkTime": "",
"dataFree": 0,
"dataLength": 0,
"indexLength": 0,
"maxDataLength": 0,
"rows": 0,
"updateTime": "",
"DDL": "",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MARIADB",
"name": "id",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": true,
"comment": "自增id",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "id"
},
{
"objectType": "TableField_MARIADB",
"name": "uuid",
"type": "char",
"length": 32,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "用户唯一ID",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "uuid"
},
{
"objectType": "TableField_MARIADB",
"name": "password",
"type": "varchar",
"length": 255,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "加密密码",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "password"
},
{
"objectType": "TableField_MARIADB",
"name": "createtime",
"type": "bigint",
"length": 13,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "密码创建时间",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "createtime"
},
{
"objectType": "TableField_MARIADB",
"name": "status",
"type": "int",
"length": 1,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "密码使用状态",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "status"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MARIADB",
"name": "",
"fields": [
{
"objectType": "IndexField_MARIADB",
"name": "id",
"keyLength": -2147483648,
"order": "",
"oldName": ""
}
],
"oldName": "",
"indexMethod": "",
"comment": ""
},
"foreignKeys": [],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MARIADB",
"name": "user_info_other",
"comment": "",
"engine": "",
"characterSet": "",
"collation": "",
"autoIncrement": 0,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": "",
"union": "",
"pageChecksum": false,
"transactional": false,
"oldName": "",
"encryption": false,
"encryptionKeyID": 0,
"IETFQuotes": false,
"createOptions": "",
"createTime": "",
"checkTime": "",
"dataFree": 0,
"dataLength": 0,
"indexLength": 0,
"maxDataLength": 0,
"rows": 0,
"updateTime": "",
"DDL": "",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MARIADB",
"name": "uuid",
"type": "char",
"length": 32,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "用户唯一ID",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "uuid"
},
{
"objectType": "TableField_MARIADB",
"name": "address",
"type": "varchar",
"length": 255,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "住址",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "address"
},
{
"objectType": "TableField_MARIADB",
"name": "country",
"type": "varchar",
"length": 255,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "国家地区",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "country"
},
{
"objectType": "TableField_MARIADB",
"name": "sex",
"type": "int",
"length": 1,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "性别",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "sex"
},
{
"objectType": "TableField_MARIADB",
"name": "birthady",
"type": "int",
"length": 8,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "生日",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "birthady"
},
{
"objectType": "TableField_MARIADB",
"name": "nickname",
"type": "varchar",
"length": 64,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "昵称",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "nickname"
},
{
"objectType": "TableField_MARIADB",
"name": "personal",
"type": "varchar",
"length": 255,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "个人简介",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "personal"
},
{
"objectType": "TableField_MARIADB",
"name": "slogn",
"type": "varchar",
"length": 64,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "标语",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "slogn"
},
{
"objectType": "TableField_MARIADB",
"name": "avatar",
"type": "varchar",
"length": 64,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "头像",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avatar"
},
{
"objectType": "TableField_MARIADB",
"name": "background",
"type": "varchar",
"length": 64,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "背景",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "background"
},
{
"objectType": "TableField_MARIADB",
"name": "updateTime",
"type": "bigint",
"length": 13,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "修改时间",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "updateTime"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MARIADB",
"name": "",
"fields": [
{
"objectType": "IndexField_MARIADB",
"name": "uuid",
"keyLength": -2147483648,
"order": "",
"oldName": ""
}
],
"oldName": "",
"indexMethod": "",
"comment": ""
},
"foreignKeys": [],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MARIADB",
"name": "user_role",
"comment": "",
"engine": "",
"characterSet": "",
"collation": "",
"autoIncrement": 0,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": "",
"union": "",
"pageChecksum": false,
"transactional": false,
"oldName": "",
"encryption": false,
"encryptionKeyID": 0,
"IETFQuotes": false,
"createOptions": "",
"createTime": "",
"checkTime": "",
"dataFree": 0,
"dataLength": 0,
"indexLength": 0,
"maxDataLength": 0,
"rows": 0,
"updateTime": "",
"DDL": "",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MARIADB",
"name": "id",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": true,
"comment": "唯一ID",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "id"
},
{
"objectType": "TableField_MARIADB",
"name": "role_name",
"type": "varchar",
"length": 32,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "角色名称",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "role_name"
},
{
"objectType": "TableField_MARIADB",
"name": "role_remarks",
"type": "varchar",
"length": 255,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "角色备注",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "role_remarks"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MARIADB",
"name": "",
"fields": [
{
"objectType": "IndexField_MARIADB",
"name": "id",
"keyLength": -2147483648,
"order": "",
"oldName": ""
}
],
"oldName": "",
"indexMethod": "",
"comment": ""
},
"foreignKeys": [],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MARIADB",
"name": "user_authority",
"comment": "",
"engine": "",
"characterSet": "",
"collation": "",
"autoIncrement": 0,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": "",
"union": "",
"pageChecksum": false,
"transactional": false,
"oldName": "",
"encryption": false,
"encryptionKeyID": 0,
"IETFQuotes": false,
"createOptions": "",
"createTime": "",
"checkTime": "",
"dataFree": 0,
"dataLength": 0,
"indexLength": 0,
"maxDataLength": 0,
"rows": 0,
"updateTime": "",
"DDL": "",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MARIADB",
"name": "id",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": true,
"comment": "自增ID",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "id"
},
{
"objectType": "TableField_MARIADB",
"name": "authority_name",
"type": "varchar",
"length": 32,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "权限名称",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "authority_name"
},
{
"objectType": "TableField_MARIADB",
"name": "type",
"type": "int",
"length": 2,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "权限类型",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "type"
},
{
"objectType": "TableField_MARIADB",
"name": "grade",
"type": "int",
"length": 2,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "权限等级",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "grade"
},
{
"objectType": "TableField_MARIADB",
"name": "sequence",
"type": "int",
"length": 3,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "序列",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "sequence"
},
{
"objectType": "TableField_MARIADB",
"name": "authority_remarks",
"type": "varchar",
"length": 255,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "权限备注",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "authority_remarks"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MARIADB",
"name": "",
"fields": [
{
"objectType": "IndexField_MARIADB",
"name": "id",
"keyLength": -2147483648,
"order": "",
"oldName": ""
}
],
"oldName": "",
"indexMethod": "",
"comment": ""
},
"foreignKeys": [],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MARIADB",
"name": "user_relation_role",
"comment": "",
"engine": "",
"characterSet": "",
"collation": "",
"autoIncrement": 0,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": "",
"union": "",
"pageChecksum": false,
"transactional": false,
"oldName": "",
"encryption": false,
"encryptionKeyID": 0,
"IETFQuotes": false,
"createOptions": "",
"createTime": "",
"checkTime": "",
"dataFree": 0,
"dataLength": 0,
"indexLength": 0,
"maxDataLength": 0,
"rows": 0,
"updateTime": "",
"DDL": "",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MARIADB",
"name": "id",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "自增ID",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "id"
},
{
"objectType": "TableField_MARIADB",
"name": "uuid",
"type": "char",
"length": 32,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "用户标识",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "uuid"
},
{
"objectType": "TableField_MARIADB",
"name": "role_id",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "角色ID",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "role_id"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MARIADB",
"name": "",
"fields": [
{
"objectType": "IndexField_MARIADB",
"name": "id",
"keyLength": -2147483648,
"order": "",
"oldName": ""
}
],
"oldName": "",
"indexMethod": "",
"comment": ""
},
"foreignKeys": [],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MARIADB",
"name": "user_relation_authority",
"comment": "",
"engine": "",
"characterSet": "",
"collation": "",
"autoIncrement": 0,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": "",
"union": "",
"pageChecksum": false,
"transactional": false,
"oldName": "",
"encryption": false,
"encryptionKeyID": 0,
"IETFQuotes": false,
"createOptions": "",
"createTime": "",
"checkTime": "",
"dataFree": 0,
"dataLength": 0,
"indexLength": 0,
"maxDataLength": 0,
"rows": 0,
"updateTime": "",
"DDL": "",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MARIADB",
"name": "id",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": true,
"comment": "自增ID",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "id"
},
{
"objectType": "TableField_MARIADB",
"name": "role_id",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "角色ID",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "role_id"
},
{
"objectType": "TableField_MARIADB",
"name": "authority_id",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"charset": "",
"collation": "",
"check": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "权限ID",
"columnFormat": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "authority_id"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MARIADB",
"name": "",
"fields": [
{
"objectType": "IndexField_MARIADB",
"name": "id",
"keyLength": -2147483648,
"order": "",
"oldName": ""
}
],
"oldName": "",
"indexMethod": "",
"comment": ""
},
"foreignKeys": [],
"checks": [],
"triggers": [],
"tablePartitions": []
}
],
"views": []
}
]
},
"diagrams": [
{
"name": "Diagram 1",
"paperWidth": 1,
"paperHeight": 1,
"tableFont": "Arial Unicode MS",
"tableFontSize": 14,
"isBalckWhite": false,
"showDBSchemaName": false,
"showViewRelations": true,
"notation": "default",
"showFieldComment": false,
"showTableComment": false,
"shapes": [
{
"type": "table",
"schemaName": "sys22_user",
"tableName": "user_login",
"x": 300,
"y": 30,
"width": 200,
"height": 200,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "sys22_user",
"tableName": "user_info",
"x": 30,
"y": 380,
"width": 200,
"height": 200,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "sys22_user",
"tableName": "user_authority",
"x": 300,
"y": 380,
"width": 200,
"height": 200,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "sys22_user",
"tableName": "user_relation_role",
"x": 570,
"y": 30,
"width": 200,
"height": 200,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "sys22_user",
"tableName": "user_relation_authority",
"x": 570,
"y": 380,
"width": 200,
"height": 200,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "sys22_user",
"tableName": "user_role",
"x": 30,
"y": 650,
"width": 200,
"height": 200,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "sys22_user",
"tableName": "user_info_other",
"x": 30,
"y": 30,
"width": 200,
"height": 280,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
}
],
"layers": [],
"relations": [],
"viewRelations": []
}
]
}