feat(cloud): show pro features (#169)

* feat(cloud): show pro workspace features

* feat: allow multiple subscriptions

* chore: translations
This commit is contained in:
Henry
2025-09-08 23:22:12 +01:00
committed by GitHub
parent 99459415d5
commit 6c04a10b1f
19 changed files with 556 additions and 331 deletions

View File

@@ -75,3 +75,17 @@ export const getByReferenceId = async (db: dbClient, referenceId: string) => {
where: eq(subscription.referenceId, referenceId),
});
};
export const create = async (
db: dbClient,
data: {
plan: string;
referenceId: string;
userId: string;
stripeCustomerId: string;
status: string;
},
) => {
const [result] = await db.insert(subscription).values(data).returning();
return result;
};