From 4eb8c1336ea9da58f51f1efdd93ce968b8f939fa Mon Sep 17 00:00:00 2001 From: xXpuma99Xx <51341582+xXpuma99Xx@users.noreply.github.com> Date: Wed, 30 Mar 2022 21:12:15 -0600 Subject: [PATCH] listo --- src/motivo/motivo.entity.ts | 2 +- src/tipo-carrito/tipo-carrito.entity.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/motivo/motivo.entity.ts b/src/motivo/motivo.entity.ts index a0bd226..5c34d1f 100644 --- a/src/motivo/motivo.entity.ts +++ b/src/motivo/motivo.entity.ts @@ -12,7 +12,7 @@ import { Status } from '../status/status.entity'; @Entity() export class Motivo { @PrimaryGeneratedColumn() - id: number; + id_motivo: number; @Column() motivo: string; diff --git a/src/tipo-carrito/tipo-carrito.entity.ts b/src/tipo-carrito/tipo-carrito.entity.ts index 6fb7432..309665a 100644 --- a/src/tipo-carrito/tipo-carrito.entity.ts +++ b/src/tipo-carrito/tipo-carrito.entity.ts @@ -9,6 +9,9 @@ export class TipoCarrito { @Column() tipo_carrito: string; + @Column() + letra: string; + @OneToMany(() => Carrito, (carrito) => carrito.tipoCarrito) carritos: Carrito[]; }