up.sql 407 B

1234567891011121314
  1. -- Your SQL goes here
  2. CREATE TABLE active_day_frames (
  3. id SERIAL PRIMARY KEY,
  4. user_id INTEGER NOT NULL,
  5. date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  6. duration INTEGER NOT NULL DEFAULT(1),
  7. hit INTEGER NOT NULL DEFAULT(1),
  8. updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  9. created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
  10. );