import { Entity } from "../../../../src/decorator/entity/Entity"
import { Column } from "../../../../src/decorator/columns/Column"
import { PrimaryColumn } from "../../../../src/decorator/columns/PrimaryColumn"

import { Gender } from "./GenderEnum"

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

    @Column()
    name: string

    @Column({
        type: "enum",
        enum: Gender,
        enumName: "genderEnum",
    })
    gender: Gender

    @Column()
    specie: string
}
