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

@Entity('property_server_drinks')
export class PropertyServerDrinkEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column() property_id: number;
    @Column() item_type_id: number;
    @Column({ type: 'tinyint', width: 1 }) enabled: boolean;
    @Column({ type: 'json', default: '[]' }) variations: {
        name: string;
        price: number;
        enabled: boolean;
    }[];
}
