high-six-week1/sql/租车模型.ndm2

1146 lines
37 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": "week1_car",
"comment": "车辆表",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_general_ci",
"autoIncrement": 21,
"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": "week1_car",
"encryption": false,
"createOptions": "",
"createTime": "2024-07-23 09:23:10",
"checkTime": "",
"dataFree": 0,
"dataLength": 16384,
"indexLength": 0,
"maxDataLength": 0,
"rows": 20,
"updateTime": "",
"DDL": "CREATE TABLE `week1_car` (\n `cid` int(11) NOT NULL AUTO_INCREMENT COMMENT '车辆ID',\n `cnumid` varchar(20) DEFAULT NULL COMMENT '车辆编号',\n `tid` int(11) DEFAULT NULL COMMENT '车辆类型',\n `csta` int(2) DEFAULT '1' COMMENT '车辆状态 1.未出租 2.已出租',\n PRIMARY KEY (`cid`)\n) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COMMENT='车辆表'",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MYSQL",
"name": "cid",
"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": "cid"
},
{
"objectType": "TableField_MYSQL",
"name": "cnumid",
"type": "varchar",
"length": 20,
"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": "cnumid"
},
{
"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": "csta",
"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.已出租",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "csta"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
{
"objectType": "IndexField_MYSQL",
"name": "cid",
"keyLength": 0,
"order": "",
"oldName": "cid"
}
],
"oldName": "",
"indexMethod": "BTREE",
"comment": ""
},
"foreignKeys": [
{
"objectType": "ForeignKey_MYSQL",
"name": "fk_week1_car_week1_car_log_1",
"fields": [
"cid"
],
"referenceSchema": "high-six-exam",
"referenceTable": "week1_car_log",
"referenceFields": [
"cid"
],
"onDelete": "",
"onUpdate": "",
"sourceCardinality": "NoneRelationship",
"targetCardinality": "NoneRelationship",
"oldName": ""
},
{
"objectType": "ForeignKey_MYSQL",
"name": "fk_week1_car_week1_car_type_1",
"fields": [
"tid"
],
"referenceSchema": "high-six-exam",
"referenceTable": "week1_car_type",
"referenceFields": [
"tid"
],
"onDelete": "",
"onUpdate": "",
"sourceCardinality": "NoneRelationship",
"targetCardinality": "NoneRelationship",
"oldName": ""
}
],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MYSQL",
"name": "week1_car_log",
"comment": "租车日志表",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_general_ci",
"autoIncrement": 2,
"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": "week1_car_log",
"encryption": false,
"createOptions": "",
"createTime": "2024-07-23 09:23:10",
"checkTime": "",
"dataFree": 0,
"dataLength": 16384,
"indexLength": 0,
"maxDataLength": 0,
"rows": 0,
"updateTime": "",
"DDL": "CREATE TABLE `week1_car_log` (\n `lid` int(11) NOT NULL AUTO_INCREMENT COMMENT '记录ID',\n `cid` int(11) DEFAULT NULL COMMENT '记录车辆',\n `uid` int(11) DEFAULT NULL COMMENT '记录用户',\n `lstadate` datetime DEFAULT NULL COMMENT '租车开始时间',\n `ltime` int(11) DEFAULT NULL COMMENT '用车时间',\n `ldist` decimal(10,1) DEFAULT NULL COMMENT '行驶距离',\n `lprice` decimal(10,2) DEFAULT NULL COMMENT '费用',\n `lsta` varchar(255) DEFAULT '1' COMMENT '状态 1.骑行中 2.已结束',\n PRIMARY KEY (`lid`)\n) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='租车日志表'",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MYSQL",
"name": "lid",
"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": "lid"
},
{
"objectType": "TableField_MYSQL",
"name": "cid",
"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": "cid"
},
{
"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": "lstadate",
"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": "lstadate"
},
{
"objectType": "TableField_MYSQL",
"name": "ltime",
"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": "ltime"
},
{
"objectType": "TableField_MYSQL",
"name": "ldist",
"type": "decimal",
"length": 10,
"decimals": 1,
"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": "ldist"
},
{
"objectType": "TableField_MYSQL",
"name": "lprice",
"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": "lprice"
},
{
"objectType": "TableField_MYSQL",
"name": "lsta",
"type": "varchar",
"length": 255,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "utf8mb4",
"collation": "utf8mb4_general_ci",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "'1'",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "状态 1.骑行中 2.已结束",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "lsta"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
{
"objectType": "IndexField_MYSQL",
"name": "lid",
"keyLength": 0,
"order": "",
"oldName": "lid"
}
],
"oldName": "",
"indexMethod": "BTREE",
"comment": ""
},
"foreignKeys": [],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MYSQL",
"name": "week1_car_type",
"comment": "车辆类型表",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_general_ci",
"autoIncrement": 5,
"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": "week1_car_type",
"encryption": false,
"createOptions": "",
"createTime": "2024-07-23 09:23:10",
"checkTime": "",
"dataFree": 0,
"dataLength": 16384,
"indexLength": 0,
"maxDataLength": 0,
"rows": 4,
"updateTime": "",
"DDL": "CREATE TABLE `week1_car_type` (\n `tid` int(11) NOT NULL AUTO_INCREMENT COMMENT '车辆类型',\n `tname` varchar(255) DEFAULT NULL COMMENT '车辆类型名称',\n `tprice` decimal(10,2) DEFAULT NULL COMMENT '车辆出租价格',\n PRIMARY KEY (`tid`)\n) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='车辆类型表'",
"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": "车辆类型",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "tid"
},
{
"objectType": "TableField_MYSQL",
"name": "tname",
"type": "varchar",
"length": 255,
"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": "tprice",
"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": "tprice"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
{
"objectType": "IndexField_MYSQL",
"name": "tid",
"keyLength": 0,
"order": "",
"oldName": "tid"
}
],
"oldName": "",
"indexMethod": "BTREE",
"comment": ""
},
"foreignKeys": [],
"checks": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MYSQL",
"name": "week1_user",
"comment": "用户表",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_general_ci",
"autoIncrement": 2,
"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": "week1_user",
"encryption": false,
"createOptions": "",
"createTime": "2024-07-23 09:23:10",
"checkTime": "",
"dataFree": 0,
"dataLength": 16384,
"indexLength": 0,
"maxDataLength": 0,
"rows": 0,
"updateTime": "",
"DDL": "CREATE TABLE `week1_user` (\n `uid` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',\n `uname` varchar(255) DEFAULT NULL COMMENT '用户名',\n `upwd` varchar(255) DEFAULT NULL COMMENT '用户密码',\n `uprice` decimal(10,2) DEFAULT NULL COMMENT '用户余额',\n `utel` varchar(255) DEFAULT NULL COMMENT '用户手机号',\n PRIMARY KEY (`uid`)\n) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='用户表'",
"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": 255,
"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": "upwd",
"type": "varchar",
"length": 255,
"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": "upwd"
},
{
"objectType": "TableField_MYSQL",
"name": "uprice",
"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": "uprice"
},
{
"objectType": "TableField_MYSQL",
"name": "utel",
"type": "varchar",
"length": 255,
"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": "utel"
}
],
"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_week1_user_week1_car_log_1",
"fields": [
"uid"
],
"referenceSchema": "high-six-exam",
"referenceTable": "week1_car_log",
"referenceFields": [
"uid"
],
"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": "week1_car",
"x": 590,
"y": 60,
"width": 155,
"height": 130,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "high-six-exam",
"tableName": "week1_car_log",
"x": 340,
"y": 40,
"width": 161,
"height": 210,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "high-six-exam",
"tableName": "week1_car_type",
"x": 840,
"y": 110,
"width": 162,
"height": 110,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "table",
"schemaName": "high-six-exam",
"tableName": "week1_user",
"x": 40,
"y": 90,
"width": 165,
"height": 150,
"isBold": false,
"titleColor": {
"r": 55,
"g": 131,
"b": 192,
"a": 1
}
},
{
"type": "label",
"name": "Label 1",
"x": 250,
"y": 90,
"width": 50,
"height": 30,
"text": "1:n",
"fontName": "Arial Unicode MS",
"fontSize": 14,
"isFontBold": false,
"isFontItalic": false
},
{
"type": "label",
"name": "Label 2",
"x": 521,
"y": 75,
"width": 50,
"height": 30,
"text": "n:1",
"fontName": "Arial Unicode MS",
"fontSize": 14,
"isFontBold": false,
"isFontItalic": false
},
{
"type": "label",
"name": "Label 3",
"x": 783,
"y": 109,
"width": 50,
"height": 30,
"text": "1:n",
"fontName": "Arial Unicode MS",
"fontSize": 14,
"isFontBold": false,
"isFontItalic": false
}
],
"layers": [],
"relations": [
{
"name": "fk_week1_user_week1_car_log_1",
"sourceTableName": "week1_user",
"sourceSchemaName": "high-six-exam",
"lineWidth": 1,
"visible": true,
"vertices": [
{
"x": 220,
"y": 130
},
{
"x": 272,
"y": 130
},
{
"x": 272,
"y": 130
},
{
"x": 325,
"y": 130
}
],
"label": {
"x": 210,
"y": 92,
"width": 218,
"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_week1_car_week1_car_log_1",
"sourceTableName": "week1_car",
"sourceSchemaName": "high-six-exam",
"lineWidth": 1,
"visible": true,
"vertices": [
{
"x": 575,
"y": 110
},
{
"x": 545,
"y": 110
},
{
"x": 545,
"y": 110
},
{
"x": 516,
"y": 110
}
],
"label": {
"x": 375,
"y": 72,
"width": 210,
"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_week1_car_week1_car_type_1",
"sourceTableName": "week1_car",
"sourceSchemaName": "high-six-exam",
"lineWidth": 1,
"visible": true,
"vertices": [
{
"x": 760,
"y": 150
},
{
"x": 820,
"y": 150
},
{
"x": 825,
"y": 150
}
],
"label": {
"x": 750,
"y": 112,
"width": 217,
"height": 30,
"fontName": "Arial Unicode MS",
"fontSize": 14,
"fontColor": {
"r": 204,
"g": 204,
"b": 204,
"a": 1
},
"isFontBold": false,
"isFontItalic": false,
"isVisible": false
}
}
],
"viewRelations": []
}
]
}