implemented identity, updated session, added 'workings' list

added paginated querying, added 'common'
This commit is contained in:
lnn0q 2025-05-17 00:29:55 +03:00
parent 027deba422
commit 6ada519e06
36 changed files with 1422 additions and 279 deletions

View file

@ -0,0 +1,12 @@
import { Identity as IdentitySchema } from '@generated/types';
import { User } from '@prisma/client';
import { toUserSchema } from './userMapper';
export async function toIdentitySchema(model: User): Promise<IdentitySchema> {
return {
id: model.id,
email: model.email,
isDarkTheme: true,
user: await toUserSchema(model)
};
}