mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-28 01:32:09 +08:00
18 lines
300 B
TypeScript
18 lines
300 B
TypeScript
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;
|
|
isGenerated: boolean;
|
|
}
|