Cambios api 3
This commit is contained in:
@@ -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,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;
|
||||
|
||||
Reference in New Issue
Block a user