2024-07-27 00:11:39 -06:00
|
|
|
import { Entity, PrimaryColumn, Column, OneToMany, Index } from 'typeorm';
|
2024-06-16 16:54:06 -06:00
|
|
|
|
2024-07-27 00:11:39 -06:00
|
|
|
@Entity({ name: 'edificio' })
|
2024-06-17 00:59:28 -06:00
|
|
|
export class Edificio {
|
2024-06-18 13:27:10 -06:00
|
|
|
@PrimaryColumn({ type: 'int', nullable: false })
|
2024-06-17 00:59:28 -06:00
|
|
|
id_edificio: number;
|
2024-06-16 16:54:06 -06:00
|
|
|
|
2024-06-17 00:59:28 -06:00
|
|
|
@Column({ type: 'varchar', length: 256, nullable: false })
|
|
|
|
|
edificio: string;
|
|
|
|
|
|
2024-06-18 15:21:34 -06:00
|
|
|
@OneToMany(() => Edificio, edificio => edificio.profesores)
|
|
|
|
|
profesores: Edificio[];
|
2024-06-17 00:59:28 -06:00
|
|
|
}
|