Add finance funding sources entity and update exports

This commit is contained in:
Sony Surahmn
2025-12-31 16:20:15 +07:00
parent 43a9d72548
commit 56d84a0941
3 changed files with 59 additions and 1 deletions

View File

@ -0,0 +1,56 @@
import { Entity, PrimaryGeneratedColumn, Column, OneToMany, PrimaryColumn, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
import { Status } from "../../types/status";
@Entity("finance_funding_sources", { schema: "finances" })
export class FinanceFundingSource {
@PrimaryGeneratedColumn("uuid")
id: string;
@Column({
nullable: false,
unique: false,
length: 64,
})
code: string;
@Column({
nullable: false,
unique: false,
length: 64,
})
name: string;
@Column({
nullable: true,
unique: false,
length: 64,
})
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;
}

View File

@ -1,2 +1,3 @@
export * from "./schema/public"; export * from "./schema/public";
export * from "./schema/hrms"; export * from "./schema/hrms";
export * from "./schema/finances";

1
src/schema/finances.ts Normal file
View File

@ -0,0 +1 @@
export * from "../entity/finance/finance_funding_sources";