si funciona no le muevas
This commit is contained in:
@@ -5,7 +5,6 @@ import {
|
||||
ManyToOne,
|
||||
OneToMany,
|
||||
JoinColumn,
|
||||
Index,
|
||||
} from 'typeorm';
|
||||
import { Edificio } from '../../edificio/entities/edificio.entity';
|
||||
import { Adscripcion } from '../../adscripcion/entities/adscripcion.entity';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Entity, PrimaryColumn, Column, OneToMany, Index } from 'typeorm';
|
||||
import { Entity, PrimaryColumn, Column, OneToMany } from 'typeorm';
|
||||
|
||||
@Entity({ name: 'adscripcion' })
|
||||
export class Adscripcion {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Entity, PrimaryColumn, Column, OneToMany, Index } from 'typeorm';
|
||||
import { Entity, PrimaryColumn, Column, OneToMany } from 'typeorm';
|
||||
|
||||
@Entity({ name: 'categoria' })
|
||||
export class Categoria {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Profesor } from '../../Profesor/entities/profesor.entity';
|
||||
|
||||
@Entity({ name: 'datos_academicos' })
|
||||
export class DatosAcademicos {
|
||||
@PrimaryGeneratedColumn({ name: 'PK_datos_academicos' })
|
||||
@PrimaryGeneratedColumn()
|
||||
id_datos: number;
|
||||
|
||||
@Column({ type: 'int', nullable: false })
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Entity, PrimaryColumn, Column, OneToMany, Index } from 'typeorm';
|
||||
import { Entity, PrimaryColumn, Column, OneToMany} from 'typeorm';
|
||||
|
||||
@Entity({ name: 'edificio' })
|
||||
export class Edificio {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { Profesor } from "../../Profesor/entities/profesor.entity";
|
||||
@Entity({ name: 'proyectos_academicos' })
|
||||
export class ProyectosAcademicos {
|
||||
|
||||
@PrimaryGeneratedColumn({ name: 'PK_proyectos_academicos' })
|
||||
@PrimaryGeneratedColumn()
|
||||
id_proyecto: number;
|
||||
|
||||
@Column({ type: 'int', nullable: false })
|
||||
|
||||
@@ -3,7 +3,7 @@ import { User } from '../../users/entities/user.entity';
|
||||
|
||||
@Entity({ name: 'tipo_usuario' })
|
||||
export class TipoUsuario {
|
||||
@PrimaryGeneratedColumn({ name: 'PK_tipo_usuario' })
|
||||
@PrimaryGeneratedColumn()
|
||||
id_tipo_usuario: number;
|
||||
|
||||
@Column({ type: 'varchar', length: 30, nullable: false })
|
||||
|
||||
Reference in New Issue
Block a user