mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
21 lines
455 B
TypeScript
21 lines
455 B
TypeScript
import { Column, Entity, Index } from 'typeorm';
|
|
|
|
import { PrimaryGeneratedBigIntColumn } from '../utils/PrimaryGeneratedBigIntColumn';
|
|
import { TrackedEntity } from '../utils/TrackedEntity.entity';
|
|
|
|
@Entity()
|
|
export class TelegramSubscriptionsEntity extends TrackedEntity {
|
|
|
|
@PrimaryGeneratedBigIntColumn()
|
|
id: number;
|
|
|
|
@Index()
|
|
@Column({ length: 62, type: 'varchar' })
|
|
address: string;
|
|
|
|
@Column()
|
|
telegramChatId: number;
|
|
|
|
|
|
}
|