import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('tax_collections')
export class TaxCollectionEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column() tax_category_id: number;
    @Column() entity_type: number;
    @Column() entity_id: number;
    @Column() amount: number;
    @Column({ type: 'datetime', default: () => 'CURRENT_TIMESTAMP' }) date: Date;

    @Column({ type: 'varchar', length: 128 }) extra: string;
}
