Browse Source

refactoring: createAdmTables

refactor
Ulrich 1 year ago
parent
commit
06c138e554
  1. 6
      model/ap_application.csv
  2. 6
      model/ap_applications.csv
  3. 4
      model/ap_components.csv
  4. 4
      model/ap_projects.csv
  5. 7
      model/ap_usecases.csv
  6. 7
      model/ap_variants.csv
  7. 18
      model/application.py
  8. 46
      model/artifact.py
  9. 4
      model/co_artifacts.csv
  10. 11
      model/co_steps.csv
  11. 4
      model/co_tables.csv
  12. 4
      model/en_components.csv
  13. 6
      model/en_project.csv
  14. 6
      model/en_projects.csv
  15. 20
      model/factory.py
  16. 3
      model/release.py
  17. 6
      model/rl_applications.csv
  18. 8
      model/rl_stories.csv
  19. 8
      model/st_releases.csv
  20. 1
      model/story.py
  21. 2
      model/table.py
  22. 4
      model/tc_steps.csv
  23. 4
      model/tc_stories.csv
  24. 4
      model/tc_tables.csv
  25. 4
      model/tp_testsuites.csv
  26. 4
      model/tr_artifacts.csv
  27. 4
      model/ts_testcases.csv
  28. 4
      model/ts_usecases.csv
  29. 4
      model/variant.py

6
model/ap_application.csv

@ -1,6 +0,0 @@
_type;ctlg;;;;;;;;;
_key;_field;;;;;;;;;
table:ap_application;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;apappid;pk;vchar(256);N;;;;;;
;apid;int;vchar(256);I;;;;;;
;appid;int;vchar(256);I;;;;;;
1 _type ctlg
2 _key _field
3 table:ap_application _field type format index generic aggregat key acceptance alias description
4 apappid pk vchar(256) N
5 apid int vchar(256) I
6 appid int vchar(256) I

6
model/ap_applications.csv

@ -0,0 +1,6 @@
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:ap_applications;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;apappid;pk;vchar(256);N;;;;;;
;apid;int;vchar(256);I;;;;;;
;appid;int;vchar(256);I;;;;;;
1 _type ddl
2 _key _field
3 table:ap_applications _field type format index generic aggregat key acceptance alias description
4 apappid pk vchar(256) N
5 apid int vchar(256) I
6 appid int vchar(256) I

4
model/ap_component.csv → model/ap_components.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:ap_component;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:ap_components;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;apcomid;pk;int;N;;;;;;
;apid;int;int;I;;;;;;
;coid;int;int;I;;;;;;
1 _type ddl
2 _key _field
3 table:ap_components _field type format index generic aggregat key acceptance alias description
4 apcomid pk int N
5 apid int int I
6 coid int int I
7 component str vchar(256) N

4
model/ap_project.csv → model/ap_projects.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:ap_project;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:ap_projects;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;pjid;pk;int;N;;;;;;
;apid;int;int;I;;;;;;
;project;str;vchar(256);I;;;;;;
1 _type ddl
2 _key _field
3 table:ap_projects _field type format index generic aggregat key acceptance alias description
4 pjid pk int N
5 apid int int I
6 project str vchar(256) I
7 description string vchar(256) N
8 reference str vchar(256) N

7
model/ap_usecases.csv

@ -0,0 +1,7 @@
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:ap_usecases;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;apuseid;pk;int;N;;;;;;
;apid;int;int;I;;;;;;
;usid;int;int;I;;;;;;
;usecase;str;vchar(256);N;;;;;;
1 _type ddl
2 _key _field
3 table:ap_usecases _field type format index generic aggregat key acceptance alias description
4 apuseid pk int N
5 apid int int I
6 usid int int I
7 usecase str vchar(256) N

7
model/ap_variants.csv

@ -0,0 +1,7 @@
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:ap_variants;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;apvarid;pk;int;N;;;;;;
;apid;int;int;I;;;;;;
;vaid;int;int;I;;;;;;
;variannt;str;vchar(256);N;;;;;;
1 _type ddl
2 _key _field
3 table:ap_variants _field type format index generic aggregat key acceptance alias description
4 apvarid pk int N
5 apid int int I
6 vaid int int I
7 variannt str vchar(256) N

18
model/application.py

