update
This commit is contained in:
@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user