<% /*
    $Revision$
    $Id$

    File:           model_res_opstelling.inc

    Description:    Vanuit CodeCharge gegenereerd model voor res_opstelling

    Context:

    Notes:
*/
%>
<%
function model_res_opstelling()
{
    this.table = "res_opstelling";
    this.primary = "res_opstelling_key";
    this.records_name = "res_opstellings";
    this.record_name = "res_opstelling";


    this.fields = {
        "id": {
            "dbs": "res_opstelling_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "res_s_res_opstelling_key"
        },
        "name": {
            "dbs": "res_opstelling_omschrijving",
            "label": L("res_opstelling_omschrijving"),
            "typ": "varchar",
            "translate": true,
            "required": true
        },
        "sequence": {
            "dbs": "res_opstelling_volgnr",
            "label": L("res_opstelling_volgnr"),
            "typ": "number"
        }
    };

    this.list = {
        "columns": [
            "id",
            "name",
            "sequence"
        ]
    };
    this.search = {
        "autosearch": true
    };

    this.soft_delete = "res_opstelling_verwijder";
    this.autfunction = "WEB_RESMGT";
    this.record_title = L("res_opstelling");
    this.records_title = L("res_opstelling_m");


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