Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

439 B
Raw Blame
import type { Convenience } from 'telegraf/types'
import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
} from 'typeorm'

@Entity()
export class Message {
  @PrimaryGeneratedColumn('uuid')
  id: string

  @Column('varchar')
  chatId: string

  @Column('text')
  text: string

  @Column('json', { nullable: true, default: null })
  extra: Convenience.ExtraReplyMessage | null

  @CreateDateColumn()
  createdAt: Date
}