gosora/schema/pgsql/query_attachments.sql
2022-02-21 03:16:15 +00:00

11 lines
382 B
SQL

CREATE TABLE "attachments" (
`attachID` serial not null,
`sectionID` int DEFAULT 0 not null,
`sectionTable` varchar (200) DEFAULT 'forums' not null,
`originID` int not null,
`originTable` varchar (200) DEFAULT 'replies' not null,
`uploadedBy` int not null,
`path` varchar (200) not null,
`extra` varchar (200) not null,
primary key(`attachID`)
);