mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-28 17:53:21 +08:00
feat: implement connection and database types
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user