Browse Source

Merge remote-tracking branch 'origin/master' into master

zangkai 5 years ago
parent
commit
a142ba4e99
1 changed files with 188 additions and 21 deletions
  1. 188 21
      doc/系统设计/数据库设计/data.pdman.json

+ 188 - 21
doc/系统设计/数据库设计/data.pdman.json

@@ -5,7 +5,7 @@
       "chnname": "课程管理",
       "entities": [
         {
-          "title": "COURSE",
+          "title": "COURSE_DETAIL",
           "fields": [
             {
               "name": "ID",
@@ -16,6 +16,12 @@
               "notNull": true,
               "autoIncrement": true
             },
+            {
+              "name": "COURSE_ID",
+              "type": "Integer",
+              "remark": "",
+              "chnname": "课程表ID"
+            },
             {
               "name": "YEAR",
               "type": "Integer",
@@ -178,7 +184,7 @@
               "relationNoShow": true
             }
           ],
-          "chnname": "课程表"
+          "chnname": "课程明细表"
         },
         {
           "title": "CLASS",
@@ -286,46 +292,196 @@
             }
           ],
           "chnname": "班级表"
+        },
+        {
+          "title": "COURSE",
+          "fields": [
+            {
+              "name": "ID",
+              "type": "Integer",
+              "remark": "",
+              "chnname": "主键",
+              "pk": true,
+              "notNull": true,
+              "autoIncrement": true
+            },
+            {
+              "name": "YEAR",
+              "type": "Integer",
+              "remark": "",
+              "chnname": "学年"
+            },
+            {
+              "name": "TERM",
+              "type": "Integer",
+              "remark": "",
+              "chnname": "学期"
+            },
+            {
+              "name": "CLASS_ID",
+              "type": "Integer",
+              "remark": "",
+              "chnname": "班级ID"
+            },
+            {
+              "name": "COURSE_WEEK",
+              "type": "ShortString",
+              "remark": "",
+              "chnname": "标题"
+            },
+            {
+              "name": "STATE",
+              "type": "DefaultString",
+              "remark": "",
+              "chnname": "状态"
+            },
+            {
+              "name": "CREATED_BY",
+              "type": "IdOrKey",
+              "remark": "",
+              "chnname": "创建人"
+            },
+            {
+              "name": "CREATED_TIME",
+              "type": "DateTime",
+              "remark": "",
+              "chnname": "创建时间"
+            },
+            {
+              "name": "UPDATED_BY",
+              "type": "IdOrKey",
+              "remark": "",
+              "chnname": "更新人"
+            },
+            {
+              "name": "UPDATED_TIME",
+              "type": "DateTime",
+              "remark": "",
+              "chnname": "更新时间"
+            },
+            {
+              "name": "IS_DEL",
+              "type": "Integer",
+              "remark": "",
+              "chnname": "删除标志",
+              "notNull": true
+            }
+          ],
+          "indexs": [],
+          "headers": [
+            {
+              "fieldName": "chnname",
+              "relationNoShow": false
+            },
+            {
+              "fieldName": "name",
+              "relationNoShow": false
+            },
+            {
+              "fieldName": "type",
+              "relationNoShow": false
+            },
+            {
+              "fieldName": "dataType",
+              "relationNoShow": true
+            },
+            {
+              "fieldName": "remark",
+              "relationNoShow": true
+            },
+            {
+              "fieldName": "pk",
+              "relationNoShow": false
+            },
+            {
+              "fieldName": "notNull",
+              "relationNoShow": true
+            },
+            {
+              "fieldName": "autoIncrement",
+              "relationNoShow": true
+            },
+            {
+              "fieldName": "defaultValue",
+              "relationNoShow": true
+            },
+            {
+              "fieldName": "relationNoShow",
+              "relationNoShow": true
+            },
+            {
+              "fieldName": "uiHint",
+              "relationNoShow": true
+            }
+          ],
+          "chnname": "课程表"
         }
       ],
       "graphCanvas": {
         "nodes": [
           {
             "shape": "table",
-            "title": "CLASS",
+            "title": "COURSE_DETAIL",
             "moduleName": false,
-            "x": 880,
-            "y": 300,
-            "id": "b41aeeea"
+            "x": 1420,
+            "y": 390,
+            "id": "11e3c11b"
           },
           {
             "shape": "table",
             "title": "COURSE",
             "moduleName": false,
-            "x": 330,
-            "y": 280,
-            "id": "c6c3311e"
+            "x": 940,
+            "y": 210,
+            "id": "113d6b3b"
+          },
+          {
+            "shape": "table",
+            "title": "CLASS",
+            "moduleName": false,
+            "x": 450,
+            "y": 360,
+            "id": "9453a63e"
           }
         ],
         "edges": [
           {
             "shape": "erdRelation",
             "relation": "0,n:1",
-            "source": "b41aeeea",
-            "target": "c6c3311e",
-            "id": "4153d0e7",
+            "source": "11e3c11b",
+            "target": "113d6b3b",
+            "id": "b5b5d6cd",
+            "controlPoints": [
+              {
+                "x": 1280.896484375,
+                "y": 242.14024390243904
+              },
+              {
+                "x": 1079.4375,
+                "y": 122.15
+              }
+            ],
+            "sourceAnchor": 2,
+            "targetAnchor": 1
+          },
+          {
+            "shape": "erdRelation",
+            "relation": "0,n:1",
+            "source": "113d6b3b",
+            "target": "9453a63e",
+            "id": "681521f7",
             "controlPoints": [
               {
-                "x": 732.0107421875,
-                "y": 242.19736842105263
+                "x": 800.5625,
+                "y": 182.39
               },
               {
-                "x": 469.103515625,
-                "y": 242.40384615384616
+                "x": 588.6552734375,
+                "y": 302.1973684210526
               }
             ],
-            "sourceAnchor": 0,
-            "targetAnchor": 13
+            "sourceAnchor": 6,
+            "targetAnchor": 1
           }
         ]
       },
@@ -333,12 +489,23 @@
         {
           "relation": "0,n:1",
           "from": {
-            "entity": "CLASS",
-            "field": "ID"
+            "entity": "COURSE_DETAIL",
+            "field": "COURSE_ID"
           },
           "to": {
             "entity": "COURSE",
-            "field": "CLASS"
+            "field": "ID"
+          }
+        },
+        {
+          "relation": "0,n:1",
+          "from": {
+            "entity": "COURSE",
+            "field": "CLASS_ID"
+          },
+          "to": {
+            "entity": "CLASS",
+            "field": "ID"
           }
         }
       ]