CREATE TABLE IF NOT EXISTS feature_flag (
  id SERIAL PRIMARY KEY,
  feature_key VARCHAR(255) UNIQUE NOT NULL,
  label VARCHAR(255) NOT NULL,
  description VARCHAR(512),
  flag BOOLEAN DEFAULT FALSE NOT NULL,
  status VARCHAR(50) DEFAULT 'active' NOT NULL,
  created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL,
  updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL,
  deleted_at TIMESTAMPTZ,
  created_by INT,
  updated_by INT
);
