Skip to content

Commit 5953ba9

Browse files
committed
Add creation/modification of functions in table
1 parent 983ae3d commit 5953ba9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,20 @@
7070
nullable=True,
7171
doc="Default inputs of the function",
7272
),
73+
sa.Column(
74+
"created",
75+
sa.DateTime,
76+
nullable=False,
77+
server_default=sa.func.now(),
78+
doc="Creation timestamp of the function",
79+
),
80+
sa.Column(
81+
"modified",
82+
sa.DateTime,
83+
nullable=False,
84+
server_default=sa.func.now(),
85+
onupdate=sa.func.now(),
86+
doc="Last update timestamp of the function",
87+
),
7388
sa.PrimaryKeyConstraint("uuid", name="funcapi_functions_pk"),
7489
)

0 commit comments

Comments
 (0)