| 1 | CREATE TABLE "urls" ( |
| 2 | "id" serial PRIMARY KEY NOT NULL, |
| 3 | "original_url" varchar(2000) NOT NULL, |
| 4 | "short_code" varchar(10) NOT NULL, |
| 5 | "created_at" timestamp DEFAULT now() NOT NULL, |
| 6 | "updated_at" timestamp DEFAULT now() NOT NULL, |
| 7 | "clicks" integer DEFAULT 0 NOT NULL, |
| 8 | CONSTRAINT "urls_short_code_unique" UNIQUE("short_code") |
| 9 | ); |