feat: implement connection and database types

This commit is contained in:
steven
2023-03-22 16:32:12 +08:00
parent 90a6fec65c
commit 5dc3c05a2a
11 changed files with 58 additions and 17 deletions

View File

@ -1,9 +1,16 @@
import { Id, Timestamp } from "./";
export enum CreatorRole {
System = "system",
User = "user",
Assistant = "assistant",
}
export interface Message {
id: Id;
chatId: string;
creatorId: Id;
creatorRole: CreatorRole;
createdAt: Timestamp;
content: string;
}