added new table costo

This commit is contained in:
2026-02-23 14:37:55 -06:00
parent 8c69da9999
commit 59d3ec1490
9 changed files with 108 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
@Entity('costo')
export class Costo {
@PrimaryGeneratedColumn()
id_costo: number;
@Column('decimal', { precision: 10, scale: 2 })
costo: number;
@Column({ type: 'int' })
id_servicio: number;
@Column({
type: 'timestamp',
default: () => 'CURRENT_TIMESTAMP',
})
fecha_registro: Date;
}