diff --git a/drizzle/0000_giant_blink.sql b/drizzle/0000_giant_blink.sql deleted file mode 100644 index 5ce59f8..0000000 --- a/drizzle/0000_giant_blink.sql +++ /dev/null @@ -1,33 +0,0 @@ -CREATE TYPE "public"."roles" AS ENUM('admin', 'guest', 'pro');--> statement-breakpoint -CREATE TABLE "deck" ( - "id" integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY (sequence name "deck_id_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1), - "deckname" varchar NOT NULL, - "bildname" varchar, - "bildid" varchar, - "x1" real, - "x2" real, - "y1" real, - "y2" real, - "due" integer, - "ivl" real, - "factor" real, - "reps" integer, - "lapses" integer, - "isgraduated" integer, - "user" varchar NOT NULL, - "inserted" timestamp DEFAULT now(), - "updated" timestamp DEFAULT now() -); ---> statement-breakpoint -CREATE TABLE "users" ( - "id" integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY (sequence name "users_id_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1), - "name" varchar(256), - "email" varchar NOT NULL, - "role" "roles" DEFAULT 'guest', - "sign_in_provider" varchar(50), - "lastLogin" timestamp DEFAULT now(), - "numberOfLogins" integer DEFAULT 1 -); ---> statement-breakpoint -CREATE UNIQUE INDEX "deck_idx" ON "deck" USING btree ("id");--> statement-breakpoint -CREATE UNIQUE INDEX "users_idx" ON "users" USING btree ("id"); \ No newline at end of file diff --git a/drizzle/meta/0000_snapshot.json b/drizzle/meta/0000_snapshot.json deleted file mode 100644 index 87faa7e..0000000 --- a/drizzle/meta/0000_snapshot.json +++ /dev/null @@ -1,259 +0,0 @@ -{ - "id": "c323fb0d-9c45-4675-9d26-195222c7f89c", - "prevId": "00000000-0000-0000-0000-000000000000", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.deck": { - "name": "deck", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "always", - "name": "deck_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "deckname": { - "name": "deckname", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "bildname": { - "name": "bildname", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "bildid": { - "name": "bildid", - "type": "varchar", - "primaryKey": false, - "notNull": false - }, - "x1": { - "name": "x1", - "type": "real", - "primaryKey": false, - "notNull": false - }, - "x2": { - "name": "x2", - "type": "real", - "primaryKey": false, - "notNull": false - }, - "y1": { - "name": "y1", - "type": "real", - "primaryKey": false, - "notNull": false - }, - "y2": { - "name": "y2", - "type": "real", - "primaryKey": false, - "notNull": false - }, - "due": { - "name": "due", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "ivl": { - "name": "ivl", - "type": "real", - "primaryKey": false, - "notNull": false - }, - "factor": { - "name": "factor", - "type": "real", - "primaryKey": false, - "notNull": false - }, - "reps": { - "name": "reps", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lapses": { - "name": "lapses", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "isgraduated": { - "name": "isgraduated", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "user": { - "name": "user", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "inserted": { - "name": "inserted", - "type": "timestamp", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "updated": { - "name": "updated", - "type": "timestamp", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": { - "deck_idx": { - "name": "deck_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.users": { - "name": "users", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "always", - "name": "users_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "name": { - "name": "name", - "type": "varchar(256)", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "varchar", - "primaryKey": false, - "notNull": true - }, - "role": { - "name": "role", - "type": "roles", - "typeSchema": "public", - "primaryKey": false, - "notNull": false, - "default": "'guest'" - }, - "sign_in_provider": { - "name": "sign_in_provider", - "type": "varchar(50)", - "primaryKey": false, - "notNull": false - }, - "lastLogin": { - "name": "lastLogin", - "type": "timestamp", - "primaryKey": false, - "notNull": false, - "default": "now()" - }, - "numberOfLogins": { - "name": "numberOfLogins", - "type": "integer", - "primaryKey": false, - "notNull": false, - "default": 1 - } - }, - "indexes": { - "users_idx": { - "name": "users_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": { - "public.roles": { - "name": "roles", - "schema": "public", - "values": [ - "admin", - "guest", - "pro" - ] - } - }, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/drizzle/meta/_journal.json b/drizzle/meta/_journal.json deleted file mode 100644 index aed65a7..0000000 --- a/drizzle/meta/_journal.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "version": "7", - "dialect": "postgresql", - "entries": [ - { - "idx": 0, - "version": "7", - "when": 1739468475557, - "tag": "0000_giant_blink", - "breakpoints": true - } - ] -} \ No newline at end of file