Files
schedule-parser-next/src/schedule/entities/teacher.entity.ts
N08I40K 1174f61487 Refactor and reorganize codebase for better maintainability and clarity
- Rename DTOs to entities and move them to appropriate directories
- Remove deprecated controllers and services
- Update imports and dependencies
- Implement new class transformer decorators for better serialization
- Add VK authentication support
- Improve error handling and validation
- Update ESLint configuration and TypeScript settings
- Refactor schedule parsing logic
- Enhance user and authentication services
- Update Prisma schema and related entities
- Improve code organization and structure

This commit introduces significant changes to improve the overall structure and maintainability of the codebase, including better organization of DTOs, enhanced authentication features, and updated tooling configurations.
2025-01-25 03:36:58 +04:00

26 lines
610 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { IsArray, IsString, ValidateNested } from "class-validator";
import { Type } from "class-transformer";
import TeacherDay from "./teacher-day.entity";
import {
ClassTransformerCtor,
Ctor,
} from "../../utility/class-trasformer/class-transformer-ctor";
@ClassTransformerCtor()
export default class Teacher extends Ctor<Teacher> {
/**
* ФИО преподавателя
* @example "Хомченко Н.Е."
*/
@IsString()
name: string;
/**
* Расписание каждого дня
*/
@IsArray()
@ValidateNested({ each: true })
@Type(() => TeacherDay)
days: Array<TeacherDay>;
}