import { Timestamp } from './Timestamp';
import { User } from './User';

export interface PostNonAuth {
  id: number;
  user: {
    username: string;
    image: string;
  };
  content: string;
  postedAt: Timestamp;
}

export interface PostListNonAuth {
  pages: number;
  data: PostNonAuth[];
}

export interface PostAuth {
  id: number;
  user: User;
  content: string;
  postedAt: Timestamp;
}

export interface PostListAuth {
  pages: number;
  data: PostNonAuth[];
}

export interface PostUpdate {
  content?: string;
}
