import { Entity } from "../../../../src/decorator/entity/Entity"
import { Column } from "../../../../src/decorator/columns/Column"
import { PrimaryGeneratedColumn } from "../../../../src/decorator/columns/PrimaryGeneratedColumn"
import { Group } from "./Group"
import { Post } from "./Post"

@Entity()
export class User {
    constructor() {
        this.group = new Group()
        this.post = new Post()
    }

    @PrimaryGeneratedColumn()
    id: number

    @Column((type) => Group)
    group: Group

    @Column((type) => Post)
    post: Post

    @Column()
    userProperty: number
}
