Umstellung auf Date
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
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),
|
||||
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,
|
||||
@@ -13,10 +13,10 @@ CREATE TABLE "Deck" (
|
||||
"factor" real,
|
||||
"reps" integer,
|
||||
"lapses" integer,
|
||||
"isGraduated" integer,
|
||||
"isgraduated" integer,
|
||||
"user" varchar NOT NULL,
|
||||
"inserted" varchar DEFAULT (CURRENT_TIMESTAMP),
|
||||
"updated" varchar DEFAULT (CURRENT_TIMESTAMP)
|
||||
"inserted" timestamp DEFAULT now(),
|
||||
"updated" timestamp DEFAULT now()
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "users" (
|
||||
@@ -24,8 +24,10 @@ CREATE TABLE "users" (
|
||||
"name" varchar(256),
|
||||
"email" varchar NOT NULL,
|
||||
"role" "roles" DEFAULT 'guest',
|
||||
"sign_in_provider" varchar(50)
|
||||
"sign_in_provider" varchar(50),
|
||||
"inserted" timestamp DEFAULT now(),
|
||||
"updated" timestamp DEFAULT now()
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "deck_idx" ON "Deck" USING btree ("id");--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "deck_idx" ON "deck" USING btree ("id");--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "users_idx" ON "users" USING btree ("id");
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"id": "ad8762e3-d7ad-4605-b2fc-b10a0de0f08a",
|
||||
"id": "5c983d57-b2f3-4fb4-b99e-066574c486e3",
|
||||
"prevId": "00000000-0000-0000-0000-000000000000",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
"tables": {
|
||||
"public.Deck": {
|
||||
"name": "Deck",
|
||||
"public.deck": {
|
||||
"name": "deck",
|
||||
"schema": "",
|
||||
"columns": {
|
||||
"id": {
|
||||
@@ -15,7 +15,7 @@
|
||||
"notNull": true,
|
||||
"identity": {
|
||||
"type": "always",
|
||||
"name": "Deck_id_seq",
|
||||
"name": "deck_id_seq",
|
||||
"schema": "public",
|
||||
"increment": "1",
|
||||
"startWith": "1",
|
||||
@@ -97,8 +97,8 @@
|
||||
"primaryKey": false,
|
||||
"notNull": false
|
||||
},
|
||||
"isGraduated": {
|
||||
"name": "isGraduated",
|
||||
"isgraduated": {
|
||||
"name": "isgraduated",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false
|
||||
@@ -111,17 +111,17 @@
|
||||
},
|
||||
"inserted": {
|
||||
"name": "inserted",
|
||||
"type": "varchar",
|
||||
"type": "timestamp",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
"default": "now()"
|
||||
},
|
||||
"updated": {
|
||||
"name": "updated",
|
||||
"type": "varchar",
|
||||
"type": "timestamp",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
"default": "now()"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
@@ -194,6 +194,20 @@
|
||||
"type": "varchar(50)",
|
||||
"primaryKey": false,
|
||||
"notNull": false
|
||||
},
|
||||
"inserted": {
|
||||
"name": "inserted",
|
||||
"type": "timestamp",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"default": "now()"
|
||||
},
|
||||
"updated": {
|
||||
"name": "updated",
|
||||
"type": "timestamp",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"default": "now()"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
{
|
||||
"idx": 0,
|
||||
"version": "7",
|
||||
"when": 1738881267759,
|
||||
"tag": "0000_dapper_the_watchers",
|
||||
"when": 1738963581892,
|
||||
"tag": "0000_known_stepford_cuckoos",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user