mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-26 23:00:25 +03:00
26 lines
548 B
TypeScript
26 lines
548 B
TypeScript
/* eslint-disable */
|
|
import { Entity, Column, CreateDateColumn, PrimaryGeneratedColumn, Index } from 'typeorm'
|
|
import { IChatMessage, MessageType } from '../../Interface'
|
|
|
|
@Entity()
|
|
export class ChatMessage implements IChatMessage {
|
|
@PrimaryGeneratedColumn('uuid')
|
|
id: string
|
|
|
|
@Column()
|
|
role: MessageType
|
|
|
|
@Index()
|
|
@Column()
|
|
chatflowid: string
|
|
|
|
@Column({ type: 'text' })
|
|
content: string
|
|
|
|
@Column({ nullable: true, type: 'text' })
|
|
sourceDocuments?: string
|
|
|
|
@CreateDateColumn()
|
|
createdDate: Date
|
|
}
|