-- 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: Diagnose-Protokoll (Kopfdatensatz eines Netzwerk-Einsatzes)

CREATE TABLE llx_netdiag_protocol(
	rowid             integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
	ref               varchar(128) NOT NULL,
	entity            integer DEFAULT 1 NOT NULL,
	label             varchar(255),
	client_uuid       varchar(64),
	fk_soc            integer,
	fk_commande       integer,
	date_diag         datetime,
	fk_user_techniker integer,
	standort          varchar(255),
	subnet            varchar(64),
	status            smallint DEFAULT 0 NOT NULL,
	note              text,
	date_creation     datetime NOT NULL,
	tms               timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL,
	fk_user_creat     integer NOT NULL,
	fk_user_modif     integer
) ENGINE=innodb;
