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

8 lines
207 B
SQL

CREATE TABLE hostnames (
id INTEGER PRIMARY KEY AUTOINCREMENT,
category TEXT NOT NULL,
hostname TEXT NOT NULL,
parameters JSON,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);