feat: integrate user usage into apis (#5075)

This commit is contained in:
DarkSky
2023-12-14 09:50:36 +00:00
parent 63de73a815
commit ad23ead5e4
36 changed files with 984 additions and 282 deletions

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,
},
},
},
},
},
},
});