This commit is contained in:
fro1991
2025-10-30 01:15:02 +07:00
parent 0097132aee
commit 98806c5ff7

View File

@ -1,5 +1,6 @@
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, ManyToOne, JoinTable } from "typeorm"; import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, ManyToOne, JoinTable } from "typeorm";
import { TrxCustomer } from "./trx_customers"; import { TrxCustomer } from "./trx_customers";
import { TrxCustomerUser } from "./trx_customer_users";
@Entity("trx_customer_user_signatures", { schema: "trx" }) @Entity("trx_customer_user_signatures", { schema: "trx" })
export class TrxCustomerUserSignature { export class TrxCustomerUserSignature {
@ -10,6 +11,10 @@ export class TrxCustomerUserSignature {
@JoinTable() @JoinTable()
customer: TrxCustomer; customer: TrxCustomer;
@ManyToOne(() => TrxCustomerUser, { onDelete: "RESTRICT" })
@JoinTable()
customer_user: TrxCustomerUser;
@Column({ @Column({
nullable: false, nullable: false,
type: "text", type: "text",