<% /*
    $Revision$
    $Id$

    File:           model_prs_ruimteafdeling.inc

    Description:

    Context:

    Notes:
*/
%>
<%

function model_prs_ruimteafdeling()
{
    this.table = "prs_ruimteafdeling";
    this.primary = "prs_ruimteafdeling_key";
    this.records_name = "prs_ruimteafdelings";
    this.record_name = "prs_ruimteafdeling";
    this.autfunction = "WEB_ALGUSE";
    this.record_title = "prs_ruimteafdeling";
    this.records_title = "prs_ruimteafdeling_m";


    this.fields = {
        "id": {
            "dbs": "prs_ruimteafdeling_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "prs_s_prs_ruimteafdeling_key"
        },
        "department": {
            "dbs": "prs_afdeling_key",
            "label": L("lcl_prs_organisatie"),
            "typ": "key",
            "required": true,
            "foreign": "PRS_AFDELING"
        },
        "room": {
            "dbs": "alg_ruimte_key",
            "label": L("lcl_room"),
            "typ": "key",
            "required": true
        },
        "occupation": {
            "dbs": "prs_ruimteafdeling_bezetting",
            "label": L("lcl_prs_ruimtebezetting"),
            "typ": "float",
            "required": true
        }
    };


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