17 lines
401 B
TypeScript
17 lines
401 B
TypeScript
import { Column, CreateDateColumn, Entity, 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()
|
|
createdAt!: Date;
|
|
}
|