Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Use uuid

Edward Cui9e4676491ee7
diff --git a/server/src/db/postgres/schema.ts b/server/src/db/postgres/schema.ts
index c996ba557..46c8a81a4 100644
--- a/server/src/db/postgres/schema.ts
+++ b/server/src/db/postgres/schema.ts
@@ -13,6 +13,7 @@ import {
timestamp,
unique,
pgEnum,
+ uuid,
} from "drizzle-orm/pg-core";
// User table
@@ -610,7 +611,7 @@ export const importStatusEnum = pgEnum("import_status_enum", ["pending", "proces
export const importStatus = pgTable(
"import_status",
{
- importId: text("import_id").primaryKey().notNull(),
+ importId: uuid("import_id").primaryKey().notNull(),
siteId: integer("site_id").notNull(),
organizationId: text("organization_id").notNull(),
platform: importPlatformEnum("platform").notNull(),