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

@Entity()
@Unique(["name"], { deferrable: "INITIALLY DEFERRED" })
export class Company {
    @PrimaryColumn()
    id: number

    @Column()
    name?: string
}
