import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, } from 'typeorm'; @Entity('tg_groups') export class TgGroup { @PrimaryGeneratedColumn('uuid') id: string; @Column() accountId: string; @Column({ type: 'bigint' }) tgChatId: number; @Column({ length: 500 }) title: string; @Column({ type: 'int', default: 0 }) memberCount: number; @Column({ type: 'text', nullable: true }) description: string; @Column({ length: 255, nullable: true }) inviteLink: string; @Column({ type: 'simple-json', nullable: true }) photo: Record; @Column({ type: 'simple-json', nullable: true }) permissions: Record; @Column({ type: 'simple-json', nullable: true }) raw: Record; @CreateDateColumn() createdAt: Date; @UpdateDateColumn() updatedAt: Date; }