mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 22:32:33 +03:00
m;wemklw
This commit is contained in:
parent
8b835ee8fc
commit
1c2b8b83f1
@ -28,10 +28,10 @@ CREATE TABLE files
|
|||||||
(
|
(
|
||||||
id SERIAL PRIMARY KEY,
|
id SERIAL PRIMARY KEY,
|
||||||
post_id INTEGER NOT NULL,
|
post_id INTEGER NOT NULL,
|
||||||
created_at TIMESTAMP DEFAULT NOW() NOT NULL,
|
|
||||||
name VARCHAR NOT NULL,
|
name VARCHAR NOT NULL,
|
||||||
ext VARCHAR NOT NULL,
|
ext VARCHAR NOT NULL,
|
||||||
size INTEGER NOT NULL,
|
size INTEGER NOT NULL,
|
||||||
|
created_at TIMESTAMP DEFAULT NOW() NOT NULL,
|
||||||
FOREIGN KEY (post_id) REFERENCES posts (id)
|
FOREIGN KEY (post_id) REFERENCES posts (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user