add user module and jwt

This commit is contained in:
2025-06-23 21:21:47 +08:00
parent ddb436cb9a
commit 9d23757f45
4 changed files with 6 additions and 5 deletions
@@ -90,6 +90,7 @@ export class PostEntity extends BaseEntity {
@OneToMany(() => CommentEntity, (comment) => comment.post, { cascade: true })
comments: Relation<CommentEntity>[];
@Expose()
@ManyToOne(() => UserEntity, (user) => user.posts, {
nullable: false,
onDelete: 'CASCADE',