feat: bootstrap from Fabric monorepo
This commit is contained in:
17
src/entities/dm-conversation.entity.ts
Normal file
17
src/entities/dm-conversation.entity.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Column, CreateDateColumn, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
||||
|
||||
@Entity('dm_conversations')
|
||||
export class DmConversation {
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
id!: string;
|
||||
|
||||
@Column({ type: 'varchar', length: 64, unique: true })
|
||||
pairKey!: string;
|
||||
|
||||
@Column({ type: 'varchar', length: 255, nullable: true })
|
||||
topic!: string | null;
|
||||
|
||||
@CreateDateColumn()
|
||||
@Index()
|
||||
createdAt!: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user