import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn } from 'typeorm'

@Entity()
export class Org {
    @PrimaryGeneratedColumn()
    id: number

    @CreateDateColumn()
    createdAt: Date

    @Column()
    name: string

    @Column({ nullable: true })
    assistantName: string

    @Column()
    description: string

    @Column({ nullable: true })
    logo: string

    @Column({ type: 'text' })
    systemPrompt: string

    @Column({ type: 'text' })
    contextTemplate: string

    @Column({ unique: true, length: 120 })
    subdomain: string
    
    @Column({ nullable: true })
    customDomain: string

    @Column({ nullable: true })
    questionTemplate: string
}
