import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn } from 'typeorm'

@Entity()
export class MemberPlan {
    @PrimaryGeneratedColumn()
    id: number

    @Column()
    name: string

    @Column()
    price: number

    @Column()
    duration: number

    @CreateDateColumn()
    createdAt: Date

    @Column()
    tokenLimit: number

    @Column({ default: false })
    enabled: boolean

    @Column()
    commissionable: boolean
}
