-- 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: gefundenes Gerät innerhalb eines Diagnose-Protokolls

CREATE TABLE llx_netdiag_device(
	rowid         integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
	entity        integer DEFAULT 1 NOT NULL,
	fk_protocol   integer NOT NULL,
	ip            varchar(45),
	mac           varchar(17),
	hostname      varchar(255),
	vendor        varchar(128),
	devicetype    varchar(64),
	note          text,
	date_creation datetime NOT NULL,
	tms           timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL
) ENGINE=innodb;
