15 lines
470 B
TypeScript
15 lines
470 B
TypeScript
import { Transaccion } from 'src/database/Monedero/entities/transaccion.entity';
|
|
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity('NombreTransaccion')
|
|
export class NombreTransaccion {
|
|
@PrimaryGeneratedColumn()
|
|
idNombreTransaccion: number;
|
|
|
|
@Column({ type: 'varchar', length: '50' })
|
|
nombreTransaccion: string;
|
|
|
|
@OneToMany(() => Transaccion, (transaccion) => transaccion.nombreTransaccion)
|
|
transacciones: Transaccion[];
|
|
}
|