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,
|
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,
|
|
|
|
status Boolean
|
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());
|