export interface User
{
    id: number
    name: string
    email: string
    email_verified_at: string
    created_at: string
}

export enum ItemCondition
{
    PARTS_ONLY = "parts only",
    POOR = "poor",
    FAIR = "fair",
    GOOD = "good",
    EXCELLENT = "excellent"
}

export interface Listing
{
    id: number
    title: string
    description: string
    condition: ItemCondition
    price: number
    location: string
    updated_at: string
    created_at: string
    poster?: Partial<User>
}
