18 lines
286 B
TypeScript
18 lines
286 B
TypeScript
export type Post = {
|
|
post_id: number;
|
|
author_id: number;
|
|
first_name: string;
|
|
last_name: string;
|
|
title: string;
|
|
body: string;
|
|
created_at: string;
|
|
};
|
|
|
|
export type Author = {
|
|
author_id: number;
|
|
first_name: string;
|
|
last_name: string;
|
|
bio: string;
|
|
image?: string;
|
|
};
|