Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 1x 1x 1x 1x 1x | import { IsString, ValidateNested } from 'class-validator';
import { MigrationConfig } from './orm/migration.config';
import { SeederConfig } from './orm/seeder.config';
import { Type } from 'class-transformer';
import { SchemaGeneratorConfig } from './orm/schema-generator.config';
export class OrmConfig {
@IsString({ each: true })
entities!: string[];
@IsString({ each: true })
entitiesTs!: string[];
@ValidateNested()
@Type(() => MigrationConfig)
migrations!: MigrationConfig;
@ValidateNested()
@Type(() => SeederConfig)
seeder!: SeederConfig;
@ValidateNested()
@Type(() => SchemaGeneratorConfig)
schemaGenerator!: SchemaGeneratorConfig;
}
|