public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addText(self::MESSAGE);
     parent::_addInteger(self::DATE, 10);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::NAME, 100);
     parent::_addVarchar(self::KEY, 100);
     parent::_addVarchar(self::PREFIX, 5, '');
     parent::_addBoolean(self::USE_PREFIX);
     parent::_addBoolean(self::USE_SCRUM);
     parent::_addVarchar(self::HOMEPAGE, 200, '');
     parent::_addInteger(self::OWNER, 10);
     parent::_addInteger(self::OWNER_TYPE, 3);
     parent::_addInteger(self::LEAD_BY, 10);
     parent::_addInteger(self::LEAD_TYPE, 3);
     parent::_addText(self::DESCRIPTION, false);
     parent::_addVarchar(self::DOC_URL, 200, '');
     parent::_addBoolean(self::ALLOW_CHANGING_WITHOUT_WORKING);
     parent::_addBoolean(self::RELEASED);
     parent::_addBoolean(self::PLANNED_RELEASED);
     parent::_addInteger(self::RELEASE_DATE, 10);
     parent::_addBoolean(self::ENABLE_BUILDS);
     parent::_addBoolean(self::ENABLE_EDITIONS);
     parent::_addBoolean(self::ENABLE_COMPONENTS);
     parent::_addBoolean(self::SHOW_IN_SUMMARY, true);
     parent::_addVarchar(self::SUMMARY_DISPLAY, 15, 'issuetypes');
     parent::_addInteger(self::QA, 10);
     parent::_addInteger(self::QA_TYPE, 3);
     parent::_addBoolean(self::LOCKED);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
     parent::_addForeignKeyColumn(self::WORKFLOW_SCHEME_ID, TBGWorkflowSchemesTable::getTable(), TBGWorkflowSchemesTable::ID);
     parent::_addForeignKeyColumn(self::ISSUETYPE_SCHEME_ID, TBGIssuetypeSchemesTable::getTable(), TBGIssuetypeSchemesTable::ID);
     parent::_addForeignKeyColumn(self::CLIENT, TBGClientsTable::getTable(), TBGClientsTable::ID);
     parent::_addBoolean(self::DELETED);
     parent::_addBoolean(self::AUTOASSIGN);
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
     parent::_addVarchar(self::NAME, 200);
     parent::_addText(self::DESCRIPTION, false);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addText(self::MESSAGE);
     parent::_addInteger(self::DATE, 10);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addForeignKeyColumn(self::ISSUE_ID, TBGIssuesTable::getTable(), TBGIssuesTable::ID);
     parent::_addForeignKeyColumn(self::CUSTOMFIELDS_ID, Core::getTable('TBGCustomFieldsTable'), TBGCustomFieldsTable::ID);
     parent::_addText(self::OPTION_VALUE, false);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 protected function _initialize()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addBoolean(self::ENABLED, false);
     parent::_addText(self::DESCRIPTION, false);
     parent::_addInteger(self::ADMINISTRATOR, 10);
     parent::_addVarchar(self::HOSTNAME, 150, '');
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addForeignKeyColumn(self::ISSUE_ID, TBGIssuesTable::getTable(), TBGIssuesTable::ID);
     parent::_addForeignKeyColumn(self::CUSTOMFIELDS_ID, B2DB::getTable('TBGCustomFieldsTable'), TBGCustomFieldsTable::ID);
     parent::_addText(self::OPTION_VALUE, false);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
     parent::_addVarchar(self::NAME, 200);
     parent::_addText(self::DESCRIPTION, false);
     parent::_addBoolean(self::IS_ACTIVE);
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::NAME, 50);
     parent::_addVarchar(self::ICON, 30, 'bug_report');
     parent::_addText(self::DESCRIPTION, false);
     parent::_addBoolean(self::TASK);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::NAME, 50);
     parent::_addVarchar(self::ICON, 30, 'bug_report');
     parent::_addText(self::DESCRIPTION, false);
     parent::_addBoolean(self::TASK);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
     parent::_addForeignKeyColumn(self::WORKFLOW_ID, TBGWorkflowsTable::getTable(), TBGWorkflowsTable::ID);
     parent::_addVarchar(self::NAME, 200);
     parent::_addText(self::DESCRIPTION, false);
     parent::_addForeignKeyColumn(self::OUTGOING_STEP_ID, TBGWorkflowStepsTable::getTable(), TBGWorkflowStepsTable::ID);
     parent::_addVarchar(self::TEMPLATE, 200);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::FIELD_NAME, 100);
     parent::_addVarchar(self::FIELD_KEY, 100);
     parent::_addVarchar(self::FIELD_DESCRIPTION, 200);
     parent::_addText(self::FIELD_INSTRUCTIONS);
     parent::_addInteger(self::FIELD_TYPE);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::NAME, 100);
     parent::_addVarchar(self::ITEMTYPE, 25);
     parent::_addText(self::ITEMDATA, false);
     parent::_addInteger(self::APPLIES_TO, 10);
     parent::_addInteger(self::ORDER, 3);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::NAME, 100);
     parent::_addVarchar(self::ITEMTYPE, 25);
     parent::_addText(self::ITEMDATA, false);
     parent::_addInteger(self::APPLIES_TO, 10);
     parent::_addInteger(self::ORDER, 3);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::FIELD_NAME, 100);
     parent::_addVarchar(self::FIELD_KEY, 100);
     parent::_addVarchar(self::FIELD_DESCRIPTION, 200);
     parent::_addText(self::FIELD_INSTRUCTIONS);
     parent::_addInteger(self::FIELD_TYPE);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 public function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::NAME, 255);
     parent::_addText(self::CONTENT, false);
     parent::_addBoolean(self::IS_PUBLISHED);
     parent::_addInteger(self::DATE, 10);
     parent::_addForeignKeyColumn(self::AUTHOR, TBGUsersTable::getTable(), TBGUsersTable::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
     parent::_addForeignKeyColumn(self::STATUS_ID, TBGListTypesTable::getTable(), TBGListTypesTable::ID);
     parent::_addForeignKeyColumn(self::WORKFLOW_ID, TBGWorkflowsTable::getTable(), TBGWorkflowsTable::ID);
     parent::_addVarchar(self::NAME, 200);
     parent::_addText(self::DESCRIPTION, false);
     parent::_addBoolean(self::EDITABLE);
     parent::_addBoolean(self::CLOSED);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::ARTICLE_NAME, 255);
     parent::_addText(self::OLD_CONTENT, false);
     parent::_addText(self::NEW_CONTENT, false);
     parent::_addVarchar(self::REASON, 255);
     parent::_addInteger(self::DATE, 10);
     parent::_addInteger(self::REVISION, 10);
     parent::_addForeignKeyColumn(self::AUTHOR, TBGUsersTable::getTable(), TBGUsersTable::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::NAME, 100);
     parent::_addText(self::DESCRIPTION, false);
     parent::_addInteger(self::REACHED, 10);
     parent::_addInteger(self::MILESTONE_TYPE, 2);
     parent::_addInteger(self::STARTING, 10);
     parent::_addInteger(self::SCHEDULED, 10);
     parent::_addForeignKeyColumn(self::PROJECT, TBGProjectsTable::getTable(), TBGProjectsTable::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addForeignKeyColumn(self::UID, TBGUsersTable::getTable(), TBGUsersTable::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
     parent::_addVarchar(self::REAL_FILENAME, 250);
     parent::_addVarchar(self::CONTENT_TYPE, 250);
     parent::_addVarchar(self::ORIGINAL_FILENAME, 250);
     parent::_addInteger(self::UPLOADED_AT, 10);
     parent::_addBlob(self::CONTENT);
     parent::_addText(self::DESCRIPTION, false);
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::TITLE, 255);
     parent::_addText(self::CONTENT, false);
     parent::_addText(self::LINK, false);
     parent::_addBoolean(self::IS_DELETED);
     parent::_addInteger(self::DATE, 10);
     parent::_addInteger(self::TARGET_BOARD, 10);
     parent::_addForeignKeyColumn(self::ARTICLE_ID, TBGArticlesTable::getTable(), TBGArticlesTable::ID);
     parent::_addForeignKeyColumn(self::AUTHOR, TBGUsersTable::getTable(), TBGUsersTable::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addText(self::FILE_NAME, false);
     parent::_addText(self::LOG, false);
     parent::_addVarchar(self::OLD_REV, 40);
     parent::_addVarchar(self::NEW_REV, 40);
     parent::_addVarchar(self::AUTHOR, 100);
     parent::_addVarchar(self::ACTION, 1);
     parent::_addInteger(self::DATE, 10);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
     parent::_addForeignKeyColumn(self::ISSUE_NO, TBGIssuesTable::getTable(), TBGIssuesTable::ID);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addInteger(self::TARGET, 10);
     parent::_addInteger(self::TARGET_TYPE, 3);
     parent::_addInteger(self::CHANGE_TYPE, 3);
     parent::_addText(self::TEXT, false);
     parent::_addText(self::PREVIOUS_VALUE, false);
     parent::_addText(self::CURRENT_VALUE, false);
     parent::_addInteger(self::TIME, 10);
     parent::_addForeignKeyColumn(self::UID, TBGUsersTable::getTable(), TBGUsersTable::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::MODULE_NAME, 50);
     parent::_addInteger(self::NOTIFY_TYPE, 5);
     parent::_addInteger(self::TARGET_ID, 10);
     parent::_addVarchar(self::TITLE, 100);
     parent::_addText(self::CONTENTS, false);
     parent::_addInteger(self::STATUS, 5);
     parent::_addForeignKeyColumn(self::UID, TBGUsersTable::getTable(), TBGUsersTable::ID);
     parent::_addForeignKeyColumn(self::GID, TBGGroupsTable::getTable(), TBGGroupsTable::ID);
     parent::_addForeignKeyColumn(self::TID, B2DB::getTable('TBGTeamsTable'), TBGTeamsTable::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::NAME, 200);
     parent::_addText(self::DESCRIPTION, false);
     parent::_addBoolean(self::IS_PUBLIC);
     parent::_addVarchar(self::TEMPLATE_NAME, 200);
     parent::_addVarchar(self::TEMPLATE_PARAMETER, 200);
     parent::_addInteger(self::ISSUES_PER_PAGE, 10);
     parent::_addVarchar(self::GROUPBY, 100);
     parent::_addVarchar(self::GROUPORDER, 5);
     parent::_addForeignKeyColumn(self::APPLIES_TO_PROJECT, TBGProjectsTable::getTable(), TBGProjectsTable::ID);
     parent::_addForeignKeyColumn(self::UID, TBGUsersTable::getTable(), TBGUsersTable::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 public function __construct()
 {
     parent::__construct(self::B2DBNAME, self::ID);
     parent::_addBoolean(self::ENABLED, false);
     parent::_addBoolean(self::CUSTOM_WORKFLOWS_ENABLED, true);
     parent::_addBoolean(self::UPLOADS_ENABLED, true);
     parent::_addInteger(self::MAX_UPLOAD_LIMIT, 5);
     parent::_addInteger(self::MAX_WORKFLOWS, 5);
     parent::_addInteger(self::MAX_USERS, 5);
     parent::_addInteger(self::MAX_PROJECTS, 5);
     parent::_addInteger(self::MAX_TEAMS, 5);
     parent::_addText(self::DESCRIPTION, false);
     parent::_addText(self::NAME, false);
     parent::_addInteger(self::ADMINISTRATOR, 10);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addInteger(self::TARGET_ID, 10);
     parent::_addInteger(self::TARGET_TYPE, 3);
     parent::_addText(self::CONTENT, false);
     parent::_addInteger(self::POSTED, 10);
     parent::_addInteger(self::UPDATED, 10);
     parent::_addInteger(self::COMMENT_NUMBER, 10);
     parent::_addBoolean(self::DELETED);
     parent::_addBoolean(self::IS_PUBLIC, true);
     parent::_addVarchar(self::MODULE, 50);
     parent::_addBoolean(self::SYSTEM_COMMENT);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
     parent::_addForeignKeyColumn(self::UPDATED_BY, TBGUsersTable::getTable(), TBGUsersTable::ID);
     parent::_addForeignKeyColumn(self::POSTED_BY, TBGUsersTable::getTable(), TBGUsersTable::ID);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::NAME, 100);
     parent::_addText(self::DESCRIPTION, false);
     parent::_addInteger(self::LEAD_BY, 10);
     parent::_addInteger(self::LEAD_TYPE, 3);
     parent::_addInteger(self::OWNED_BY, 10);
     parent::_addInteger(self::OWNED_TYPE, 3);
     parent::_addVarchar(self::DOC_URL, 200, '');
     parent::_addInteger(self::QA, 10);
     parent::_addInteger(self::QA_TYPE, 3);
     parent::_addInteger(self::RELEASE_DATE, 10);
     parent::_addBoolean(self::RELEASED);
     parent::_addBoolean(self::PLANNED_RELEASED);
     parent::_addBoolean(self::LOCKED);
     parent::_addForeignKeyColumn(self::PROJECT, TBGProjectsTable::getTable(), TBGProjectsTable::ID);
     parent::_addForeignKeyColumn(self::SCOPE, TBGScopesTable::getTable(), TBGScopesTable::ID);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addVarchar(self::NAME, 200);
     parent::_addVarchar(self::KEY, 200);
     parent::_addInteger(self::SMALL_ICON, 10);
     parent::_addInteger(self::LARGE_ICON, 10);
     parent::_addVarchar(self::PREFIX, 25, '');
     parent::_addBoolean(self::USE_PREFIX);
     parent::_addBoolean(self::USE_SCRUM);
     parent::_addBoolean(self::HAS_DOWNLOADS);
     parent::_addVarchar(self::HOMEPAGE, 200, '');
     parent::_addInteger(self::OWNER_USER, 10);
     parent::_addInteger(self::OWNER_TEAM, 10);
     parent::_addInteger(self::LEADER_USER, 10);
     parent::_addInteger(self::LEADER_TEAM, 10);
     parent::_addInteger(self::QA_USER, 10);
     parent::_addInteger(self::QA_TEAM, 10);
     parent::_addText(self::DESCRIPTION, false);
     parent::_addVarchar(self::DOC_URL, 200, '');
     parent::_addBoolean(self::ALLOW_CHANGING_WITHOUT_WORKING);
     parent::_addBoolean(self::RELEASED);
     parent::_addInteger(self::RELEASE_DATE, 10);
     parent::_addBoolean(self::ENABLE_BUILDS);
     parent::_addBoolean(self::ENABLE_EDITIONS);
     parent::_addBoolean(self::ENABLE_COMPONENTS);
     parent::_addBoolean(self::SHOW_IN_SUMMARY, true);
     parent::_addVarchar(self::SUMMARY_DISPLAY, 15, 'issuetypes');
     parent::_addBoolean(self::LOCKED);
     parent::_addBoolean(self::ARCHIVED);
     parent::_addInteger(self::SCOPE, 10);
     parent::_addInteger(self::WORKFLOW_SCHEME_ID, 10);
     parent::_addInteger(self::ISSUETYPE_SCHEME_ID, 10);
     parent::_addInteger(self::CLIENT, 10);
     parent::_addInteger(self::PARENT_PROJECT_ID, 10);
     parent::_addBoolean(self::DELETED);
     parent::_addBoolean(self::AUTOASSIGN);
 }
 protected function _initialize()
 {
     parent::_setup(self::B2DBNAME, self::ID);
     parent::_addInteger(self::ISSUE_NO, 10);
     parent::_addVarchar(self::TITLE, 255);
     parent::_addInteger(self::POSTED, 10);
     parent::_addInteger(self::LAST_UPDATED, 10);
     parent::_addInteger(self::PROJECT_ID, 10);
     parent::_addText(self::DESCRIPTION, false);
     parent::_addBoolean(self::STATE);
     parent::_addInteger(self::POSTED_BY, 10);
     parent::_addFloat(self::USER_PAIN, 3);
     parent::_addInteger(self::PAIN_BUG_TYPE, 3);
     parent::_addInteger(self::PAIN_EFFECT, 3);
     parent::_addInteger(self::PAIN_LIKELIHOOD, 3);
     parent::_addText(self::REPRODUCTION_STEPS, false);
     parent::_addInteger(self::RESOLUTION, 10);
     parent::_addInteger(self::ISSUE_TYPE, 10);
     parent::_addInteger(self::STATUS, 10);
     parent::_addInteger(self::PRIORITY, 10);
     parent::_addInteger(self::CATEGORY, 10);
     parent::_addInteger(self::SEVERITY, 10);
     parent::_addInteger(self::REPRODUCABILITY, 10);
     parent::_addVarchar(self::SCRUMCOLOR, 7, '#FFFFFF');
     parent::_addInteger(self::ESTIMATED_MONTHS, 10);
     parent::_addInteger(self::ESTIMATED_WEEKS, 10);
     parent::_addInteger(self::ESTIMATED_DAYS, 10);
     parent::_addInteger(self::ESTIMATED_HOURS, 10);
     parent::_addInteger(self::ESTIMATED_POINTS);
     parent::_addInteger(self::SPENT_MONTHS, 10);
     parent::_addInteger(self::SPENT_WEEKS, 10);
     parent::_addInteger(self::SPENT_DAYS, 10);
     parent::_addInteger(self::SPENT_HOURS, 10);
     parent::_addInteger(self::VOTES_TOTAL, 10);
     parent::_addInteger(self::SPENT_POINTS);
     parent::_addInteger(self::PERCENT_COMPLETE, 2);
     parent::_addInteger(self::DUPLICATE_OF, 10);
     parent::_addBoolean(self::DELETED);
     parent::_addBoolean(self::BLOCKING);
     parent::_addBoolean(self::LOCKED);
     parent::_addInteger(self::BEING_WORKED_ON_BY_USER, 10);
     parent::_addInteger(self::BEING_WORKED_ON_BY_USER_SINCE, 10);
     parent::_addInteger(self::MILESTONE, 10);
     parent::_addInteger(self::WORKFLOW_STEP_ID, 10);
     parent::_addInteger(self::SCOPE, 10);
     parent::_addInteger(self::OWNER_USER, 10);
     parent::_addInteger(self::OWNER_TEAM, 10);
     parent::_addInteger(self::ASSIGNEE_TEAM, 10);
     parent::_addInteger(self::ASSIGNEE_USER, 10);
 }