import { Workspace as PrismaWorkspace } from "@prisma/client";

export interface Workspace extends PrismaWorkspace {
  name: string;
  imageUrl: string;
  inviteCode: string;
  userId: string;
}

export interface WorkspaceWithProjects extends Workspace {
  projects?: {
    id: string;
    name: string;
    imageUrl: string;
  }[];
  members?: {
    id: string;
    userId: string;
    role: string;
    user?: {
      id: string;
      name: string | null;
      email: string;
      image: string | null;
    };
  }[];
}
