mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat: sync implementation for the user entity (#16234)
* ci: print out typeorm generation changes * feat: sync implementation for the user entity wip --------- Co-authored-by: Jason Rasmussen <jason@rasm.me>
This commit is contained in:
parent
02cd8da871
commit
ac36effb45
38 changed files with 1774 additions and 10 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { sql } from 'kysely';
|
||||
import { Permission } from 'src/enum';
|
||||
|
||||
export type AuthUser = {
|
||||
|
|
@ -29,6 +30,8 @@ export type AuthSession = {
|
|||
};
|
||||
|
||||
export const columns = {
|
||||
ackEpoch: (columnName: 'createdAt' | 'updatedAt' | 'deletedAt') =>
|
||||
sql.raw<string>(`extract(epoch from "${columnName}")::text`).as('ackEpoch'),
|
||||
authUser: [
|
||||
'users.id',
|
||||
'users.name',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue