high-six-month/sql/券码商品信息.ndm2

1259 lines
41 KiB
Plaintext

{
"paper": {
"name": "A4",
"leftMargin": 0.5,
"rightMargin": 0.5,
"topMargin": 0.5,
"bottomMargin": 0.5,
"isPortriat": true
},
"modelVersion": 2.01,
"defaultSchema": "default",
"server": {
"objectType": "Server_MYSQL",
"name": "Default",
"uuid": "",
"serverVersion": 80099,
"edition": "Default",
"lowerCaseTableNames": 0,
"schemas": [
{
"objectType": "Schema_MYSQL",
"name": "default",
"tables": [],
"views": []
},
{
"objectType": "Schema_MYSQL",
"name": "high-six-exam",
"tables": [
{
"objectType": "Table_MYSQL",
"name": "month_order",
"comment": "",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_general_ci",
"autoIncrement": 4,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "Dynamic",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": 0,
"union": "",
"pageCheckSum": false,
"transactional": false,
"compression": "",
"oldName": "month_order",
"encryption": false,
"createOptions": "",
"createTime": "2024-08-12 17:16:31",
"checkTime": "",
"dataFree": 0,
"dataLength": 16384,
"indexLength": 0,
"maxDataLength": 0,
"rows": 3,
"updateTime": "2024-08-12 21:40:05",
"DDL": "CREATE TABLE `month_order` (\n `oid` int(11) NOT NULL AUTO_INCREMENT COMMENT '订单id',\n `tid` int(11) DEFAULT NULL COMMENT '订单所属类别',\n `uid` int(11) DEFAULT NULL COMMENT '订单购买用户',\n `sid` int(11) DEFAULT NULL COMMENT '订单购买商品id',\n `ocode` varchar(30) DEFAULT NULL COMMENT '订单购买单',\n `oprice` decimal(10,2) DEFAULT NULL COMMENT '订单购买花费',\n `odate` datetime DEFAULT NULL COMMENT '订单购买时间',\n `oinsurance` datetime DEFAULT NULL COMMENT '订单质保到期时间',\n `ostate` int(2) DEFAULT '1' COMMENT '订单购买状态 1.未支付 2.待使用 3.完成',\n PRIMARY KEY (`oid`)\n) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MYSQL",
"name": "oid",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": true,
"comment": "订单id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "oid"
},
{
"objectType": "TableField_MYSQL",
"name": "tid",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "订单所属类别",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "tid"
},
{
"objectType": "TableField_MYSQL",
"name": "uid",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "订单购买用户",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "uid"
},
{
"objectType": "TableField_MYSQL",
"name": "sid",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "订单购买商品id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "sid"
},
{
"objectType": "TableField_MYSQL",
"name": "ocode",
"type": "varchar",
"length": 30,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "utf8mb4",
"collation": "utf8mb4_general_ci",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "订单购买单",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "ocode"
},
{
"objectType": "TableField_MYSQL",
"name": "oprice",
"type": "decimal",
"length": 10,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "订单购买花费",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "oprice"
},
{
"objectType": "TableField_MYSQL",
"name": "odate",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "订单购买时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "odate"
},
{
"objectType": "TableField_MYSQL",
"name": "oinsurance",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "订单质保到期时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "oinsurance"
},
{
"objectType": "TableField_MYSQL",
"name": "ostate",
"type": "int",
"length": 2,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "1",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "订单购买状态 1.未支付 2.待使用 3.完成",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "ostate"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
{
"objectType": "IndexField_MYSQL",
"name": "oid",
"keyLength": 0,
"order": "",
"oldName": "oid"
}
],
"oldName": "",
"indexMethod": "BTREE",
"comment": ""
},
"foreignKeys": [
{
"objectType": "ForeignKey_MYSQL",
"name": "fk_month_order_month_type_1",
"fields": [
"tid"
],
"referenceSchema": "high-six-exam",
"referenceTable": "month_type",
"referenceFields": [
"tid"
],
"onDelete": "",
"onUpdate": "",
"sourceCardinality": "NoneRelationship",
"targetCardinality": "NoneRelationship",
"oldName": ""
}
],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MYSQL",
"name": "month_sale",
"comment": "",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_general_ci",
"autoIncrement": 14,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "Dynamic",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": 0,
"union": "",
"pageCheckSum": false,
"transactional": false,
"compression": "",
"oldName": "month_sale",
"encryption": false,
"createOptions": "",
"createTime": "2024-08-12 09:27:18",
"checkTime": "",
"dataFree": 0,
"dataLength": 16384,
"indexLength": 0,
"maxDataLength": 0,
"rows": 7,
"updateTime": "2024-08-12 21:40:28",
"DDL": "CREATE TABLE `month_sale` (\n `sid` int(11) NOT NULL AUTO_INCREMENT COMMENT '售卖卷码id',\n `tid` int(11) DEFAULT NULL COMMENT '售卖卷码类别',\n `uid` int(11) DEFAULT NULL COMMENT '售卖用户',\n `scode` varchar(30) DEFAULT NULL COMMENT '售卖单号',\n `sprice` decimal(10,2) DEFAULT NULL COMMENT '售卖价格',\n `sdate` datetime DEFAULT NULL COMMENT '到期时间',\n `sstate` int(11) DEFAULT '1' COMMENT '售卖状态 1.寄售中 2.已销售 3.待使用 4.待打款 5.完成 6.关闭',\n PRIMARY KEY (`sid`)\n) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MYSQL",
"name": "sid",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": true,
"comment": "售卖卷码id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "sid"
},
{
"objectType": "TableField_MYSQL",
"name": "tid",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "售卖卷码类别",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "tid"
},
{
"objectType": "TableField_MYSQL",
"name": "uid",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "售卖用户",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "uid"
},
{
"objectType": "TableField_MYSQL",
"name": "scode",
"type": "varchar",
"length": 30,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "utf8mb4",
"collation": "utf8mb4_general_ci",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "售卖单号",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "scode"
},
{
"objectType": "TableField_MYSQL",
"name": "sprice",
"type": "decimal",
"length": 10,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "售卖价格",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "sprice"
},
{
"objectType": "TableField_MYSQL",
"name": "sdate",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "到期时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "sdate"
},
{
"objectType": "TableField_MYSQL",
"name": "sstate",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "1",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "售卖状态 1.寄售中 2.已销售 3.待使用 4.待打款 5.完成 6.关闭",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "sstate"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
{
"objectType": "IndexField_MYSQL",
"name": "sid",
"keyLength": 0,
"order": "",
"oldName": "sid"
}
],
"oldName": "",
"indexMethod": "BTREE",
"comment": ""
},
"foreignKeys": [],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MYSQL",
"name": "month_type",
"comment": "",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_general_ci",
"autoIncrement": 7,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "Dynamic",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": 0,
"union": "",
"pageCheckSum": false,
"transactional": false,
"compression": "",
"oldName": "month_type",
"encryption": false,
"createOptions": "",
"createTime": "2024-08-12 09:17:06",
"checkTime": "",
"dataFree": 0,
"dataLength": 16384,
"indexLength": 0,
"maxDataLength": 0,
"rows": 6,
"updateTime": "2024-08-12 20:41:50",
"DDL": "CREATE TABLE `month_type` (\n `tid` int(11) NOT NULL AUTO_INCREMENT COMMENT '券码类型ID',\n `tname` varchar(30) DEFAULT NULL COMMENT '券码类型名称',\n `tcode` varchar(30) DEFAULT NULL COMMENT '券码所属企业码',\n `tnumber` int(11) DEFAULT NULL COMMENT '库存数量',\n PRIMARY KEY (`tid`)\n) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MYSQL",
"name": "tid",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": true,
"comment": "券码类型ID",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "tid"
},
{
"objectType": "TableField_MYSQL",
"name": "tname",
"type": "varchar",
"length": 30,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "utf8mb4",
"collation": "utf8mb4_general_ci",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "券码类型名称",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "tname"
},
{
"objectType": "TableField_MYSQL",
"name": "tcode",
"type": "varchar",
"length": 30,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "utf8mb4",
"collation": "utf8mb4_general_ci",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "券码所属企业码",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "tcode"
},
{
"objectType": "TableField_MYSQL",
"name": "tnumber",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "库存数量",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "tnumber"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
{
"objectType": "IndexField_MYSQL",
"name": "tid",
"keyLength": 0,
"order": "",
"oldName": "tid"
}
],
"oldName": "",
"indexMethod": "BTREE",
"comment": ""
},
"foreignKeys": [
{
"objectType": "ForeignKey_MYSQL",
"name": "fk_month_type_month_sale_1",
"fields": [
"tid"
],
"referenceSchema": "high-six-exam",
"referenceTable": "month_sale",
"referenceFields": [
"tid"
],
"onDelete": "",
"onUpdate": "",
"sourceCardinality": "NoneRelationship",
"targetCardinality": "NoneRelationship",
"oldName": ""
}
],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MYSQL",
"name": "month_user",
"comment": "",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_general_ci",
"autoIncrement": 3,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "Dynamic",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": 0,
"union": "",
"pageCheckSum": false,
"transactional": false,
"compression": "",
"oldName": "month_user",
"encryption": false,
"createOptions": "",
"createTime": "2024-08-12 09:50:28",
"checkTime": "",
"dataFree": 0,
"dataLength": 16384,
"indexLength": 0,
"maxDataLength": 0,
"rows": 2,
"updateTime": "2024-08-12 21:38:57",
"DDL": "CREATE TABLE `month_user` (\n `uid` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',\n `uname` varchar(30) DEFAULT NULL COMMENT '用户名',\n `uphone` varchar(30) DEFAULT NULL COMMENT '用户手机号',\n `umoney` double(6,2) DEFAULT '0.00' COMMENT '用户余额',\n PRIMARY KEY (`uid`)\n) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MYSQL",
"name": "uid",
"type": "int",
"length": 11,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": true,
"comment": "用户ID",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "uid"
},
{
"objectType": "TableField_MYSQL",
"name": "uname",
"type": "varchar",
"length": 30,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "utf8mb4",
"collation": "utf8mb4_general_ci",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "用户名",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "uname"
},
{
"objectType": "TableField_MYSQL",
"name": "uphone",
"type": "varchar",
"length": 30,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "utf8mb4",
"collation": "utf8mb4_general_ci",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "用户手机号",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "uphone"
},
{
"objectType": "TableField_MYSQL",
"name": "umoney",
"type": "double",
"length": 6,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0.00",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "用户余额",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "umoney"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
{
"objectType": "IndexField_MYSQL",
"name": "uid",
"keyLength": 0,
"order": "",
"oldName": "uid"
}
],
"oldName": "",
"indexMethod": "BTREE",
"comment": ""
},
"foreignKeys": [
{
"objectType": "ForeignKey_MYSQL",
"name": "fk_month_user_month_order_1",
"fields": [
"uid"
],
"referenceSchema": "high-six-exam",
"referenceTable": "month_order",
"referenceFields": [
"uid"
],
"onDelete": "",
"onUpdate": "",
"sourceCardinality": "NoneRelationship",
"targetCardinality": "NoneRelationship",
"oldName": ""
},
{
"objectType": "ForeignKey_MYSQL",
"name": "fk_month_user_month_sale_1",
"fields": [
"uid"
],
"referenceSchema": "high-six-exam",
"referenceTable": "month_sale",
"referenceFields": [
"tid"
],
"onDelete": "",
"onUpdate": "",
"sourceCardinality": "NoneRelationship",
"targetCardinality": "NoneRelationship",
"oldName": ""
}
],
"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": "high-six-exam",
"tableName": "month_order",
"x": 50,
"y": 240,
"width": 166,
"height": 230,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "high-six-exam",
"tableName": "month_sale",
"x": 570,
"y": 240,
"width": 163,
"height": 190,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "high-six-exam",
"tableName": "month_type",
"x": 340,
"y": 460,
"width": 150,
"height": 130,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "high-six-exam",
"tableName": "month_user",
"x": 310,
"y": 100,
"width": 165,
"height": 130,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
}
],
"layers": [],
"relations": [
{
"name": "fk_month_user_month_order_1",
"sourceTableName": "month_user",
"sourceSchemaName": "high-six-exam",
"lineWidth": 1,
"visible": true,
"vertices": [
{
"x": 295,
"y": 150
},
{
"x": 286,
"y": 150
},
{
"x": 231,
"y": 330
}
],
"label": {
"x": 160,
"y": 112,
"width": 212,
"height": 30,
"fontName": "Arial Unicode MS",
"fontSize": 14,
"fontColor": {
"r": 204,
"g": 204,
"b": 204,
"a": 1
},
"isFontBold": false,
"isFontItalic": false,
"isVisible": false
}
},
{
"name": "fk_month_user_month_sale_1",
"sourceTableName": "month_user",
"sourceSchemaName": "high-six-exam",
"lineWidth": 1,
"visible": true,
"vertices": [
{
"x": 490,
"y": 150
},
{
"x": 500,
"y": 320
},
{
"x": 555,
"y": 320
}
],
"label": {
"x": 480,
"y": 112,
"width": 202,
"height": 30,
"fontName": "Arial Unicode MS",
"fontSize": 14,
"fontColor": {
"r": 204,
"g": 204,
"b": 204,
"a": 1
},
"isFontBold": false,
"isFontItalic": false,
"isVisible": false
}
},
{
"name": "fk_month_order_month_type_1",
"sourceTableName": "month_order",
"sourceSchemaName": "high-six-exam",
"lineWidth": 1,
"visible": true,
"vertices": [
{
"x": 231,
"y": 290
},
{
"x": 300,
"y": 500
},
{
"x": 325,
"y": 500
}
],
"label": {
"x": 221,
"y": 252,
"width": 213,
"height": 30,
"fontName": "Arial Unicode MS",
"fontSize": 14,
"fontColor": {
"r": 204,
"g": 204,
"b": 204,
"a": 1
},
"isFontBold": false,
"isFontItalic": false,
"isVisible": false
}
},
{
"name": "fk_month_type_month_sale_1",
"sourceTableName": "month_type",
"sourceSchemaName": "high-six-exam",
"lineWidth": 1,
"visible": true,
"vertices": [
{
"x": 505,
"y": 500
},
{
"x": 540,
"y": 310
},
{
"x": 555,
"y": 310
}
],
"label": {
"x": 495,
"y": 462,
"width": 203,
"height": 30,
"fontName": "Arial Unicode MS",
"fontSize": 14,
"fontColor": {
"r": 204,
"g": 204,
"b": 204,
"a": 1
},
"isFontBold": false,
"isFontItalic": false,
"isVisible": false
}
}
],
"viewRelations": []
}
]
}