15 lines
434 B
PL/PgSQL
15 lines
434 B
PL/PgSQL
BEGIN;
|
|
|
|
-- CREATE TABLE "issues" ---------------------------------------
|
|
CREATE TABLE "public"."issues" (
|
|
"id" Serial NOT NULL,
|
|
"telegram_id" BigInt NOT NULL,
|
|
"message" Text NOT NULL,
|
|
"date" Timestamp Without Time Zone DEFAULT now() NOT NULL,
|
|
"reply" Boolean DEFAULT 'false' NOT NULL,
|
|
CONSTRAINT "unique_issues_id" UNIQUE( "id" ) );
|
|
;
|
|
-- -------------------------------------------------------------
|
|
|
|
COMMIT;
|