Skip to content

Commit 5807f81

Browse files
extract first columns
1 parent 4659473 commit 5807f81

File tree

1 file changed

+111
-3
lines changed

1 file changed

+111
-3
lines changed

packages/postgres-database/src/simcore_postgres_database/models/projects_nodes.py

Lines changed: 111 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,133 @@
3838
),
3939
nullable=False,
4040
index=True,
41-
doc="The project unique identifier",
41+
doc="Project unique identifier",
4242
),
4343
sa.Column(
4444
"node_id",
4545
sa.String,
4646
nullable=False,
4747
index=True,
48-
doc="The node unique identifier",
48+
doc="Node unique identifier",
4949
),
5050
sa.Column(
5151
"required_resources",
5252
JSONB,
5353
nullable=False,
5454
server_default=sa.text("'{}'::jsonb"),
55-
doc="The node required resources",
55+
doc="Node required resources",
5656
),
5757
# TIME STAMPS ----
5858
column_created_datetime(timezone=True),
5959
column_modified_datetime(timezone=True),
60+
sa.Column(
61+
"key",
62+
sa.String,
63+
nullable=False,
64+
doc="Distinctive name for the node based on the docker registry path",
65+
),
66+
sa.Column(
67+
"version",
68+
sa.String,
69+
nullable=False,
70+
doc="Semantic version number of the node",
71+
),
72+
sa.Column(
73+
"label",
74+
sa.String,
75+
nullable=False,
76+
doc="Short name of the node",
77+
),
78+
sa.Column(
79+
"progress",
80+
sa.Numeric,
81+
nullable=True,
82+
doc="Node progress value",
83+
),
84+
sa.Column(
85+
"thumbnail",
86+
sa.String,
87+
nullable=False,
88+
doc="Url of the latest screenshot of the node",
89+
),
90+
sa.Column(
91+
"inputs",
92+
JSONB,
93+
nullable=True,
94+
doc="Values of input properties",
95+
),
96+
sa.Column(
97+
"outputs",
98+
JSONB,
99+
nullable=True,
100+
doc="Values of output properties",
101+
),
102+
sa.Column(
103+
"run_hash",
104+
sa.String,
105+
nullable=True,
106+
doc="HEX digest of the resolved inputs + outputs hash at the time when the last outputs were generated",
107+
),
108+
sa.Column(
109+
"state",
110+
JSONB,
111+
nullable=True,
112+
doc="Node state",
113+
),
114+
# sa.Column(
115+
# "inputs_units",
116+
# JSONB,
117+
# nullable=False,
118+
# server_default=sa.text("'{}'::jsonb"),
119+
# doc="Values of input unit",
120+
# ),
121+
# sa.Column(
122+
# "input_access",
123+
# JSONB,
124+
# nullable=False,
125+
# server_default=sa.text("'{}'::jsonb"),
126+
# doc="Map with key - access level pairs",
127+
# ),
128+
# sa.Column(
129+
# "input_nodes",
130+
# JSONB, # <-- ARRAY
131+
# nullable=False,
132+
# server_default=sa.text("'[]'::jsonb"),
133+
# doc="Node IDs of where the node is connected to",
134+
# ),
135+
# sa.Column(
136+
# "output_node",
137+
# sa.BOOLEAN,
138+
# nullable=False,
139+
# doc="Deprecated",
140+
# ),
141+
# sa.Column(
142+
# "output_nodes",
143+
# JSONB, # <-- ARRAY
144+
# nullable=False,
145+
# server_default=sa.text("'[]'::jsonb"),
146+
# doc="Used in group-nodes. Node IDs of those connected to the output",
147+
# ),
148+
# sa.Column(
149+
# "parent",
150+
# sa.String,
151+
# nullable=True,
152+
# doc="Parent's (group-nodes) node IDs.",
153+
# ),
154+
# sa.Column(
155+
# "position",
156+
# JSONB,
157+
# nullable=True,
158+
# server_default=sa.text("'{}'::jsonb"),
159+
# doc="Deprecated",
160+
# ),
161+
# sa.Column(
162+
# "boot_options",
163+
# JSONB,
164+
# nullable=True,
165+
# server_default=sa.text("'{}'::jsonb"),
166+
# doc="Some services provide alternative parameters to be injected at boot time. The user selection should be stored here, and it will overwrite the services's defaults.",
167+
# ),
60168
sa.UniqueConstraint("project_uuid", "node_id"),
61169
)
62170

0 commit comments

Comments
 (0)