@ -24,23 +24,9 @@ DEFAULT_SYNC = M.SYNC_FULL_GIT2DB
TABLE_NAME = B.SUBJECT_APP
""" system-name for this entity """
FIELD_ID = "apid"
FIELD_NAME = D.FIELD_NAME
FIELD_DESCRIPTION = B.SUBJECT_DESCRIPTION
FIELD_REFERENCE = B.SUBJECT_REFERENCE
FIELD_PROJECT = B.SUBJECT_PROJECT
LIST_FIELDS = [FIELD_ID, FIELD_NAME, FIELD_DESCRIPTION, FIELD_REFERENCE, FIELD_PROJECT]
""" list of object-attributes """
LIST_NODES = [B.NODE_ATTRIBUTES]
SUB_COMPS = B.SUBJECT_COMPS
SUB_APPS = B.SUBJECT_APPS
SUB_RELS = B.SUBJECT_RELS
SUB_USECASE = B.SUBJECT_USECASES
LIST_SUBTABLES = [SUB_APPS, SUB_COMPS, SUB_RELS, SUB_USECASE]
PREFIX_SUBTABLE = "ap"
FILE_EXTENSION = D.DFILE_TYPE_YML
UNIQUE_FIELDS = [FIELD_NAME]
UNIQUE_FIELDS = [D.FIELD_NAME]
""" unique business field as human identifer """
IDENTIFYER_FIELDS = [FIELD_ID]
""" unique technical field as technical identifer """
@ -201,7 +187,7 @@ class Application(model.entity.Entity):
LIST_FIELDS = [FIELD_ID, D.FIELD_NAME, B.SUBJECT_DESCRIPTION, B.SUBJECT_REFERENCE, B.SUBJECT_PROJECT]
""" list of object-attributes """
LIST_NODES = [B.NODE_ATTRIBUTES]
LIST_SUBTABLES = [B.SUBJECT_APPS, B.SUBJECT_COMPS, B.SUBJECT_RELS, B.SUBJECT_USECASES]
LIST_SUBTABLES = [B.SUBJECT_APPS, B.SUBJECT_COMPS, B.SUBJECT_USECASES, B.SUBJECT_VARIANTS]
PREFIX_SUBTABLE = "ap"
def read_unique_names(self, job, project, application, gran, args):

46
model/artifact.py

@ -0,0 +1,46 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------------------------------------
# Author : Ulrich Carmesin
# Source : gitea.ucarmesin.de
# ---------------------------------------------------------------------------------------------------------
import basic.toolHandling
import tools.data_const as D
import basic.constants as B
import model.entity
import tools.config_tool
FIELD_ID = "arid"
LIST_FIELDS = [FIELD_ID, D.FIELD_NAME, B.SUBJECT_DESCRIPTION, B.SUBJECT_REFERENCE,
B.SUBJECT_PROJECT, B.SUBJECT_COMP, B.SUBJECT_TESTCASE]
""" list of object-attributes """
LIST_NODES = [B.NODE_ATTRIBUTES]
LIST_SUBTABLES = []
class Artifact(model.entity.Entity):
FIELD_ID = "arid"
LIST_FIELDS = [FIELD_ID, D.FIELD_NAME, B.SUBJECT_DESCRIPTION, B.SUBJECT_REFERENCE,
B.SUBJECT_PROJECT, B.SUBJECT_COMP, B.SUBJECT_TESTCASE]
""" list of object-attributes """
LIST_NODES = [B.NODE_ATTRIBUTES]
LIST_SUBTABLES = []
name = ""
description = ""
release = ""
testsuites = {}
steps = []
def read_entity(self, job, name):
"""
reads the entity from the file-system
:param job:
:param name:
:return:
"""
config = {}
return self.setAttributes(job, config, name, self.LIST_FIELDS, self.LIST_NODES, self.LIST_SUBTABLES)

4
model/co_artifact.csv → model/co_artifacts.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:co_artifact;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:co_artifacts;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;coartid;pk;int;N;;;;;;
;coid;int;integer;I;;;T:1;;;
;stid;int;integer;I;;;T:2;;;
1 _type ddl
2 _key _field
3 table:co_artifacts _field type format index generic aggregat key acceptance alias description
4 coartid pk int N
5 coid int integer I T:1
6 stid int integer I T:2
7 story str vchar(256) I
8 description string vchar(256) N
9 reference str vchar(256) N
10 acceptcriteria str clob N

11
model/co_steps.csv

