mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 13:01:11 +03:00
fe2ed26999
* add custom assistant builder * add tools to custom assistant * add save assistant button
30 lines
688 B
TypeScript
30 lines
688 B
TypeScript
/* eslint-disable */
|
|
import { Entity, Column, CreateDateColumn, UpdateDateColumn, PrimaryGeneratedColumn } from 'typeorm'
|
|
import { AssistantType, IAssistant } from '../../Interface'
|
|
|
|
@Entity()
|
|
export class Assistant implements IAssistant {
|
|
@PrimaryGeneratedColumn('uuid')
|
|
id: string
|
|
|
|
@Column({ type: 'text' })
|
|
details: string
|
|
|
|
@Column({ type: 'uuid' })
|
|
credential: string
|
|
|
|
@Column({ nullable: true })
|
|
iconSrc?: string
|
|
|
|
@Column({ nullable: true, type: 'text' })
|
|
type?: AssistantType
|
|
|
|
@Column({ type: 'timestamp' })
|
|
@CreateDateColumn()
|
|
createdDate: Date
|
|
|
|
@Column({ type: 'timestamp' })
|
|
@UpdateDateColumn()
|
|
updatedDate: Date
|
|
}
|