This commit is contained in:
2024-09-02 20:44:47 +02:00
parent c89638262f
commit 5d00a5a090
28 changed files with 160 additions and 2122 deletions

View File

@@ -11,8 +11,8 @@ CREATE TABLE IF NOT EXISTS "categories" (
"icon" text DEFAULT 'i-ph:circle-wavy-question-duotone',
"color" text DEFAULT 'gray',
"user_id" integer NOT NULL,
"created_at" timestamp (3) DEFAULT now(),
"updated_at" timestamp (3)
"created_at" timestamp(0) with time zone DEFAULT now(),
"updated_at" timestamp(0) with time zone DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "tabs" (
@@ -23,8 +23,8 @@ CREATE TABLE IF NOT EXISTS "tabs" (
"color" text DEFAULT 'gray',
"link" text DEFAULT '',
"category_id" integer NOT NULL,
"created_at" timestamp (3) DEFAULT now(),
"updated_at" timestamp (3)
"created_at" timestamp(0) with time zone DEFAULT now(),
"updated_at" timestamp(0) with time zone DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "users" (
@@ -42,8 +42,8 @@ CREATE TABLE IF NOT EXISTS "users" (
"language" text DEFAULT 'en-EN',
"location" text DEFAULT 'unknown',
"subscription" "subscription" DEFAULT 'free',
"created_at" timestamp (3) DEFAULT now(),
"updated_at" timestamp (3),
"created_at" timestamp(0) with time zone DEFAULT now(),
"updated_at" timestamp(0) with time zone DEFAULT now(),
CONSTRAINT "users_username_unique" UNIQUE("username"),
CONSTRAINT "users_email_unique" UNIQUE("email"),
CONSTRAINT "users_github_id_unique" UNIQUE("github_id"),

View File

@@ -1,5 +1,5 @@
{
"id": "37cfa6b0-d0e9-4999-9ead-06b419388528",
"id": "21470761-4c33-4588-be9b-4927bbcbfe2c",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "7",
"dialect": "postgresql",
@@ -50,16 +50,17 @@
},
"created_at": {
"name": "created_at",
"type": "timestamp (3)",
"type": "timestamp(0) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (3)",
"type": "timestamp(0) with time zone",
"primaryKey": false,
"notNull": false
"notNull": false,
"default": "now()"
}
},
"indexes": {},
@@ -134,16 +135,17 @@
},
"created_at": {
"name": "created_at",
"type": "timestamp (3)",
"type": "timestamp(0) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (3)",
"type": "timestamp(0) with time zone",
"primaryKey": false,
"notNull": false
"notNull": false,
"default": "now()"
}
},
"indexes": {},
@@ -262,16 +264,17 @@
},
"created_at": {
"name": "created_at",
"type": "timestamp (3)",
"type": "timestamp(0) with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"updated_at": {
"name": "updated_at",
"type": "timestamp (3)",
"type": "timestamp(0) with time zone",
"primaryKey": false,
"notNull": false
"notNull": false,
"default": "now()"
}
},
"indexes": {},

View File

@@ -5,8 +5,8 @@
{
"idx": 0,
"version": "7",
"when": 1725282814515,
"tag": "0000_cloudy_lifeguard",
"when": 1725302227098,
"tag": "0000_noisy_randall_flagg",
"breakpoints": true
}
]