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

9 lines
279 B
SQL

CREATE TABLE "polls" (
`pollID` serial not null,
`parentID` int DEFAULT 0 not null,
`parentTable` varchar (100) DEFAULT 'topics' not null,
`type` int DEFAULT 0 not null,
`options` json not null,
`votes` int DEFAULT 0 not null,
primary key(`pollID`)
);