@ -0,0 +1,11 @@
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:co_steps;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;costpid;pk;int;N;;;;;;
;coid;int;integer;I;;;T:1;;;
;vaid;int;integer;I;;;T:2;;;
;stid;int;integer;I;;;T:2;;;
;step;str;vchar(256);I;;;;;;
;variant;str;vchar(256);I;;;;;;
;description;string;vchar(256);N;;;;;;
1 _type ddl
2 _key _field
3 table:co_steps _field type format index generic aggregat key acceptance alias description
4 costpid pk int N
5 coid int integer I T:1
6 vaid int integer I T:2
7 stid int integer I T:2
8 step str vchar(256) I
9 variant str vchar(256) I
10 description string vchar(256) N

4
model/co_table.csv → model/co_tables.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:co_table;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:co_tables;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;codtbid;pk;int;N;;;;;;
;coid;int;integer;I;;;T:1;;;
;dtid;int;integer;I;;;T:2;;;
1 _type ddl
2 _key _field
3 table:co_tables _field type format index generic aggregat key acceptance alias description
4 codtbid pk int N
5 coid int integer I T:1
6 dtid int integer I T:2
7 datatable str vchar(256) I
8 description string vchar(256) N
9 reference str vchar(256) N
10 acceptcriteria str clob N

4
model/en_component.csv → model/en_components.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:en_component;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:en_components;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;encomid;pk;int;N;;;;;;
;enid;int;vchar(256);I;;;;;;
;component;str;vchar(256);I;;;;;;
1 _type ddl
2 _key _field
3 table:en_components _field type format index generic aggregat key acceptance alias description
4 encomid pk int N
5 enid int vchar(256) I
6 component str vchar(256) I
7 instance int vchar(256) N
8 type str vchar(256) N
9 ip str vchar(256) N
10 port str vchar(256) N
11 hostname str vchar(256) N
12 dompath str vchar(256) N
13 user str vchar(256) N
14 password str vchar(256) N
15 attributes string vchar(256) N

6
model/en_project.csv

@ -1,6 +0,0 @@
_type;ctlg;;;;;;;;;
_key;_field;;;;;;;;;
table:en_project;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;enproid;pk;int;N;;;;;;
;enid;int;vchar(256);I;;;;;;
;project;str;vchar(256);I;;;;;;
1 _type ctlg
2 _key _field
3 table:en_project _field type format index generic aggregat key acceptance alias description
4 enproid pk int N
5 enid int vchar(256) I
6 project str vchar(256) I

6
model/en_projects.csv

@ -0,0 +1,6 @@
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:en_projects;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;enproid;pk;int;N;;;;;;
;enid;int;vchar(256);I;;;;;;
;project;str;vchar(256);I;;;;;;
1 _type ddl
2 _key _field
3 table:en_projects _field type format index generic aggregat key acceptance alias description
4 enproid pk int N
5 enid int vchar(256) I
6 project str vchar(256) I

20
model/factory.py

@ -7,7 +7,7 @@ def get_entity_object(job, name, args):
if name in [B.SUBJECT_STEPS, B.SUBJECT_STEP]:
entity = getStep(job)
elif name in [B.SUBJECT_STORIES, B.SUBJECT_STORY]:
elif name in [B.SUBJECT_STORIES, B.SUBJECT_STORY, "storys"]:
entity = getStory(job)
elif name in [B.SUBJECT_VARIANTS, B.SUBJECT_VARIANT]:
entity = getVariant(job)
@ -21,24 +21,38 @@ def get_entity_object(job, name, args):
entity = getApplication(job)
elif name in [B.SUBJECT_COMPS, B.SUBJECT_COMP]:
entity = getComponent(job)
elif name in [B.SUBJECT_ARTIFACTS, B.SUBJECT_ARTIFACT]:
entity = getEnvironment(job)
elif name in [B.SUBJECT_TESTCASES, B.SUBJECT_TESTCASE]:
entity = getTestcase(job)
elif name in [B.SUBJECT_TESTSUITES]:
elif name in [B.SUBJECT_TESTSUITES, B.SUBJECT_TESTSUITE]:
entity = getTestsuite(job)
elif name in [B.SUBJECT_TESTPLANS, B.SUBJECT_TESTPLAN]:
entity = getTestplan(job)
elif name in [B.SUBJECT_USERS, B.SUBJECT_USER]:
entity = getUser(job)
elif name in [B.SUBJECT_REL, B.SUBJECT_RELS]:
entity = getRelease(job)
elif name in [B.SUBJECT_ENVIRONMENT, B.SUBJECT_ENVIRONMENTS]:
entity = getEnvironment(job)
else:
return None
entity.setAttributes(job, args, name, entity.getFieldList(), entity.getNodeList(), entity.getSubtableList())
#testserver = basic.Testserver.getInstance(job)
return entity
def getEnvironment(job=None):
def getRelease(job=None, name=""):
import model.release
return model.release.Release(job)
def getEnvironment(job=None, name=""):
import model.environment
return model.environment.Environment(job)
def getArtifact(job=None, name=""):
import model.artifact
return model.artifact.Artifact(job)
def getApplication(job=None, args={}, name=""):
import model.application
return model.application.Application(job)

