mirror of
https://github.com/immich-app/immich.git
synced 2025-11-25 05:50:43 +09:00
refactor: use factory and kysely types for partner repository (#16812)
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user