This commit is contained in:
wayanrivan
2026-03-27 17:11:55 +07:00
3 changed files with 72 additions and 0 deletions

35
src/entity/card_type.ts Normal file
View File

@ -0,0 +1,35 @@
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
DeleteDateColumn,
} from "typeorm";
@Entity("card_type")
export class CardType {
@PrimaryGeneratedColumn("uuid")
id!: string;
@Column({ type: "text", nullable: false })
name!: string;
@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;
}

View File

@ -0,0 +1,35 @@
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
DeleteDateColumn,
} from "typeorm";
@Entity("payment_method")
export class PaymentMethod {
@PrimaryGeneratedColumn("uuid")
id!: string;
@Column({ type: "text", nullable: false })
name!: string;
@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;
}

View File

@ -38,6 +38,8 @@ export * from "../entity/user_to_room"
export * from "../entity/refferal_hospital"
export * from "../entity/room_to_pharmacy"
export * from "../entity/faretype"
export * from "../entity/card_type"
export * from "../entity/payment_method"
export * from "../types/action";
export * from "../types/error";