import {User} from "@/models/user";

export interface Space {
    id: number;
    name: string;
    owner: User;
    participants: User[];
    createdBy: User;
    createdAt: Date;
}

export interface SpaceShortInfo {
    id: number
    name: string
    isOwner: boolean
    participantsCount: number
    createdAt: Date
}

export interface CreateSpaceDTO {
    name: string;
    createBasicCategories: boolean;
}
export interface UpdateSpaceDTO {
    name: string;
}

