remove db fields and change idprofresor by no autoincremental id
This commit is contained in:
@@ -4,8 +4,8 @@ import {
|
||||
Column,
|
||||
ManyToOne,
|
||||
OneToMany,
|
||||
JoinColumn,
|
||||
} from 'typeorm';
|
||||
JoinColumn, PrimaryColumn
|
||||
} from "typeorm";
|
||||
import { Edificio } from '../../edificio/entities/edificio.entity';
|
||||
import { Adscripcion } from '../../adscripcion/entities/adscripcion.entity';
|
||||
import { Categoria } from '../../categoria/entities/categoria.entity';
|
||||
@@ -16,7 +16,7 @@ import { User } from 'src/users/entities/user.entity';
|
||||
|
||||
@Entity()
|
||||
export class Profesor {
|
||||
@PrimaryGeneratedColumn()
|
||||
@PrimaryColumn()
|
||||
id_profesor: number;
|
||||
|
||||
@Column({ type: 'int',nullable: false })
|
||||
|
||||
@@ -10,8 +10,6 @@ export class LineasInvestigacion {
|
||||
@Column({ type: 'int', nullable: false })
|
||||
id_profesor: number;
|
||||
|
||||
@Column({ type: 'varchar', length: 300, nullable: true })
|
||||
lineas_inv: string;
|
||||
|
||||
@Column({ type: 'varchar', length: 350, nullable: true })
|
||||
lineas_inv_html: string;
|
||||
|
||||
@@ -10,9 +10,6 @@ export class ProyectosAcademicos {
|
||||
@Column({ type: 'int', nullable: false })
|
||||
id_profesor: number;
|
||||
|
||||
@Column({ type: 'varchar', length: 500, nullable: true })
|
||||
proyecto: string;
|
||||
|
||||
@Column({ type: 'varchar', length: 700, nullable: true })
|
||||
proyecto_html: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user