hostname-service/db/migrations/2_create_hostnames_table.up...

8 lines
221 B
MySQL
Raw Normal View History

CREATE TABLE IF NOT EXISTS hostnames (
2024-01-17 18:05:55 +01:00
id INTEGER PRIMARY KEY AUTOINCREMENT,
category TEXT NOT NULL,
hostname TEXT NOT NULL,
parameters JSON,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);