feat(db): card type payment method

This commit is contained in:
avicenan
2026-03-27 15:57:20 +07:00
parent 77e1b2aeaf
commit 1c17a5e7da
2 changed files with 70 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;
}