finish segments, update migration from filters to parameters

This commit is contained in:
Francis Cao 2025-06-20 10:27:57 -07:00
parent 8408bbd25c
commit 5ffafc71fc
10 changed files with 25 additions and 16 deletions

View file

@ -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),

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)