fixed table issues
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Entity, PrimaryColumn, Column, OneToMany } from 'typeorm';
|
||||
import { Entity, PrimaryColumn, Column, OneToMany, Index } from 'typeorm';
|
||||
|
||||
@Entity()
|
||||
@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