feat: integrate user usage into apis (#5075)

This commit is contained in:
DarkSky committed 2023-12-14 09:50:37 +00:00
1 parent 63de73a815
commit ad23ead5e4
36 files changed
+984 -282

No files matched your search

+14
View File
@@ -107,6 +107,20 @@ export async function createRandomUser(): Promise<{
...user,
emailVerified: new Date(),
password: await hash(user.password),
features: {
create: {
reason: 'created by test case',
activated: true,
feature: {
connect: {
feature_version: {
feature: 'free_plan_v1',
version: 1,
},
},
},
},
},
},
});