<% /*
    $Revision$
    $Id$

    File:           model_cad_legenda.inc

    Description:    Vanuit CodeCharge gegenereerd model voor cad_legenda

    Context:

    Notes:
*/
%>
<!-- #include file="../api2/model_cad_legendawaarde.inc" -->
<%

function model_cad_legenda()
{
    this.table = "cad_legenda";
    this.primary = "cad_legenda_key";
    this.records_name = "cad_legendas";
    this.record_name = "cad_legenda";
    this.autfunction = "WEB_CADMGT";
    this.record_title = L("cad_legenda");
    this.records_title = L("cad_legenda_m");


    this.fields = {
        "id": {
            "dbs": "cad_legenda_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "cad_s_cad_legenda_key"
        },
        "name": {
            "dbs": "cad_legenda_omschrijving",
            "label": L("cad_legenda_omschrijving"),
            "typ": "varchar",
            "translate": true,
            "filter": "like"
        },
        "exact": {
            "dbs": "cad_legenda_discreet",
            "label": L("cad_legenda_discreet"),
            "typ": "check",
            "defaultvalue": "1"
        }
    };

    this.includes = {
        "cad_values": {
            "model": new model_cad_legendawaarde(),
            "joinfield": "legendas"
        }
    };


    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);
}
%>