finish segments, update migration from filters to parameters

This commit is contained in:
Francis Cao committed 2025-06-20 10:27:57 -07:00
1 parent 8408bbd25c
commit 5ffafc71fc
10 files changed
+25 -16

No files matched your search

@@ -4,7 +4,7 @@ CREATE TABLE "segment" (
"website_id" UUID NOT NULL,
"type" VARCHAR(200) NOT NULL,
"name" VARCHAR(200) NOT NULL,
"filters" JSONB NOT NULL,
"parameters" JSONB NOT NULL,
"created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,
"updated_at" TIMESTAMPTZ(6),
+1 -1
View File
@@ -240,7 +240,7 @@ model Segment {
websiteId String @map("website_id") @db.Uuid
type String @db.VarChar(200)
name String @db.VarChar(200)
filters Json
parameters Json
createdAt DateTime? @default(now()) @map("created_at") @db.Timestamptz(6)
updatedAt DateTime? @updatedAt @map("updated_at") @db.Timestamptz(6)