gosora/schema/pgsql/query_polls.sql

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`)
);