Skip to content

Commit

Permalink
extract first columns
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarloromeo committed Jan 7, 2025
1 parent 4659473 commit 5807f81
Showing 1 changed file with 111 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,133 @@
),
nullable=False,
index=True,
doc="The project unique identifier",
doc="Project unique identifier",
),
sa.Column(
"node_id",
sa.String,
nullable=False,
index=True,
doc="The node unique identifier",
doc="Node unique identifier",
),
sa.Column(
"required_resources",
JSONB,
nullable=False,
server_default=sa.text("'{}'::jsonb"),
doc="The node required resources",
doc="Node required resources",
),
# TIME STAMPS ----
column_created_datetime(timezone=True),
column_modified_datetime(timezone=True),
sa.Column(
"key",
sa.String,
nullable=False,
doc="Distinctive name for the node based on the docker registry path",
),
sa.Column(
"version",
sa.String,
nullable=False,
doc="Semantic version number of the node",
),
sa.Column(
"label",
sa.String,
nullable=False,
doc="Short name of the node",
),
sa.Column(
"progress",
sa.Numeric,
nullable=True,
doc="Node progress value",
),
sa.Column(
"thumbnail",
sa.String,
nullable=False,
doc="Url of the latest screenshot of the node",
),
sa.Column(
"inputs",
JSONB,
nullable=True,
doc="Values of input properties",
),
sa.Column(
"outputs",
JSONB,
nullable=True,
doc="Values of output properties",
),
sa.Column(
"run_hash",
sa.String,
nullable=True,
doc="HEX digest of the resolved inputs + outputs hash at the time when the last outputs were generated",
),
sa.Column(
"state",
JSONB,
nullable=True,
doc="Node state",
),
# sa.Column(
# "inputs_units",
# JSONB,
# nullable=False,
# server_default=sa.text("'{}'::jsonb"),
# doc="Values of input unit",
# ),
# sa.Column(
# "input_access",
# JSONB,
# nullable=False,
# server_default=sa.text("'{}'::jsonb"),
# doc="Map with key - access level pairs",
# ),
# sa.Column(
# "input_nodes",
# JSONB, # <-- ARRAY
# nullable=False,
# server_default=sa.text("'[]'::jsonb"),
# doc="Node IDs of where the node is connected to",
# ),
# sa.Column(
# "output_node",
# sa.BOOLEAN,
# nullable=False,
# doc="Deprecated",
# ),
# sa.Column(
# "output_nodes",
# JSONB, # <-- ARRAY
# nullable=False,
# server_default=sa.text("'[]'::jsonb"),
# doc="Used in group-nodes. Node IDs of those connected to the output",
# ),
# sa.Column(
# "parent",
# sa.String,
# nullable=True,
# doc="Parent's (group-nodes) node IDs.",
# ),
# sa.Column(
# "position",
# JSONB,
# nullable=True,
# server_default=sa.text("'{}'::jsonb"),
# doc="Deprecated",
# ),
# sa.Column(
# "boot_options",
# JSONB,
# nullable=True,
# server_default=sa.text("'{}'::jsonb"),
# 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.",
# ),
sa.UniqueConstraint("project_uuid", "node_id"),
)

Expand Down

0 comments on commit 5807f81

Please sign in to comment.