<% /*
    $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_sessionid_hash",
    "records_name": "fac_sessions",
    "record_name": "fac_session",
    "record_title": "FACILITOR session", // L("fac_session"),
    "records_title": "FACILITOR sessions", // L("fac_session_m"),
    autfunction: "WEB_FACTAB",

    "fields": {
        id: {
            dbs: "fac_session_sessionid_hash",
            "typ": "key" },
        "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"
        },
        "creation": {
            "dbs": "fac_session_aanmaak",
            //"label": L("fac_session_aanmaak"),
            "typ": "datetime"
        },
        "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
%>
