Merge branch 'main' of https://git.shiblysolution.id/BRITL/entity
This commit is contained in:
@ -109,6 +109,20 @@ export class BrilinkTransaction {
|
|||||||
})
|
})
|
||||||
remarks: string;
|
remarks: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
length: 128,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
refund_reference: string;
|
||||||
|
|
||||||
|
@Column({ type: "varchar", length: 255, nullable: true })
|
||||||
|
refund_by: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
refund_at: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
default: false,
|
default: false,
|
||||||
|
|||||||
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;
|
||||||
|
}
|
||||||
@ -1,56 +1,56 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne, JoinTable } from 'typeorm';
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne, JoinTable } from "typeorm";
|
||||||
|
|
||||||
import { Status } from '../types/status';
|
import { Status } from "../types/status";
|
||||||
import { BrivaCompany } from './briva_companies';
|
import { BrivaCompany } from "./briva_companies";
|
||||||
|
|
||||||
@Entity('briva_accounts', { schema: 'brivas' })
|
@Entity("briva_accounts", { schema: "brivas" })
|
||||||
export class BrivaAccount {
|
export class BrivaAccount {
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
unique: true,
|
unique: true,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
account_number: string;
|
account_number: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
account_holder: string;
|
account_holder: string;
|
||||||
|
|
||||||
@ManyToOne(() => BrivaCompany, { onDelete: 'NO ACTION', nullable: true })
|
@ManyToOne(() => BrivaCompany, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinTable()
|
@JoinTable()
|
||||||
company: BrivaCompany
|
company: BrivaCompany;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true
|
nullable: true,
|
||||||
})
|
})
|
||||||
last_trans_at: Date;
|
last_trans_at: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256
|
length: 256,
|
||||||
})
|
})
|
||||||
last_trans_ref_number: string;
|
last_trans_ref_number: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: 'float8'
|
type: "float8",
|
||||||
})
|
})
|
||||||
last_trans_amount: number;
|
last_trans_amount: number;
|
||||||
|
|
||||||
|
|||||||
44
src/entity/briva_company_account_labels.ts
Normal file
44
src/entity/briva_company_account_labels.ts
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne, JoinTable } from "typeorm";
|
||||||
|
|
||||||
|
import { Status } from "../types/status";
|
||||||
|
import { BrivaCompany } from "./briva_companies";
|
||||||
|
|
||||||
|
@Entity("briva_company_account_labels", { schema: "brivas" })
|
||||||
|
export class BrivaCompanyAccountLabel {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => BrivaCompany, { onDelete: "NO ACTION", nullable: true })
|
||||||
|
@JoinTable()
|
||||||
|
company: BrivaCompany;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
label: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
prefix_code: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
length: 256,
|
||||||
|
})
|
||||||
|
value: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deleted_at: Date;
|
||||||
|
}
|
||||||
@ -61,6 +61,8 @@ import { BrivaCompanyUser } from "./entity/briva_company_users";
|
|||||||
import { BrivaCompanyUserRefreshToken } from "./entity/briva_company_user_refresh_token";
|
import { BrivaCompanyUserRefreshToken } from "./entity/briva_company_user_refresh_token";
|
||||||
import { BrivaAccount } from "./entity/briva_accounts";
|
import { BrivaAccount } from "./entity/briva_accounts";
|
||||||
import { BrivaTransaction } from "./entity/briva_transactions";
|
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 { AssetSupplier } from "./entity/asset_supplier";
|
||||||
import { AssetFixedClassification } from "./entity/asset_fixed_classification";
|
import { AssetFixedClassification } from "./entity/asset_fixed_classification";
|
||||||
@ -270,9 +272,11 @@ export {
|
|||||||
TellerMutation,
|
TellerMutation,
|
||||||
LogHikvision,
|
LogHikvision,
|
||||||
BrivaCompany,
|
BrivaCompany,
|
||||||
|
BrivaCompanyAccountLabel,
|
||||||
BrivaCompanyUser,
|
BrivaCompanyUser,
|
||||||
BrivaCompanyUserRefreshToken,
|
BrivaCompanyUserRefreshToken,
|
||||||
BrivaAccount,
|
BrivaAccount,
|
||||||
|
BrivaAccountLabel,
|
||||||
BrivaTransaction,
|
BrivaTransaction,
|
||||||
AssetSupplier,
|
AssetSupplier,
|
||||||
AssetFixedClassification,
|
AssetFixedClassification,
|
||||||
|
|||||||
Reference in New Issue
Block a user