<% /*
    $Revision$
    $Id$

    File:           model_mld_stdmeldingfaq.inc

    Description:    mld_stdmeldingfaq model.
    Parameters:
    Context:        Kennisbank

    Notes:
*/

%>
<%
function model_mld_stdmeldingfaq()
{
    this.table = "mld_stdmeldingfaq";
    this.primary = "mld_stdmeldingfaq_key";
    this.records_name = " issuetypefaqs";
    this.record_name = " issuetypefaq";
    this.record_title = L("mld_stdmeldingfaq");
    this.records_title = L("mld_stdmeldingfaq_m");
    this.module = "FAQ";
    this.autfunction = "WEB_FAQMGT";

    this.fields = {
        "id": {
            "dbs": "mld_stdmeldingfaq_key",
            "label":  L("lcl_key"),
            "typ": "key",
            "required": true,
            "seq": "mld_s_mld_stdmeldingfaq_key"
        },
        "faq": {
            "dbs": "fac_faq_key",
            "label": L("lcl_faq_kennisbank_nr"),
            "typ": "key",
            "foreign": "fac_faq"
        },
        "issuediscipline": {
            "dbs": "ins_discipline_key",
            "label": L("mld_ins_discipline_key"),
            "typ": "key",
            "foreign": "MLD_DISCIPLINE"
        },
        "issuetype": {
            "dbs": "mld_stdmelding_key",
            "label": L("mld_stdmelding_key"),
            "typ": "key",
            "foreign": "MLD_STDMELDING"
        }
    };

    this.list = {
        "columns": [
            "id",
            "faq",
            "issuediscipline",
            "issuetype"
        ]
    };


    this.REST_GET    = generic_REST_GET(this);
    this.REST_PUT    = generic_REST_PUT(this);
    this.REST_POST   = generic_REST_POST(this);
    this.REST_DELETE = generic_REST_DELETE(this);
}
%>