import { ObjectId } from "mongodb";

export default interface DBPlanet {
    _id: ObjectId;
    name: string;
    owner: ObjectId; // shouldn't be here
    fields: number;
    resources: Array<{ id: string, amount: number, lastUpdated: Date, perHourMiningRate: number }>;
    buildings: Array<{ id: string, level: number, activePercent?: number }>;
    ships: Array<{ id: string, amount: number }>;
    defenses: Array<{ id: string, amount: number }>;
}