3
model/release.py

@ -27,7 +27,8 @@ class Release(model.entity.Entity):
B.NODE_ATTRIBUTES]
""" list of object-attributes """
LIST_NODES = [B.NODE_ATTRIBUTES]
LIST_SUBTABLES = []
LIST_SUBTABLES = [B.SUBJECT_APPS, B.SUBJECT_STORIES]
PREFIX_SUBTABLE = "rl"
rlid = 0
name = ""

6
model/rl_applications.csv

@ -0,0 +1,6 @@
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:rl_applications;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;rlappid;pk;vchar(256);N;;;;;;
;rlid;int;vchar(256);I;;;;;;
;appid;int;vchar(256);I;;;;;;
1 _type ddl
2 _key _field
3 table:rl_applications _field type format index generic aggregat key acceptance alias description
4 rlappid pk vchar(256) N
5 rlid int vchar(256) I
6 appid int vchar(256) I

8
model/co_step.csv → model/rl_stories.csv

@ -1,8 +1,8 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:co_step;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;costpid;pk;int;N;;;;;;
;coid;int;integer;I;;;T:1;;;
table:rl_stories;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;rlstrid;pk;integer;N;;;T:1;;;
;rlid;int;integer;I;;;T:1;;;
;stid;int;integer;I;;;T:2;;;
;story;str;vchar(256);I;;;;;;
;description;string;vchar(256);N;;;;;;
1 _type ddl
2 _key _field
3 table:rl_stories _field type format index generic aggregat key acceptance alias description
4 rlstrid pk integer N T:1
5 rlid int integer I T:1
6 stid int integer I T:2
7 story str vchar(256) I
8 description string vchar(256) N
9 reference str vchar(256) N
10 acceptcriteria str clob N

8
model/st_releases.csv

@ -0,0 +1,8 @@
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:st_releases;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;strelid;pk;integer;N;;;;;;
;stid;int;integer;I;;;T:1;;;
;rlid;int;integer;I;;;T:2;;;
;description;string;vchar(256);N;;;;;;
;reference;str;vchar(256);N;;;;;;
1 _type ddl
2 _key _field
3 table:st_releases _field type format index generic aggregat key acceptance alias description
4 strelid pk integer N
5 stid int integer I T:1
6 rlid int integer I T:2
7 description string vchar(256) N
8 reference str vchar(256) N

1
model/story.py

@ -27,6 +27,7 @@ class Story(model.entity.Entity):
""" list of object-attributes """
LIST_NODES = []
LIST_SUBTABLES = [B.SUBJECT_RELS]
PREFIX_SUBTABLE = "st"
stid = 0
story = ""

2
model/table.py

