diff --git a/src/entity/finance/finance_agencia.ts b/src/entity/finance/finance_agencia.ts new file mode 100644 index 0000000..3d4da37 --- /dev/null +++ b/src/entity/finance/finance_agencia.ts @@ -0,0 +1,57 @@ +import { Entity, PrimaryGeneratedColumn, Column, OneToMany, PrimaryColumn, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm"; +import { Status } from "../../types/status"; + +@Entity("finance_agencia", { schema: "finances" }) +export class FinanceAgencia { + @PrimaryGeneratedColumn("uuid") + id: string; + + @Column({ + nullable: false, + unique: false, + length: 64, + }) + code: string; + + @Column({ + nullable: false, + unique: false, + length: 255, + }) + name: string; + + @Column({ + nullable: true, + unique: false, + length: 255, + }) + description: string; + + @Column({ + nullable: false, + length: 64, + }) + status: Status; + + @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; +} + diff --git a/src/schema/finances.ts b/src/schema/finances.ts index add5a81..4c74e02 100644 --- a/src/schema/finances.ts +++ b/src/schema/finances.ts @@ -1 +1,2 @@ export * from "../entity/finance/finance_funding_sources"; +export * from "../entity/finance/finance_agencia";