06112602ec
Version the NestJS TDLib gateway with Docker deployment, migrations, automated tests and platform integration documentation while excluding all account sessions, credentials, runtime databases and backups.
47 lines
881 B
TypeScript
47 lines
881 B
TypeScript
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<string, unknown>;
|
|
|
|
@Column({ type: 'simple-json', nullable: true })
|
|
permissions: Record<string, unknown>;
|
|
|
|
@Column({ type: 'simple-json', nullable: true })
|
|
raw: Record<string, unknown>;
|
|
|
|
@CreateDateColumn()
|
|
createdAt: Date;
|
|
|
|
@UpdateDateColumn()
|
|
updatedAt: Date;
|
|
}
|