update
This commit is contained in:
32
src/entity/briva_account_labels.ts
Normal file
32
src/entity/briva_account_labels.ts
Normal file
@ -0,0 +1,32 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne, JoinTable } from "typeorm";
|
||||
|
||||
import { Status } from "../types/status";
|
||||
import { BrivaCompany } from "./briva_companies";
|
||||
import { BrivaCompanyAccountLabel } from "./briva_company_account_labels";
|
||||
import { BrivaAccount } from "./briva_accounts";
|
||||
|
||||
@Entity("briva_account_labels", { schema: "brivas" })
|
||||
export class BrivaAccountLabel {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => BrivaAccount, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinTable()
|
||||
account: BrivaAccount;
|
||||
|
||||
@ManyToOne(() => BrivaCompanyAccountLabel, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinTable()
|
||||
company_account_label: BrivaCompanyAccountLabel;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
}
|
||||
@ -62,6 +62,7 @@ import { BrivaCompanyUserRefreshToken } from "./entity/briva_company_user_refres
|
||||
import { BrivaAccount } from "./entity/briva_accounts";
|
||||
import { BrivaTransaction } from "./entity/briva_transactions";
|
||||
import { BrivaCompanyAccountLabel } from "./entity/briva_company_account_labels";
|
||||
import { BrivaAccountLabel } from "./entity/briva_account_labels";
|
||||
|
||||
import { AssetSupplier } from "./entity/asset_supplier";
|
||||
import { AssetFixedClassification } from "./entity/asset_fixed_classification";
|
||||
@ -271,11 +272,12 @@ export {
|
||||
TellerMutation,
|
||||
LogHikvision,
|
||||
BrivaCompany,
|
||||
BrivaCompanyAccountLabel,
|
||||
BrivaCompanyUser,
|
||||
BrivaCompanyUserRefreshToken,
|
||||
BrivaAccount,
|
||||
BrivaAccountLabel,
|
||||
BrivaTransaction,
|
||||
BrivaCompanyAccountLabel,
|
||||
AssetSupplier,
|
||||
AssetFixedClassification,
|
||||
AssetFixedType,
|
||||
|
||||
Reference in New Issue
Block a user