File

src/chatbot/entities/chat.entity.ts

Index

Properties

Constructor

constructor(partial: Partial<Chat>)
Parameters :
Name Type Optional
partial Partial<Chat> No

Properties

createdAt
Type : Date
id
Type : number
status
Type : string
summary
Type : string
title
Type : string
updatedAt
Type : Date
userId
Type : string
export class Chat {
  id: number;
  title: string;
  userId: string;
  status: string;
  summary: string;
  createdAt: Date;
  updatedAt: Date;

  constructor(partial: Partial<Chat>) {
    Object.assign(this, partial);
  }
}

export enum ChatStatus {
  ACTIVE = "ACTIVE",
  DELETED = "DELETED",
}

results matching ""

    No results matching ""