MSV FM

signtalkermusic@172.67.155.242: ~ $
Path : /backup/
File Upload :
Current < : //backup/transports.db

SQLite format 3@  ._
��N��1
g
��
<
Ax	�	u�G��t11�viewelapsed_statisticselapsed_statisticsCREATE VIEW elapsed_statistics
AS SELECT
    max(tdiff) AS max_elapsed,
    min(tdiff) AS min_elapsed,
    avg(tdiff) AS elapsed_mean,
    sum(tdiff) AS total_elapsed,
    (SELECT min(start_timestamp) FROM transport_history) AS started_at,
    (SELECT max(end_timestamp) FROM transport_history) AS completed_at
FROM timediffs��viewtimediffstimediffsCREATE VIEW timediffs AS SELECT strftime('%s',end_timestamp) - strftime('%s',start_timestamp) as tdiff FROM transport_history�!--�yviewtransport_importtransport_importCREATE VIEW transport_import
AS SELECT
    users.id AS user_id,
    occurrences.id AS occurrence_id,
    transports.id AS transport_id,
    users.user,
    occurrences.date,
    transports.transport
FROM
    users JOIN occurrences JOIN transports�j!!�#viewhappeningshappeningsCREATE VIEW happenings
AS SELECT
    users.user,
    occurrences.date,
    transports.transport,
    start_timestamp,
    end_timestamp
FROM
    transport_history
AS
    th
JOIN
    users
ON
    users.id=th.user_id
JOIN
    occurrences
ON
    occurrences.id=th.occurrence_id
JOIN
    transports
ON
    transports.id=th.transport_ida
/�indexend_timestransport_historyCREATE INDEX end_times ON transport_history(end_timestamp)g#/�	indexstart_timestransport_history
CREATE INDEX start_times ON transport_history(start_timestamp)�4
//�tabletransport_historytransport_historyCREATE TABLE `transport_history` (
    `transport_id`  INTEGER NOT NULL,
    `user_id`   INTEGER NOT NULL,
    `occurrence_id` INTEGER NOT NULL,
    `start_timestamp` TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `end_timestamp`   TEXT,
    FOREIGN KEY(`transport_id`) REFERENCES transports ( id ) ON DELETE CASCADE,
    FOREIGN KEY(`user_id`) REFERENCES users ( id ) ON DELETE CASCADE,
    FOREIGN KEY(`occurrence_id`) REFERENCES occurrences ( id ) ON DELETE CASCADE,
    UNIQUE (transport_id,user_id,occurrence_id)
)AU/indexsqlite_autoindex_transport_history_1transport_history�]tableusersusers	CREATE TABLE `users` (
    `id`    INTEGER PRIMARY KEY AUTOINCREMENT,
    `user`  TEXT NOT NULL UNIQUE
))	=indexsqlite_autoindex_users_1users
�!!�otabletransportstransportsCREATE TABLE `transports` (
    `id`    INTEGER PRIMARY KEY AUTOINCREMENT,
    `transport` TEXT NOT NULL UNIQUE
)3G!indexsqlite_autoindex_transports_1transportsP++Ytablesqlite_sequencesqlite_sequenceCREATE TABLE sqlite_sequence(name,seq)�##�itableoccurrencesoccurrencesCREATE TABLE `occurrences` (
    `id`    INTEGER PRIMARY KEY AUTOINCREMENT,
    `date`  TEXT NOT NULL UNIQUE
)5I#indexsqlite_autoindex_occurrences_1occurrencesw�AtablemetadatametadataCREATE TABLE metadata (
            key text primary key,
            value text
        )/Cindexsqlite_autoindex_metadata_1metadata
��)schema_version0.1
��)	schema_version