mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
* infra: make api-key primary key column a UUID * infra: move ManyToMany relations in album entity, make ownerId ManyToOne --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
18 lines
360 B
TypeScript
18 lines
360 B
TypeScript
import { APIKeyEntity } from '@app/infra/db/entities';
|
|
|
|
export class APIKeyResponseDto {
|
|
id!: string;
|
|
name!: string;
|
|
createdAt!: string;
|
|
updatedAt!: string;
|
|
}
|
|
|
|
export function mapKey(entity: APIKeyEntity): APIKeyResponseDto {
|
|
return {
|
|
id: entity.id,
|
|
name: entity.name,
|
|
createdAt: entity.createdAt,
|
|
updatedAt: entity.updatedAt,
|
|
};
|
|
}
|