import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";
import { addPrefix } from "../util/helper"
import CoreEntity from '../core/entity/CoreEntity';
import { JsonProperty } from "@tsed/common";

export enum ContentDefineType {
    About = "ABOUT",
    Faq = "FAQ",
    HowToUse = "HOW_TO_USE",
    Security = "SECURITY",
    TermCondition = "TERM_CONDITION"
}

@Entity(addPrefix("content_define"))
export class ContentDefine extends CoreEntity {
    constructor() {
        super()
    }

    // PROPERTIES

    @Column()
    @JsonProperty()
    title: string;

    @Column()
    @JsonProperty()
    image: string

    @Column({ type: "text" })
    @JsonProperty()
    body: string

    @Column()
    @JsonProperty()
    type: string;


    // RELATIONS


    // METHODS

    
}
