summaryrefslogtreecommitdiffstats
path: root/migrations/20220912114912_add-models-uploads-table.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/20220912114912_add-models-uploads-table.sql')
-rw-r--r--migrations/20220912114912_add-models-uploads-table.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/migrations/20220912114912_add-models-uploads-table.sql b/migrations/20220912114912_add-models-uploads-table.sql
new file mode 100644
index 0000000..6647c69
--- /dev/null
+++ b/migrations/20220912114912_add-models-uploads-table.sql
@@ -0,0 +1,6 @@
+CREATE TABLE uploads (
+ id SERIAL PRIMARY KEY,
+ model_id INTEGER REFERENCES models(id) NOT NULL,
+ filepath VARCHAR NOT NULL,
+ created TIMESTAMP NOT NULL
+);