| 1 | CREATE TABLE "device_code" ( |
| 2 | "id" text PRIMARY KEY |
| 3 | "device_code" text NOT NULL |
| 4 | "user_code" text NOT NULL |
| 5 | "user_id" text, |
| 6 | "expires_at" timestamp NOT NULL |
| 7 | "status" text NOT NULL |
| 8 | "last_polled_at" timestamp, |
| 9 | "polling_interval" integer, |
| 10 | "client_id" text, |
| 11 | "scope" text, |
| 12 | CONSTRAINT "device_code_device_code_unique" UNIQUE |
| 13 | CONSTRAINT "device_code_user_code_unique" UNIQUE |
| 14 | ); |