Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🗃️ Add white label addon column (#2090)

Luke Vellaee309c2dd138
diff --git a/packages/database/prisma/migrations/20251229171820_add_white_label_addon/migration.sql b/packages/database/prisma/migrations/20251229171820_add_white_label_addon/migration.sql
new file mode 100644
index 000000000..9881f384c
--- /dev/null
+++ b/packages/database/prisma/migrations/20251229171820_add_white_label_addon/migration.sql
@@ -0,0 +1,5 @@
+-- AlterTable
+ALTER TABLE "instance_licenses" ADD COLUMN "white_label_addon" BOOLEAN NOT NULL DEFAULT false;
+
+-- AlterTable
+ALTER TABLE "licenses" ADD COLUMN "white_label_addon" BOOLEAN NOT NULL DEFAULT false;
diff --git a/packages/database/prisma/models/licensing.prisma b/packages/database/prisma/models/licensing.prisma
index 5b8132178..ef781f54b 100644
--- a/packages/database/prisma/models/licensing.prisma
+++ b/packages/database/prisma/models/licensing.prisma
@@ -10,16 +10,17 @@ enum LicenseStatus {
}
model License {
- id String @id @default(cuid())
- licenseKey String @unique @map("license_key")
- version Int? @map("version")
- type LicenseType
- seats Int? @map("seats")
- issuedAt DateTime @default(now()) @map("issued_at")
- expiresAt DateTime? @map("expires_at")
- licenseeEmail String? @map("licensee_email")
- licenseeName String? @map("licensee_name")
- status LicenseStatus @default(ACTIVE) @map("status")
+ id String @id @default(cuid())
+ licenseKey String @unique @map("license_key")
+ version Int? @map("version")
+ type LicenseType
+ seats Int? @map("seats")
+ issuedAt DateTime @default(now()) @map("issued_at")
+ expiresAt DateTime? @map("expires_at")
+ licenseeEmail String? @map("licensee_email")
+ licenseeName String? @map("licensee_name")
+ whiteLabelAddon Boolean @default(false) @map("white_label_addon")
+ status LicenseStatus @default(ACTIVE) @map("status")
validations LicenseValidation[]
@@ -39,16 +40,17 @@ model LicenseValidation {
}
model InstanceLicense {
- id String @id @default(cuid())
- licenseKey String @unique @map("license_key")
- version Int? @map("version")
- type LicenseType
- seats Int? @map("seats")
- issuedAt DateTime @default(now()) @map("issued_at")
- expiresAt DateTime? @map("expires_at")
- licenseeEmail String? @map("licensee_email")
- licenseeName String? @map("licensee_name")
- status LicenseStatus @default(ACTIVE) @map("status")
+ id String @id @default(cuid())
+ licenseKey String @unique @map("license_key")
+ version Int? @map("version")
+ type LicenseType
+ seats Int? @map("seats")
+ issuedAt DateTime @default(now()) @map("issued_at")
+ expiresAt DateTime? @map("expires_at")
+ licenseeEmail String? @map("licensee_email")
+ licenseeName String? @map("licensee_name")
+ whiteLabelAddon Boolean @default(false) @map("white_label_addon")
+ status LicenseStatus @default(ACTIVE) @map("status")
@@map("instance_licenses")
}
diff --git a/packages/database/prisma/models/user.prisma b/packages/database/prisma/models/user.prisma
index 1c59a1b11..95d03ebb6 100644
--- a/packages/database/prisma/models/user.prisma
+++ b/packages/database/prisma/models/user.prisma
@@ -1,4 +1,3 @@
-
enum TimeFormat {
hours12
hours24
@@ -92,7 +91,7 @@ model ApiKey {
id String @id @default(cuid())
userId String @map("user_id")
name String
- prefix String @unique
+ prefix String @unique
hashedKey String @map("hashed_key") @db.Text
lastUsedAt DateTime? @map("last_used_at")
@@ -146,6 +145,6 @@ model Verification {
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @default(now()) @updatedAt @map("updated_at")
- @@map("verifications")
@@index([identifier])
+ @@map("verifications")
}