<% /*
    $Revision$
    $Id$

    File:           model_alg_srtterreinsector.inc

    Description:    Vanuit CodeCharge gegenereerd model voor alg_srtterreinsector

    Context:

    Notes:
*/
%>
<%
function model_alg_srtterreinsector()
{
    this.table = "alg_srtterreinsector";
    this.primary = "alg_srtterreinsector_key";
    this.records_name = "alg_srtterreinsectors";
    this.record_name = "alg_srtterreinsector";
    this.soft_delete = "alg_srtterreinsector_verwijder";
    this.autfunction = "WEB_ALGMSU";
    this.record_title = L("alg_srtterreinsector");
    this.records_title = L("alg_srtterreinsector_m");


    this.fields = {
        "id": {
            "dbs": "alg_srtterreinsector_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "alg_s_alg_srtterrein_key"
        },
        "name": {
            "dbs": "alg_srtterreinsec_omschrijving",
            "label": L("alg_srtterreinsec_omschrijving"),
            "typ": "varchar",
            "translate": true,
            "required": true
        },
        "price_1": {
            "dbs": "alg_srtterreinsector_prijs",
            "label": L("alg_srtterreinsector_prijs"),
            "iscurrency": true,
            "typ": "float"
        },
        "price_2": {
            "dbs": "alg_srtterreinsector_prijs2",
            "label": L("alg_srtterreinsector_prijs2"),
            "iscurrency": true,
            "typ": "float"
        },
        "price_3": {
            "dbs": "alg_srtterreinsector_prijs3",
            "label": L("alg_srtterreinsector_prijs3"),
            "iscurrency": true,
            "typ": "float"
        },
        "price_4": {
            "dbs": "alg_srtterreinsector_prijs4",
            "label": L("alg_srtterreinsector_prijs4"),
            "iscurrency": true,
            "typ": "float"
        },
        "price_5": {
            "dbs": "alg_srtterreinsector_prijs5",
            "label": L("alg_srtterreinsector_prijs5"),
            "iscurrency": true,
            "typ": "float"
        },
        "rentable": {
            "dbs": "prs_verhuurbaar",
            "label": L("prs_verhuurbaar"),
            "iscurrency": true,
            "typ": "check"
        },
        "code": {
            "dbs": "alg_srtterreinsector_code",
            "label": L("alg_srtterreinsector_code"),
            "iscurrency": true,
            "typ": "varchar"
        }
    };


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