import {Entity, PrimaryGeneratedColumn, Column, OneToMany, OneToOne, ManyToOne, ManyToMany} from "typeorm";
import { Client } from "./Client";

@Entity()
export class ClientType {

    @PrimaryGeneratedColumn()
    id!: number;

    @Column()
    name!: string;

    @Column({ type: 'text', nullable: true, default: null })
    description!: string;

    @Column({ default: true })
    enable!: boolean;

    @ManyToMany(type => Client, Client => Client.ClientType)
    Clients!: Client[];
}
