/**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Civisocial User ID'), 'description' => 'Unique User ID', 'required' => true, 'import' => true, 'where' => 'civisocial_user.id', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact ID'), 'description' => 'FK to Contact ID that owns that account', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'backend' => array('name' => 'backend', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Backend'), 'description' => 'Backend OAuth Provider', 'maxlength' => 128, 'size' => 30, 'export' => true, 'where' => 'civisocial_user.backend', 'headerPattern' => '', 'dataPattern' => '', 'html' => array('type' => 'Text')), 'facebook_user_id' => array('name' => 'facebook_user_id', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Facebook User ID'), 'description' => 'User ID for facebook, to be used to match friends etc.', 'required' => false, 'maxlength' => 128, 'size' => 128, 'export' => true, 'where' => 'civisocial_user.facebook_user_id', 'headerPattern' => '', 'dataPattern' => '', 'default' => 'NULL'), 'access_token' => array('name' => 'access_token', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Access Token provided by OAuth Provider'), 'description' => 'Access Token Provided by OAuth Provider', 'required' => false, 'maxlength' => 511, 'size' => 511, 'export' => true, 'where' => 'civisocial_user.access_token', 'headerPattern' => '', 'dataPattern' => '', 'default' => 'NULL'), 'oauth_object' => array('name' => 'oauth_object', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Serialized Object returned by OAuth Provider'), 'description' => 'Access Token Provided by OAuth Provider', 'required' => false, 'maxlength' => 1023, 'size' => 1023, 'export' => true, 'where' => 'civisocial_user.oauth_object', 'headerPattern' => '', 'dataPattern' => '', 'default' => 'NULL'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Created Date'), 'description' => 'When was the civisocial user was created.', 'required' => false, 'export' => true, 'where' => 'civisocial_user.created_date', 'headerPattern' => '', 'dataPattern' => '', 'default' => 'CURRENT_TIMESTAMP'), 'modified_date' => array('name' => 'modified_date', 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Modified Date'), 'description' => 'When was the the civisocial user was created or modified or deleted.', 'required' => false, 'export' => true, 'where' => 'civisocial_user.modified_date', 'headerPattern' => '', 'dataPattern' => '', 'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'));
     }
     return self::$_fields;
 }