# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# Password for all test users: "password123456"

admin_user:
  email: "admin@example.com"
  password_digest: <%= BCrypt::Password.create('password123456') %>
  name: "Admin User"
  role: 2  # admin
  primary_language: "en"
  invitation_token: "admin_token_accepted"
  invitation_sent_at: <%= 30.days.ago %>
  invitation_accepted_at: <%= 30.days.ago %>
  invited_by_id: ~

reviewer_user:
  email: "reviewer@example.com"
  password_digest: <%= BCrypt::Password.create('password123456') %>
  name: "Reviewer User"
  role: 1  # reviewer
  primary_language: "en"
  invitation_token: "reviewer_token_accepted"
  invitation_sent_at: <%= 20.days.ago %>
  invitation_accepted_at: <%= 20.days.ago %>
  invited_by: admin_user

contributor_user:
  email: "contributor@example.com"
  password_digest: <%= BCrypt::Password.create('password123456') %>
  name: "Contributor User"
  role: 0  # contributor
  primary_language: "fi"
  invitation_token: "contributor_token_accepted"
  invitation_sent_at: <%= 10.days.ago %>
  invitation_accepted_at: <%= 10.days.ago %>
  invited_by: admin_user

pending_invitation:
  email: "pending@example.com"
  password_digest: <%= BCrypt::Password.create('password123456') %>
  name: "Pending User"
  role: 0  # contributor
  primary_language: "en"
  invitation_token: "pending_token_12345"
  invitation_sent_at: <%= 2.days.ago %>
  invitation_accepted_at: ~
  invited_by: admin_user
