|
|
@@ -1,5 +1,4 @@
|
|
|
import { Entity, PrimaryGeneratedColumn, Column, ManyToMany, JoinTable, CreateDateColumn, UpdateDateColumn, OneToMany } from 'typeorm';
|
|
|
-import { PostEntity } from '../posts/post.entity';
|
|
|
import { Role, RoleSchema } from './role.entity';
|
|
|
import { z } from '@hono/zod-openapi';
|
|
|
import { DeleteStatus, DisabledStatus } from '@/share/types';
|
|
|
@@ -56,9 +55,6 @@ export class UserEntity {
|
|
|
@OneToMany(() => FollowEntity, follow => follow.following)
|
|
|
followers!: FollowEntity[];
|
|
|
|
|
|
- @OneToMany(() => PostEntity, post => post.user)
|
|
|
- posts!: PostEntity[];
|
|
|
-
|
|
|
@CreateDateColumn({ name: 'created_at', type: 'timestamp' })
|
|
|
createdAt!: Date;
|
|
|
|