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

8 lines
221 B
SQL

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