remove db fields and change idprofresor by no autoincremental id

This commit is contained in:
TheManus88
2024-07-25 08:55:18 -06:00
parent f8df1e2504
commit a23ba6da18
3 changed files with 3 additions and 8 deletions
+3 -3
View File
@@ -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;