import { Timestamp } from './Timestamp';

export interface User {
  id: number;
  username: string;
  status: number;
  email: string;
  image: string;
  isAdmin: boolean;
  memberSince: Timestamp;
  postCount: number;
}

export interface UserUpdate {
  username?: string;
  email?: string;
  password?: string;
}

export interface UserCreate {
  username: string;
  email: string;
  password: string;
}

export interface Login {
  email: string;
  password: string;
}

export interface UserImageUpdate {
  image?: File;
  predefined?: string;
}
