Merge branch 'main' of https://git.shiblysolution.id/SAUDE-TL/entity
This commit is contained in:
@ -36,19 +36,25 @@ export class Cashier {
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
total_amount: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
amount_paid: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
balance_due: number;
|
||||
|
||||
|
||||
@ -63,40 +63,52 @@ export class CashierItem {
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
guarantor_liability: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
subtotal: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
price: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
qty: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
amount_paid: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
balance_due: number;
|
||||
|
||||
|
||||
@Column({ nullable: true })
|
||||
status: BillingItemStatus;
|
||||
|
||||
|
||||
@ -58,13 +58,17 @@ export class PaymentReceived {
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
total_amount: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
payment: number;
|
||||
|
||||
@ -88,13 +92,17 @@ export class PaymentReceived {
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
change: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: 'bigint'
|
||||
type: 'decimal',
|
||||
precision: 10,
|
||||
scale: 2
|
||||
})
|
||||
exemption: number;
|
||||
|
||||
|
||||
45
src/entity/foster_care_history.ts
Normal file
45
src/entity/foster_care_history.ts
Normal file
@ -0,0 +1,45 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
||||
|
||||
import { Status } from "../types/status";
|
||||
|
||||
@Entity("foster_care_history")
|
||||
export class FosterCareHistory {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 256,
|
||||
})
|
||||
diagnosis: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 128,
|
||||
})
|
||||
code: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@UpdateDateColumn({ nullable: true })
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
updated_by: string;
|
||||
|
||||
@DeleteDateColumn({ nullable: true })
|
||||
deleted_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
}
|
||||
@ -49,6 +49,7 @@ export * from "../entity/city";
|
||||
export * from "../entity/subdistrict";
|
||||
export * from "../entity/ward";
|
||||
export * from "../entity/responsible_party_consent";
|
||||
export * from "../entity/foster_care_history";
|
||||
|
||||
export * from "../types/action";
|
||||
export * from "../types/error";
|
||||
|
||||
Reference in New Issue
Block a user