mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor: use factory and kysely types for partner repository (#16812)
This commit is contained in:
parent
83ed03920e
commit
16fd19994b
11 changed files with 207 additions and 112 deletions
|
|
@ -92,6 +92,17 @@ export type AuthSession = {
|
|||
id: string;
|
||||
};
|
||||
|
||||
export type Partner = {
|
||||
sharedById: string;
|
||||
sharedBy: User;
|
||||
sharedWithId: string;
|
||||
sharedWith: User;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
updateId: string;
|
||||
inTimeline: boolean;
|
||||
};
|
||||
|
||||
export const columns = {
|
||||
ackEpoch: (columnName: 'createdAt' | 'updatedAt' | 'deletedAt') =>
|
||||
sql.raw<string>(`extract(epoch from "${columnName}")::text`).as('ackEpoch'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue