| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2025-01-20 16:24:16 |
| 4 | * @LastEditTime: 2025-03-23 09:27:54 |
| 5 | * @LastEditors: nevin |
| 6 | * @Description: 回复评论的记录 replyCommentRecord |
| 7 | */ |
| 8 | import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; |
| 9 | import { TempModel } from './temp'; |
| 10 | import { PlatType } from '../../../commont/AccountEnum'; |
| 11 | |
| 12 | @Entity({ name: 'replyCommentRecord' }) |
| 13 | export class ReplyCommentRecordModel extends TempModel { |
| 14 | @PrimaryGeneratedColumn({ type: 'int', comment: 'id' }) |
| 15 | id!: number; |
| 16 | |
| 17 | @Column({ type: 'varchar', nullable: false, comment: '用户id' }) |
| 18 | userId!: string; |
| 19 | |
| 20 | @Column({ type: 'int', nullable: false, comment: '账号id,对应account表id' }) |
| 21 | accountId!: number; |
| 22 | |
| 23 | @Column({ |
| 24 | type: 'varchar', |
| 25 | enum: PlatType, |
| 26 | nullable: true, |
| 27 | comment: '平台类型', |
| 28 | }) |
| 29 | type!: PlatType; |
| 30 | |
| 31 | @Column({ type: 'varchar', nullable: false, comment: '评论Id' }) |
| 32 | commentId!: string; |
| 33 | |
| 34 | @Column({ type: 'varchar', nullable: false, comment: '评论内容' }) |
| 35 | commentContent!: string; |
| 36 | |
| 37 | @Column({ type: 'varchar', nullable: false, comment: '回复的内容' }) |
| 38 | replyContent!: string; |
| 39 | } |
| 40 |