2009-10-31 02:21:11 +09:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Table Definition for user_openid_trustroot
|
|
|
|
*/
|
2010-10-09 03:23:53 +09:00
|
|
|
|
|
|
|
if (!defined('STATUSNET')) {
|
|
|
|
exit(1);
|
|
|
|
}
|
2009-10-31 02:21:11 +09:00
|
|
|
|
2013-08-18 19:10:44 +09:00
|
|
|
class User_openid_trustroot extends Managed_DataObject
|
2009-10-31 02:21:11 +09:00
|
|
|
{
|
|
|
|
###START_AUTOCODE
|
|
|
|
/* the code below is auto generated do not remove the above tag */
|
|
|
|
|
|
|
|
public $__table = 'user_openid_trustroot'; // table name
|
2015-02-13 02:18:55 +09:00
|
|
|
public $trustroot; // varchar(191) primary_key not_null not 255 because utf8mb4 takes more space
|
2009-10-31 02:21:11 +09:00
|
|
|
public $user_id; // int(4) primary_key not_null
|
|
|
|
public $created; // datetime() not_null
|
|
|
|
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
|
|
|
|
|
|
|
/* the code above is auto generated do not remove the tag below */
|
|
|
|
###END_AUTOCODE
|
2009-11-26 08:12:24 +09:00
|
|
|
|
2013-08-20 00:08:18 +09:00
|
|
|
public static function schemaDef()
|
2009-11-26 11:21:23 +09:00
|
|
|
{
|
2013-08-20 00:08:18 +09:00
|
|
|
return array(
|
|
|
|
'fields' => array(
|
2015-02-13 02:18:55 +09:00
|
|
|
'trustroot' => array('type' => 'varchar', 'not null' => true, 'length' => 191, 'description' => 'OpenID trustroot string'),
|
2013-08-20 00:08:18 +09:00
|
|
|
'user_id' => array('type' => 'int', 'not null' => true, 'description' => 'User ID for OpenID trustroot owner'),
|
|
|
|
'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
|
|
|
|
'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
|
|
|
|
),
|
|
|
|
'primary key' => array('trustroot', 'user_id'),
|
|
|
|
);
|
2009-11-26 08:12:24 +09:00
|
|
|
}
|
2009-10-31 02:21:11 +09:00
|
|
|
}
|