<% /*
    $Revision$
    $Id$

    File:           model_res_activiteit_discipline.inc

    Description:    Vanuit CodeCharge gegenereerd model voor res_activiteit_discipline

    Context:

    Notes:
*/
%>
<%
function model_res_activiteit_discipline()
{
    this.records_name = "bookingactivitydisciplines";
    this.record_name = "bookingactivitydiscipline";
    this.table = "res_activiteitdiscipline";
    this.primary = "res_activiteitdiscipline_key";
    this.autfunction = "WEB_RESMGT";
    this.record_title = L("res_activiteitdiscipline");
    this.records_title = L("res_activiteitdiscipline_m");
    this.edit = { modal: true };
    this.defaultIcon = "fa-diagram-nested";

    this.fields = {
        "id": {
            "dbs": "res_activiteitdiscipline_key",
            "label": L("lcl_key"),
            "typ": "key",
            "hidden_fld": true,
            "required": true,
            "seq": "res_s_res_activiteitdisc_key"
        },
        "bookingdiscipline": {
            "dbs": "res_discipline_key",
            "label": L("res_discipline_key"),
            "typ": "key",
            "insertonly": true,
            "foreign": {
                "tbl": "res_discipline",
                "key": "ins_discipline_key",
                "desc": "ins_discipline_omschrijving",
                "where": "ins_discipline_verwijder is null"
            },
            "uniquewith": "bookingactivity"
        },
        "bookingactivity": {
            "dbs": "res_activiteit_key",
            "label": L("res_activiteit_key"),
            "typ": "key",
            "foreign": {
                "tbl": "res_activiteit",
                "key": "res_activiteit_key",
                "desc": "res_activiteit_omschrijving",
                "where": "res_activiteit_verwijder is null"
            },
            "uniquewith": "bookingdiscipline",
            "LOVinit": ""
        }
    };


    this.edit = {
        modal: true
    };
    this.list = {
        "columns": [
  //          "id",
            "bookingdiscipline",
            "bookingactivity"
        ]
    };
    this.search = {
        "autosearch": true,
        "filters": [
            "bookingdiscipline",
            "bookingactivity"
        ]
    };


    this.REST_GET    = generic_REST_GET(this);
    this.REST_POST   = generic_REST_POST(this);
    // this.REST_PUT    = generic_REST_PUT(this); // Update is wat overkill
    this.REST_DELETE = generic_REST_DELETE(this, {});
}
%>