forked from CIDWA/cedetec_api_nest
16 lines
386 B
TypeScript
16 lines
386 B
TypeScript
import { Miembro } from "src/miembro/entity/miembro.entity";
|
|
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm";
|
|
|
|
@Entity()
|
|
export class Carrera {
|
|
@PrimaryGeneratedColumn()
|
|
id_carrera: number
|
|
|
|
@Column({ length:40, nullable: false})
|
|
carrera: string
|
|
|
|
@OneToMany(
|
|
() => Miembro, (miembro) => miembro.carrera
|
|
)
|
|
miembro: Miembro
|
|
} |