🗃️ Add Enterprise to Plan enum

This commit is contained in:
Baptiste Arnaud 2025-04-25 09:50:15 +02:00
parent ee8a41ceae
commit 98441264ec
No known key found for this signature in database
7 changed files with 23 additions and 5 deletions

View File

@ -9,6 +9,7 @@ export const planColorSchemes: Record<Plan, ThemeTypings["colorSchemes"]> = {
[Plan.FREE]: "gray",
[Plan.CUSTOM]: "yellow",
[Plan.UNLIMITED]: "yellow",
[Plan.ENTERPRISE]: "yellow",
};
export const PlanTag = ({
@ -83,5 +84,12 @@ export const PlanTag = ({
</Tag>
);
}
case Plan.ENTERPRISE: {
return (
<Tag colorScheme={planColorSchemes[Plan.ENTERPRISE]} {...props}>
Enterprise
</Tag>
);
}
}
};

View File

@ -2322,7 +2322,8 @@
"LIFETIME",
"OFFERED",
"CUSTOM",
"UNLIMITED"
"UNLIMITED",
"ENTERPRISE"
]
}
},
@ -2442,7 +2443,8 @@
"LIFETIME",
"OFFERED",
"CUSTOM",
"UNLIMITED"
"UNLIMITED",
"ENTERPRISE"
]
},
"stripeId": {
@ -2631,7 +2633,8 @@
"LIFETIME",
"OFFERED",
"CUSTOM",
"UNLIMITED"
"UNLIMITED",
"ENTERPRISE"
]
},
"stripeId": {
@ -10381,7 +10384,8 @@
"LIFETIME",
"OFFERED",
"CUSTOM",
"UNLIMITED"
"UNLIMITED",
"ENTERPRISE"
]
},
"stripeId": {

View File

@ -10,6 +10,7 @@ export const chatsLimits = {
[Plan.FREE]: 200,
[Plan.STARTER]: 2000,
[Plan.PRO]: 10000,
[Plan.ENTERPRISE]: 100000,
} as const;
export const seatsLimits = {
@ -18,6 +19,7 @@ export const seatsLimits = {
[Plan.STARTER]: 2,
[Plan.PRO]: 5,
[Plan.LIFETIME]: 8,
[Plan.ENTERPRISE]: 10,
} as const;
export const starterChatTiers = [

View File

@ -448,6 +448,7 @@ enum Plan {
OFFERED
CUSTOM
UNLIMITED
ENTERPRISE
}
enum CollaborationType {

View File

@ -10,7 +10,7 @@
"db:generate:mysql": "DATABASE_URL=mysql:// dotenv -e ./.env -e ../../.env -- tsx scripts/db-generate.ts",
"db:push": "dotenv -e ./.env -e ../../.env -- tsx scripts/db-push.ts",
"migrate:deploy": "dotenv -e ./.env -e ../../.env -- tsx scripts/migrate-deploy.ts",
"migrate:dev": "dotenv -e ./.env -e ../../.env -- prisma migrate dev --create-only --schema postgresql/schema.prisma",
"create-migration-file": "dotenv -e ./.env -e ../../.env -- prisma migrate dev --create-only --schema postgresql/schema.prisma",
"db:migrate": "bun migrate:deploy"
},
"dependencies": {

View File

@ -0,0 +1,2 @@
-- AlterEnum
ALTER TYPE "Plan" ADD VALUE 'ENTERPRISE';

View File

@ -418,6 +418,7 @@ enum Plan {
OFFERED
CUSTOM
UNLIMITED
ENTERPRISE
}
enum CollaborationType {