import { Entity, Column } from 'typeorm';
import { BaseAppEntity } from '../../entities/base.entity';

@Entity('beneficiary')
export class Beneficiary extends BaseAppEntity {
    @Column({ type: 'varchar', length: 255 })
    beneficiaryName: string;

    @Column({ type: 'varchar', length: 20 })
    phoneNumber: string;

    @Column({ type: 'varchar', length: 500 })
    address: string;

    @Column({ type: 'decimal', nullable: true })
    latitude: number;

    @Column({ type: 'decimal', nullable: true })
    longitude: number;

    @Column({ type: 'int', nullable: true })
    userId: number;
}
