gontrol/gomatic.sql

18 lines
500 B
MySQL
Raw Normal View History

2025-01-06 11:07:53 +01:00
/* create database 'gomatic'; */
drop table if exists agents;
create table agents (
2025-01-09 16:42:27 +01:00
id UUID default uuid() Primary Key,
2025-01-10 02:47:33 +01:00
agentId int unique,
agentType varchar(255),
2025-01-06 11:07:53 +01:00
agentName varchar(255),
2025-01-09 16:42:27 +01:00
IPv4Address varchar(15),
2025-01-06 11:07:53 +01:00
initialContact timestamp,
2025-01-09 16:42:27 +01:00
lastContact timestamp,
2025-05-23 16:52:50 +02:00
status Boolean,
2025-05-26 17:22:07 +02:00
addPort varchar(255),
hostName varchar(255),
2025-01-06 11:07:53 +01:00
);
2025-01-10 02:47:33 +01:00
insert into agents (IPv4Address, agentId, agentName, initialContact, lastContact) values ( '127.0.0.1', 'testAgent', NOW(), NOW());