mirror of
https://github.com/immich-app/immich.git
synced 2025-01-25 05:02:46 +01:00
21 lines
569 B
TypeScript
21 lines
569 B
TypeScript
|
import { SetMetadata } from '@nestjs/common';
|
||
|
|
||
|
export const GENERATE_SQL_KEY = 'generate-sql-key';
|
||
|
|
||
|
export interface GenerateSqlQueries {
|
||
|
name?: string;
|
||
|
params?: any[];
|
||
|
}
|
||
|
|
||
|
/** Decorator to enable versioning/tracking of generated Sql */
|
||
|
export const GenerateSql = (...options: GenerateSqlQueries[]) => SetMetadata(GENERATE_SQL_KEY, options);
|
||
|
|
||
|
export const DummyValue = {
|
||
|
UUID: '00000000-0000-4000-a000-000000000000',
|
||
|
PAGINATION: { take: 10, skip: 0 },
|
||
|
EMAIL: 'user@immich.app',
|
||
|
STRING: 'abcdefghi',
|
||
|
BUFFER: Buffer.from('abcdefghi'),
|
||
|
DATE: new Date(),
|
||
|
};
|