2026-08-09 21:50:53 -06:00
|
|
|
import { InscripcionArea } from '../inscripcion-area/entity/inscripcion_area.entity';
|
2026-08-08 23:00:46 -06:00
|
|
|
import {
|
|
|
|
|
Column,
|
|
|
|
|
Entity,
|
|
|
|
|
OneToMany,
|
|
|
|
|
PrimaryColumn,
|
|
|
|
|
PrimaryGeneratedColumn,
|
|
|
|
|
} from 'typeorm';
|
2023-02-28 16:33:04 -06:00
|
|
|
|
|
|
|
|
@Entity()
|
|
|
|
|
export class Area {
|
2026-08-08 23:00:46 -06:00
|
|
|
@PrimaryGeneratedColumn()
|
|
|
|
|
id_area: number;
|
2023-02-28 16:33:04 -06:00
|
|
|
|
2026-08-08 23:00:46 -06:00
|
|
|
@Column({ length: 20, nullable: false })
|
|
|
|
|
area: string;
|
2023-02-28 16:33:04 -06:00
|
|
|
|
2026-08-08 23:00:46 -06:00
|
|
|
@OneToMany(() => InscripcionArea, (inscripcionArea) => inscripcionArea.area)
|
|
|
|
|
inscripcionArea: InscripcionArea[];
|
|
|
|
|
}
|