<% /*
    $Revision$
    $Id$

    File:           model_bes_staffeltabel.inc

    Description:

    Context:

    Notes:
*/
%>
<%

function model_bes_staffel()
{
    this.table = "bes_staffel";
    this.primary = "bes_staffel_key";
    this.records_name = "bes_staffels";
    this.record_name = "bes_staffel";
    this.autfunction = "WEB_BESMGT";
    this.record_title = L("bes_staffel");
    this.records_title = L("bes_staffel_m");


    this.fields = {
        "id": {
            "dbs": "bes_staffel_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "bes_s_bes_staffel_key",
            "defaultvalue": null
        },
        "bes_staffeltabel_key": {
            "dbs": "bes_staffeltabel_key",
            "label": L("bes_staffeltabel"),
            "typ": "key",
            "foreign": {
                "tbl": "bes_staffeltabel",
                "key": "bes_staffeltabel_key",
                "desc": "bes_staffeltabel_naam"
            }
        },
        "bes_staffel_grenswaarde": {
            "dbs": "bes_staffel_grenswaarde",
            "label": L("bes_staffel_grens"),
            "typ": "number"
        },
        "bes_staffel_korting": {
            "dbs": "bes_staffel_korting",
            "label": L("bes_staffel_korting"),
            "typ": "number"
        }
    };


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