plura/migrations/20241217133534_init_systems.sql
2025-06-08 21:12:07 +02:00

9 lines
268 B
SQL
Executable file

-- Add migration script here
CREATE TABLE systems (
id INTEGER NOT NULL PRIMARY KEY,
owner_id TEXT UNIQUE NOT NULL,
name TEXT NOT NULL,
slack_oauth_token TEXT NOT NULL,
-- unix timestamp
created_at INTEGER DEFAULT CURRENT_TIMESTAMP NOT NULL
);