<% /*
    $Revision$
    $Id$

    File:           model_fin_btwtabel.inc

    Description:    Vanuit CodeCharge gegenereerd model voor fin_btwtabel

    Context:

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

function model_fin_btwtabel()
{
    this.table = "fin_btwtabel";
    this.primary = "fin_btwtabel_key";
    this.records_name = "fin_btwtabels";
    this.record_name = "fin_btwtabel";
    this.soft_delete = "fin_btwtabel_verwijder";
    this.autfunction = "WEB_FINMSU";
    this.record_title = L("fin_btwtabel");
    this.records_title = L("fin_btwtabel_m")


    this.fields = {
        "id": {
            "dbs": "fin_btwtabel_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "fin_s_fin_btwtabel_key"
        },
        "name": {
            "dbs": "fin_btwtabel_omschrijving",
            "label": L("fin_btwtabel_omschrijving"),
            "typ": "varchar",
            "translate": true,
            "filter": "like"
        },
        "default": {
            "dbs": "fin_btwtabel_default",
            "label": L("fin_btwtabel_default"),
            "typ": "check",
            "defaultvalue": "1"
        }
    };


    this.includes = {
        "vat_values": {
            "model": new model_fin_btwtabelwaarde(),
            "joinfield": "table"
        }
    };

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