import { Exclude } from "class-transformer";
import { DecimalTransformer } from "src/transformers/decimal.transformer";
import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity()
export class Condition {

    @PrimaryGeneratedColumn()
    id: number

    @Column()
    userId: number

    @Column()
    chatRoleId: number

    @Column({ type: 'decimal', precision: 5, scale: 2, transformer: new DecimalTransformer() })
    favorability: number

    @Column({ type: 'decimal', precision: 5, scale: 2, transformer: new DecimalTransformer() })
    score: number

}