Cambios api 3

This commit is contained in:
TioSam77
2024-07-27 17:42:00 -06:00
4 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ import { User } from 'src/users/entities/user.entity';
@Entity({ name: 'profesor' })
export class Profesor {
@PrimaryColumn({name:'id_profesor', type: 'int', nullable: false })
@PrimaryColumn({ type: 'int', nullable: false })
id_profesor: number;
@Column({ type: 'int', nullable: false })
@@ -1,7 +1,6 @@
import { Entity, PrimaryColumn, Column, OneToMany, Index } from 'typeorm';
@Entity({ name: 'adscripcion' })
@Index('PK_adscripcion', ['id_adscripcion'], { unique: true })
export class Adscripcion {
@PrimaryColumn({ type: 'int', nullable: false })
id_adscripcion: number;
@@ -1,7 +1,6 @@
import { Entity, PrimaryColumn, Column, OneToMany, Index } from 'typeorm';
@Entity({ name: 'categoria' })
@Index('PK_categoria', ['id_categoria'], { unique: true })
export class Categoria {
@PrimaryColumn({ type: 'int', nullable: false })
id_categoria: number;
-1
View File
@@ -1,7 +1,6 @@
import { Entity, PrimaryColumn, Column, OneToMany, Index } from 'typeorm';
@Entity({ name: 'edificio' })
@Index('PK_edificio', ['id_edificio'], { unique: true })
export class Edificio {
@PrimaryColumn({ type: 'int', nullable: false })
id_edificio: number;