feat(reliability): close messaging gateway P0 gaps

This commit is contained in:
wmq
2026-08-01 23:55:41 +08:00
parent 00b0ebb775
commit ad126606f9
15 changed files with 544 additions and 41 deletions
@@ -6,6 +6,7 @@ import {
UpdateDateColumn,
ManyToOne,
JoinColumn,
Index,
} from 'typeorm';
import { TgAccount } from './tg-account.entity';
@@ -18,6 +19,7 @@ export enum ChatType {
}
@Entity('tg_chats')
@Index('IDX_tg_chat_account_identity', ['accountId', 'tgChatId'], { unique: true })
export class TgChat {
@PrimaryGeneratedColumn('uuid')
id: string;