import { Entity } from "../../../../../../../src/decorator/entity/Entity"
import { PrimaryColumn } from "../../../../../../../src/decorator/columns/PrimaryColumn"
import { ManyToOne } from "../../../../../../../src/decorator/relations/ManyToOne"
import { Post } from "./Post"

@Entity()
export class User {
    @PrimaryColumn()
    id: number

    @PrimaryColumn()
    name: string

    @ManyToOne(() => Post, (post) => post.counters.subcounters.watchedUsers)
    post: Post
}
