USE wordly_db;
CREATE TABLE IF NOT EXISTS user_dashboard_state (
  user_id BIGINT PRIMARY KEY,
  state_json JSON NOT NULL,
  updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  CONSTRAINT fk_dashboard_state_user FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
