Token.php

Summary
Token.php
TokenSuperclass representation of the database entry for an OAuth login token.
schemaDefReturns an array with the table’s schema definition

Token

Superclass representation of the database entry for an OAuth login token.

Properties

  • __table = ‘token’ - table name
  • consumer_key - varchar(191) primary_key not_null not 255 because utf8mb4 takes more space
  • tok - char(32) primary_key not_null
  • secret - char(32) not_null
  • type - tinyint(1) not_null
  • state - tinyint(1)
  • verifier - varchar(191) not 255 because utf8mb4 takes more space
  • verified_callback - varchar(191) not 255 because utf8mb4 takes more space
  • created - datetime() not_null
  • modified - timestamp() not_null default_CURRENT_TIMESTAMP

schemaDef

public static function schemaDef()

Returns an array with the table’s schema definition

public static function schemaDef()
Returns an array with the table’s schema definition