update
This commit is contained in:
45
src/entity/trx_customer_user_signatures.ts
Normal file
45
src/entity/trx_customer_user_signatures.ts
Normal 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;
|
||||
}
|
||||
@ -4,6 +4,7 @@ export * from "../entity/trx_verifications";
|
||||
export * from "../entity/trx_customers";
|
||||
export * from "../entity/trx_customer_accounts";
|
||||
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_activities";
|
||||
export * from "../entity/trx_customer_costs";
|
||||
|
||||
Reference in New Issue
Block a user