<% /*
    $Revision$
    $Id$

    File:           model_mrk_discipline.inc

    Description:    Vanuit CodeCharge gegenereerd model voor mrk_discipline

    Context:

    Notes:
*/
%>
<%

function model_mrk_discipline()
{
  this.table = "ins_tab_discipline";
  this.primary = "ins_discipline_key";
  this.records_name = "ins_tab_disciplines";
  this.record_name = "ins_tab_discipline";
  this.autfunction = "WEB_MRKMGT";
  this.record_title = L("mrk_discipline");
  this.records_title = L("mrk_discipline_m");


    this.fields = {
        "id": {
            "dbs": "ins_discipline_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "ins_s_ins_discipline_key"
        },
        "module": {
            "dbs": "ins_discipline_module",
            "label": L("mrk_discipline_module"),
            "typ": "varchar",
            "hidden_fld": true,
            "defaultvalue": "MRK"
        },
        "name": {
            "dbs": "ins_discipline_omschrijving",
            "label": L("mrk_discipline_omschrijving"),
            "typ": "varchar",
            "translate": true,
            "required": true
        }
    };


    this.REST_GET    = generic_REST_GET(this,
        {
            "GET": {
                "wheres": [
                    "ins_tab_discipline.ins_discipline_module = 'MRK'"
                ]
            }
        }
    );
    this.REST_POST   = generic_REST_POST(this);
    this.REST_PUT    = generic_REST_PUT(this);
    this.REST_DELETE = generic_REST_DELETE(this);
}
%>