Updated db
This commit is contained in:
@@ -36,7 +36,8 @@ CREATE TABLE "urls" (
|
||||
"forward_query_params" boolean DEFAULT true,
|
||||
"crawable" boolean DEFAULT false,
|
||||
"created_at" timestamp with time zone DEFAULT now(),
|
||||
"updated_at" timestamp with time zone DEFAULT now()
|
||||
"updated_at" timestamp with time zone DEFAULT now(),
|
||||
CONSTRAINT "urls_slug_unique" UNIQUE("slug")
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "user" (
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "8abb5597-a405-4ece-9855-cd951cfac397",
|
||||
"id": "79b6d1a7-2d90-461c-bd57-51a42fc17b23",
|
||||
"prevId": "00000000-0000-0000-0000-000000000000",
|
||||
"version": "7",
|
||||
"dialect": "postgresql",
|
||||
@@ -310,7 +310,15 @@
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"uniqueConstraints": {
|
||||
"urls_slug_unique": {
|
||||
"name": "urls_slug_unique",
|
||||
"nullsNotDistinct": false,
|
||||
"columns": [
|
||||
"slug"
|
||||
]
|
||||
}
|
||||
},
|
||||
"policies": {},
|
||||
"checkConstraints": {},
|
||||
"isRLSEnabled": false
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
{
|
||||
"idx": 0,
|
||||
"version": "7",
|
||||
"when": 1750933043047,
|
||||
"tag": "0000_classy_plazm",
|
||||
"when": 1750934261568,
|
||||
"tag": "0000_cultured_colonel_america",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
|
||||
@@ -9,7 +9,7 @@ const updatedAt = timestamp("updated_at", { withTimezone: true }).defaultNow().$
|
||||
export const urls = pgTable("urls", {
|
||||
id: uuid("id").primaryKey().notNull(),
|
||||
url: varchar("url").notNull(),
|
||||
slug: varchar("slug").notNull(),
|
||||
slug: varchar("slug").unique().notNull(),
|
||||
title: varchar("title").notNull(),
|
||||
maxVisits: integer("max_visits"),
|
||||
expDate: timestamp("exp_date", { withTimezone: true }),
|
||||
|
||||
Reference in New Issue
Block a user