3 * Table Definition for user_openid_trustroot
6 if (!defined('STATUSNET')) {
10 class User_openid_trustroot extends Managed_DataObject
13 /* the code below is auto generated do not remove the above tag */
15 public $__table = 'user_openid_trustroot'; // table name
16 public $trustroot; // varchar(191) primary_key not_null not 255 because utf8mb4 takes more space
17 public $user_id; // int(4) primary_key not_null
18 public $created; // datetime() not_null
19 public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
21 /* the code above is auto generated do not remove the tag below */
24 public static function schemaDef()
28 'trustroot' => array('type' => 'varchar', 'not null' => true, 'length' => 191, 'description' => 'OpenID trustroot string'),
29 'user_id' => array('type' => 'int', 'not null' => true, 'description' => 'User ID for OpenID trustroot owner'),
30 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
31 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
33 'primary key' => array('trustroot', 'user_id'),