This commit is contained in:
fro1991
2025-10-30 01:13:11 +07:00
parent 74e99d60a9
commit 0097132aee
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,45 @@
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, ManyToOne, JoinTable } from "typeorm";
import { TrxCustomer } from "./trx_customers";
@Entity("trx_customer_user_signatures", { schema: "trx" })
export class TrxCustomerUserSignature {
@PrimaryGeneratedColumn("uuid")
id: string;
@ManyToOne(() => TrxCustomer, { onDelete: "RESTRICT" })
@JoinTable()
customer: TrxCustomer;
@Column({
nullable: false,
type: "text",
})
signature_image: string;
@Column({
nullable: false,
length: 256,
})
signature_hash: string;
@Column()
@CreateDateColumn()
created_at: Date;
@Column({ nullable: true, length: 256 })
created_by: string;
@Column({ nullable: true })
@UpdateDateColumn()
updated_at: Date;
@Column({ nullable: true, length: 256 })
updated_by: string;
@Column({ nullable: true })
@DeleteDateColumn()
deleted_at: Date;
@Column({ nullable: true, length: 256 })
deleted_by: string;
}

View File

@ -4,6 +4,7 @@ export * from "../entity/trx_verifications";
export * from "../entity/trx_customers"; export * from "../entity/trx_customers";
export * from "../entity/trx_customer_accounts"; export * from "../entity/trx_customer_accounts";
export * from "../entity/trx_customer_users"; export * from "../entity/trx_customer_users";
export * from "../entity/trx_customer_user_signatures";
export * from "../entity/trx_customer_user_refresh_tokens"; export * from "../entity/trx_customer_user_refresh_tokens";
export * from "../entity/trx_customer_user_activities"; export * from "../entity/trx_customer_user_activities";
export * from "../entity/trx_customer_costs"; export * from "../entity/trx_customer_costs";