This commit is contained in:
Yanislav Igonin 2021-08-30 10:03:14 +03:00
parent 8b835ee8fc
commit 1c2b8b83f1

View File

@ -28,10 +28,10 @@ CREATE TABLE files
(
id SERIAL PRIMARY KEY,
post_id INTEGER NOT NULL,
created_at TIMESTAMP DEFAULT NOW() NOT NULL,
name VARCHAR NOT NULL,
ext VARCHAR NOT NULL,
size INTEGER NOT NULL,
created_at TIMESTAMP DEFAULT NOW() NOT NULL,
FOREIGN KEY (post_id) REFERENCES posts (id)
);