mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
10 lines
358 B
MySQL
10 lines
358 B
MySQL
|
|
-- Migration 008: Add config.operators table for user accounts
|
||
|
|
-- Idempotent per docs/migrations.md
|
||
|
|
|
||
|
|
CREATE TABLE IF NOT EXISTS config.operators (
|
||
|
|
id BIGSERIAL PRIMARY KEY,
|
||
|
|
username TEXT NOT NULL UNIQUE,
|
||
|
|
password_hash TEXT NOT NULL,
|
||
|
|
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||
|
|
password_changed_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
||
|
|
);
|