Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🚧 Add primaryColor and showBranding fields to Space model (#2306)
Luke Vella9e6c909211d7
diff --git a/packages/database/prisma/migrations/20260403112726_add_space_primary_color_and_show_branding/migration.sql b/packages/database/prisma/migrations/20260403112726_add_space_primary_color_and_show_branding/migration.sqlnew file mode 100644index 000000000..089ffe832--- /dev/null+++ b/packages/database/prisma/migrations/20260403112726_add_space_primary_color_and_show_branding/migration.sql@@ -0,0 +1,3 @@+-- AlterTable+ALTER TABLE "spaces" ADD COLUMN "primary_color" TEXT,+ADD COLUMN "show_branding" BOOLEAN NOT NULL DEFAULT false;diff --git a/packages/database/prisma/models/space.prisma b/packages/database/prisma/models/space.prismaindex 4659c48ec..8aeda49c8 100644--- a/packages/database/prisma/models/space.prisma+++ b/packages/database/prisma/models/space.prisma@@ -1,11 +1,13 @@model Space {- id String @id @default(uuid())- name String- image String?- ownerId String @map("owner_id")- tier SpaceTier @default(hobby)- createdAt DateTime @default(now()) @map("created_at")- updatedAt DateTime @updatedAt @map("updated_at")+ id String @id @default(uuid())+ name String+ image String?+ ownerId String @map("owner_id")+ tier SpaceTier @default(hobby)+ primaryColor String? @map("primary_color")+ showBranding Boolean @default(false) @map("show_branding")+ createdAt DateTime @default(now()) @map("created_at")+ updatedAt DateTime @updatedAt @map("updated_at")owner User @relation("UserSpaces", fields: [ownerId], references: [id], onDelete: Cascade)polls Poll[]