You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
872 B
TypeScript
37 lines
872 B
TypeScript
import { Entity, Column, PrimaryColumn, CreateDateColumn, UpdateDateColumn, ManyToOne, JoinColumn } from 'typeorm';
|
|
import { TransactionCode } from './transaction-code.entity';
|
|
|
|
@Entity('charge_codes')
|
|
export class ChargeCode {
|
|
@PrimaryColumn()
|
|
pch_chrgcode: string;
|
|
|
|
@Column()
|
|
pch_chrgdesc: string;
|
|
|
|
@Column({ nullable: true })
|
|
pch_chrgshort: string;
|
|
|
|
@Column({ nullable: true })
|
|
pel_elmtcode: string;
|
|
|
|
@Column({ nullable: true })
|
|
ptr_trancode: string;
|
|
|
|
@Column({ type: 'decimal', precision: 10, scale: 2, default: 0 })
|
|
pch_chrgprofit: number;
|
|
|
|
@Column({ nullable: true })
|
|
soc_charges: string;
|
|
|
|
@CreateDateColumn()
|
|
created_at: Date;
|
|
|
|
@UpdateDateColumn()
|
|
updated_at: Date;
|
|
|
|
@ManyToOne(() => TransactionCode, transactionCode => transactionCode.chargeCodes)
|
|
@JoinColumn({ name: 'ptr_trancode' })
|
|
transactionCode: TransactionCode;
|
|
}
|