@ -135,6 +135,7 @@ class Table(model.entity.Entity):
:param context:
:return:
"""
config = {}
if "context" in args:
if args["context"] == "component":
ddl = tools.config_tool.getConfig(job, D.DDL_FILENAME, self.component.name, name, ttype=D.CSV_SPECTYPE_DDL)
@ -142,7 +143,6 @@ class Table(model.entity.Entity):
ddl = tools.config_tool.getConfig(job, D.DDL_FILENAME, args["context"], name, ttype=D.CSV_SPECTYPE_DDL)
elif args["context"] == B.ATTR_INST_TESTSERVER:
ddl = tools.config_tool.getConfig(job, D.DDL_FILENAME, B.ATTR_INST_TESTSERVER, name, ttype=D.CSV_SPECTYPE_DDL)
config = {}
if "_name" in ddl:
config[ddl["_name"]] = ddl
else:

4
model/tc_step.csv → model/tc_steps.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:tc_step;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:tc_steps;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;tcstpid;pk;integer;N;;;;;;
;tcid;int;integer;I;;;T:1;;;
;spid;int;integer;I;;;T:2;;;
1 _type ddl
2 _key _field
3 table:tc_steps _field type format index generic aggregat key acceptance alias description
4 tcstpid pk integer N
5 tcid int integer I T:1
6 spid int integer I T:2
7 description string vchar(256) N
8 reference str vchar(256) N

4
model/tc_story.csv → model/tc_stories.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:tc_story;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:tc_stories;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;tcstrid;pk;integer;N;;;T:1;;;
;tcid;int;integer;I;;;T:1;;;
;stid;int;integer;I;;;T:2;;;
1 _type ddl
2 _key _field
3 table:tc_stories _field type format index generic aggregat key acceptance alias description
4 tcstrid pk integer N T:1
5 tcid int integer I T:1
6 stid int integer I T:2
7 story str vchar(256) I
8 description string vchar(256) N
9 reference str vchar(256) N
10 acceptcriteria str clob N

4
model/tc_table.csv → model/tc_tables.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:tc_table;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:tc_tables;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;tcdtbid;pk;integer;N;;;;;;
;tcid;int;integer;I;;;T:1;;;
;dtid;int;integer;I;;;T:2;;;
1 _type ddl
2 _key _field
3 table:tc_tables _field type format index generic aggregat key acceptance alias description
4 tcdtbid pk integer N
5 tcid int integer I T:1
6 dtid int integer I T:2
7 count int int N
8 refdate date date N

4
model/tp_testsuite.csv → model/tp_testsuites.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:tp_testsuite;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:tp_testsuites;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;tptsuid;pk;integer;N;;;;;;
;tpid;int;integer;I;;;T:1;;;
;tsid;int;integer;I;;;T:2;;;
1 _type ddl
2 _key _field
3 table:tp_testsuites _field type format index generic aggregat key acceptance alias description
4 tptsuid pk integer N
5 tpid int integer I T:1
6 tsid int integer I T:2
7 description string vchar(256) N
8 reference str vchar(256) N

4
model/tr_artifact.csv → model/tr_artifacts.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:tr_artifact;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:tr_artifacts;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;trartid;pk;integer;N;;;;;;
;trid;int;integer;I;;;T:1;;;
;arid;int;integer;I;;;T:2;;;
1 _type ddl
2 _key _field
3 table:tr_artifacts _field type format index generic aggregat key acceptance alias description
4 trartid pk integer N
5 trid int integer I T:1
6 arid int integer I T:2
7 result str vchar(256) I
8 description string vchar(256) N
9 reference str vchar(256) N

4
model/ts_testcase.csv → model/ts_testcases.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:ts_testcase;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:ts_testcases;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;tstcsid;pk;integer;N;;;;;;
;tsid;int;integer;I;;;T:1;;;
;tcid;int;integer;I;;;T:2;;;
1 _type ddl
2 _key _field
3 table:ts_testcases _field type format index generic aggregat key acceptance alias description
4 tstcsid pk integer N
5 tsid int integer I T:1
6 tcid int integer I T:2
7 description string vchar(256) N
8 reference str vchar(256) N

4
model/ts_usecase.csv → model/ts_usecases.csv

@ -1,6 +1,6 @@
_type;ctlg;;;;;;;;;
_type;ddl;;;;;;;;;
_key;_field;;;;;;;;;
table:ts_usecase;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
table:ts_usecases;_field;type;format;index;generic;aggregat;key;acceptance;alias;description
;tsucsid;pk;integer;N;;;;;;
;tsid;int;integer;I;;;T:1;;;
;ucid;int;integer;I;;;T:2;;;
1 _type ddl
2 _key _field
3 table:ts_usecases _field type format index generic aggregat key acceptance alias description
4 tsucsid pk integer N
5 tsid int integer I T:1
6 ucid int integer I T:2
7 description string vchar(256) N
8 reference str vchar(256) N

4
model/variant.py

@ -26,10 +26,10 @@ IDENTIFYER_FIELDS = [FIELD_ID]
class Variant(model.entity.Entity):
FIELD_ID = "vrid"
LIST_FIELDS = [FIELD_ID, D.FIELD_NAME, B.SUBJECT_DESCRIPTION, B.SUBJECT_REFERENCE, B.SUBJECT_PROJECT]
LIST_FIELDS = [FIELD_ID, D.FIELD_NAME, B.SUBJECT_DESCRIPTION, B.SUBJECT_REFERENCE, B.SUBJECT_PROJECT, B.SUBJECT_COMP]
""" list of object-attributes """
LIST_NODES = [B.NODE_ATTRIBUTES]
LIST_SUBTABLES = [B.SUBJECT_COMPS]
LIST_SUBTABLES = []
""" list of object-attributes """
name = ""
description = ""

Loading…
Cancel
Save