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

@Entity('server_statistics')
export class ServerStatisticEntity {
    @PrimaryGeneratedColumn() id: number;
    @Column({ type: 'datetime', nullable: false, default: () => 'CURRENT_TIMESTAMP' }) time: Date;
    @Column() player_count: number;
    @Column() logged_in_count: number;
    @Column({ type: 'int', nullable: true }) average_ping: number | null;
}
