Files
Flowise/packages/server/src/database/entities/Assistant.ts
T
Henry Heng fe2ed26999 Feature/Custom Assistant Builder (#3631)
* add custom assistant builder

* add tools to custom assistant

* add save assistant button
2024-12-06 22:11:17 +00:00

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
}