<% /*
    $Revision$
    $Id$

    File:           model_issueobjects.inc

    Description:    Meldingobjecten model
    Parameters:
    Context:

    Notes:
*/

function model_issueobjects()
{
    this.table = "mld_melding_object";
    this.primary = "mld_melding_object_key";
    this.records_name = "issueobjects";
    this.record_name = "issueobject";
    this.autfunction = false; // Kan alleen vanuit model_issue aangeroepen worden. De autorisatie is daar al geregeld.
    this.fields = {"id"        : { dbs: "mld_melding_object_key",  typ: "key",     seq: "mld_s_mld_object_key" },
                   "object"    : { dbs: "ins_deel_key",            typ: "key", foreign: "ins_deel" },
                   "issue"     : { dbs: "mld_melding_key",         typ: "key" },
                   "inspection": { dbs: "ins_deelsrtcontrole_key", typ: "key" }
                  };

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