-- Copyright (C) 2026 Eduard Wisch <data@data-it-solution.de>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- Tabelle: Debug-Log der mobilen App (von api/applog.php befüllt)

CREATE TABLE llx_netdiag_applog(
	rowid         integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
	entity        integer DEFAULT 1 NOT NULL,
	fk_user       integer,
	app_version   varchar(32),
	device        varchar(128),
	level         varchar(8),
	message       text,
	date_log      datetime,
	date_creation datetime NOT NULL
) ENGINE=innodb;
