@wearesage/schema
Version:
A flexible schema definition and validation system for TypeScript with multi-database support
24 lines (18 loc) • 547 B
text/typescript
import { Entity, Property, Id, ManyToOne, Labels } from "../../core/decorators";
import { RealConversation } from "./RealConversation";
export class RealMessage {
id!: string;
content!: string;
role!: 'user' | 'assistant' | 'system';
thinking?: string; // AI thinking process
createdAt!: Date;
conversation!: RealConversation;
}