import { Entity, PrimaryGeneratedColumn, Column } from "../../../../src/index"

@Entity()
export class User {
    @PrimaryGeneratedColumn()
    public id: number

    @Column()
    public name: string

    constructor(user?: { name: string }) {
        if (user) {
            this.name = user.name
        }
    }
}
