mirror of
https://github.com/immich-app/immich.git
synced 2025-06-02 21:24:28 -04:00
refactor: more database enums (#17465)
This commit is contained in:
parent
15c6506aee
commit
49be6d7fd8
19
server/src/db.d.ts
vendored
19
server/src/db.d.ts
vendored
@ -4,7 +4,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import type { ColumnType } from 'kysely';
|
import type { ColumnType } from 'kysely';
|
||||||
import { AssetFileType, AssetStatus, AssetType, MemoryType, Permission, SourceType, SyncEntityType } from 'src/enum';
|
import {
|
||||||
|
AlbumUserRole,
|
||||||
|
AssetFileType,
|
||||||
|
AssetOrder,
|
||||||
|
AssetStatus,
|
||||||
|
AssetType,
|
||||||
|
MemoryType,
|
||||||
|
Permission,
|
||||||
|
SharedLinkType,
|
||||||
|
SourceType,
|
||||||
|
SyncEntityType,
|
||||||
|
} from 'src/enum';
|
||||||
import { UserTable } from 'src/schema/tables/user.table';
|
import { UserTable } from 'src/schema/tables/user.table';
|
||||||
import { OnThisDayData } from 'src/types';
|
import { OnThisDayData } from 'src/types';
|
||||||
|
|
||||||
@ -54,7 +65,7 @@ export interface Albums {
|
|||||||
description: Generated<string>;
|
description: Generated<string>;
|
||||||
id: Generated<string>;
|
id: Generated<string>;
|
||||||
isActivityEnabled: Generated<boolean>;
|
isActivityEnabled: Generated<boolean>;
|
||||||
order: Generated<string>;
|
order: Generated<AssetOrder>;
|
||||||
ownerId: string;
|
ownerId: string;
|
||||||
updatedAt: Generated<Timestamp>;
|
updatedAt: Generated<Timestamp>;
|
||||||
updateId: Generated<string>;
|
updateId: Generated<string>;
|
||||||
@ -68,7 +79,7 @@ export interface AlbumsAssetsAssets {
|
|||||||
|
|
||||||
export interface AlbumsSharedUsersUsers {
|
export interface AlbumsSharedUsersUsers {
|
||||||
albumsId: string;
|
albumsId: string;
|
||||||
role: Generated<string>;
|
role: Generated<AlbumUserRole>;
|
||||||
usersId: string;
|
usersId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -346,7 +357,7 @@ export interface SharedLinks {
|
|||||||
key: Buffer;
|
key: Buffer;
|
||||||
password: string | null;
|
password: string | null;
|
||||||
showExif: Generated<boolean>;
|
showExif: Generated<boolean>;
|
||||||
type: string;
|
type: SharedLinkType;
|
||||||
userId: string;
|
userId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user