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

@Entity('public_spawns')
export class PublicSpawnEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'varchar', length: 32 }) name: string;
    @Column({ type: 'float' }) x: number;
    @Column({ type: 'float' }) y: number;
    @Column({ type: 'float' }) z: number;
    @Column() h: number;
    @Column({ type: 'varchar', length: 64 }) image: string;
    @Column({ type: 'tinyint', default: 0 }) recommended: boolean;
}
