OBJECT

Code

Verification Code (for change password, etc)

link GraphQL Schema definition

  • type Code {
  • # Primary Key
  • id: Int!
  • # User ID who initiated the code
  • user_id: Int!
  • # Random verification code
  • code: String!
  • # Type of verification code: helps to determine the goal, e.g. restore_password or
  • # verify_email
  • type: String!
  • # Unix timestamp when code was created
  • created_at: Float!
  • # Unix timestamp when code will be expired: created_at + lifetime
  • expires_at: Float!
  • # State of code: new|cancelled|expired|used
  • status: String!
  • # Original user IP who initiated the code
  • created_by_ip: String!
  • # ID of UserAgent who initiated the code
  • created_by_user_agent_id: Int!
  • # Unix timestamp when code was used
  • used_at: Float
  • # Original IP who used the code
  • used_at_ip: String
  • # ID of UserAgent who used the code
  • used_at_user_agent_id: Int
  • }