<% /*
    $Revision$
    $Id$

    File:           model_user_tables.inc

    Description:    Tables model.
    Parameters:
    Context:

    Notes:
*/

%>
<%
function model_user_tables()
{
    this.table = "user_tables";
    this.primary = "table_name";
    this.records_name = "Tables";
    this.record_name = "Table";
    this.autfunction = "WEB_FACFAC";

    this.fields = { "id"       : {  dbs: "table_name",    typ: "varchar",  label: "key" },
                    "name"     : {  dbs: "table_name",    typ: "varchar",  label: "Table" }, // dubbel voor filtering
                    "rows"     : {  dbs: "num_rows",      typ: "number",   label: "Estimated rows" },
                    "analyzed" : {  dbs: "last_analyzed", typ: "datetime", label: "Last analyzed" }
                  };

    this.REST_GET = generic_REST_GET(this);

    this.list = { default_url: "appl/mgt/mgt_generic.asp?table={0}" };
}
%>