<% /*
    $Revision$
    $Id$

    File:           model_ins_deelsrtcontrole.inc

    Description:    Inspectie model.
    Parameters:
    Context:

    Notes:          Extreem rudimentair, uitsluitend om flexkenmerken (bijlagen) te kunnen opslaan
*/

%>
<!-- #include file="./model_custom_fields.inc"-->
<!-- #include file="./model_ins_kenmerk.inc"-->
<%
function model_ins_deelsrtcontrole()
{
    this.table        = "ins_deelsrtcontrole";
    this.primary      = "ins_deelsrtcontrole_key";
    this.records_name = "objects";
    this.record_name  = "object";
    this.autfunction = false; // TODO?


    this.fields = { "id"       : { dbs: "ins_deelsrtcontrole_key",   typ: "key" },
                    "object"   : { dbs: "ins_deel_key",              typ: "key",    foreign: "ins_deel" }
                  };

    this.includes = { "custom_fields" : {
                        "model": new model_custom_fields(this, new model_ins_kenmerk("C", { internal: true }), { readman: true, readuse: true }),
                        "joinfield": "flexparentkey",
                        "enable_update": true
                    }
              },
    this.REST_GET    = generic_REST_GET(this);
    this.REST_PUT    = generic_REST_PUT(this);
}
%>