<% /*
    $Revision$
    $Id$

    File:           fac_session.inc

    Description:

    Context:        Toont actieve sessies van (uitsluitend) de huidige gebruiker

    Notes:          Ongedocumenteerd/ intern gebruik
*/
%>
<%

model_fac_session = // Internal only
{
    "table": "fac_session",
    "primary": "fac_session_key",
    "records_name": "fac_sessions",
    "record_name": "fac_session",
    "record_title":  L("fac_session"),
    "records_title": L("fac_session_m"),
    "autfunction": "WEB_FACTAB",

    "fields": {
        "id": {
            "dbs": "fac_session_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "seq": "fac_s_fac_session_key"
        },
        "hash": {
            "dbs": "fac_session_sessionid_hash",
            "label": L("fac_session_sessionid_hash"),
            "typ": "varchar"
        },
        "user": {
            "dbs": "prs_perslid_key",
            "label": L("lcl_user"),
            "typ": "key",
            "foreign" : "prs_perslid"
        },
        "data": {
            "dbs": "fac_session_data",
            "label": L("fac_session_data"),
            "typ": "varchar"
        },
        "created": {
            "dbs": "fac_session_aanmaak",
            "label": L("fac_session_aanmaak"),
            "typ": "datetime",
            "readonly": true
        },
        "expire": {
            "dbs": "fac_session_expire",
            "label": L("fac_session_expire"),
            "typ": "datetime"
        },
        "ip": {
            "dbs": "fac_session_ip",
            "label": L("fac_session_ip"),
            "typ": "varchar"
        },
        "useragent": {
            "dbs": "fac_session_useragent",
            "label": L("fac_session_useragent"),
            "typ": "varchar"

        }
    }
}
    model_fac_session.REST_GET    = generic_REST_GET(model_fac_session);
    // PUT/POST/DELETE ondersteunen we niet
%>
