| @@ -6,7 +6,7 @@ | |||||
| # tracker_id :integer not null | # tracker_id :integer not null | ||||
| # project_id :integer not null | # project_id :integer not null | ||||
| # subject :string(255) default(""), not null | # subject :string(255) default(""), not null | ||||
| # description :text(4294967295) | |||||
| # description :text(65535) | |||||
| # due_date :date | # due_date :date | ||||
| # category_id :integer | # category_id :integer | ||||
| # status_id :integer not null | # status_id :integer not null | ||||
| @@ -14,6 +14,7 @@ | |||||
| # priority_id :integer not null | # priority_id :integer not null | ||||
| # fixed_version_id :integer | # fixed_version_id :integer | ||||
| # author_id :integer not null | # author_id :integer not null | ||||
| # lock_version :integer default("0"), not null | |||||
| # created_on :datetime | # created_on :datetime | ||||
| # updated_on :datetime | # updated_on :datetime | ||||
| # start_date :date | # start_date :date | ||||
| @@ -27,7 +28,7 @@ | |||||
| # closed_on :datetime | # closed_on :datetime | ||||
| # project_issues_index :integer | # project_issues_index :integer | ||||
| # issue_type :string(255) | # issue_type :string(255) | ||||
| # token :integer default("0") | |||||
| # token :string(255) | |||||
| # issue_tags_value :string(255) | # issue_tags_value :string(255) | ||||
| # is_lock :boolean default("0") | # is_lock :boolean default("0") | ||||
| # issue_classify :string(255) | # issue_classify :string(255) | ||||
| @@ -11,6 +11,11 @@ | |||||
| # sync_subject :boolean default("0") | # sync_subject :boolean default("0") | ||||
| # sync_shixun :boolean default("0") | # sync_shixun :boolean default("0") | ||||
| # | # | ||||
| # Indexes | |||||
| # | |||||
| # index_laboratories_on_identifier (identifier) UNIQUE | |||||
| # index_laboratories_on_school_id (school_id) | |||||
| # | |||||
| class Laboratory < ApplicationRecord | class Laboratory < ApplicationRecord | ||||
| belongs_to :school, optional: true | belongs_to :school, optional: true | ||||
| @@ -6,6 +6,10 @@ | |||||
| # laboratory_id :integer | # laboratory_id :integer | ||||
| # config :text(65535) | # config :text(65535) | ||||
| # | # | ||||
| # Indexes | |||||
| # | |||||
| # index_laboratory_settings_on_laboratory_id (laboratory_id) | |||||
| # | |||||
| class LaboratorySetting < ApplicationRecord | class LaboratorySetting < ApplicationRecord | ||||
| belongs_to :laboratory | belongs_to :laboratory | ||||
| @@ -7,7 +7,6 @@ | |||||
| # content :text(65535) | # content :text(65535) | ||||
| # created_at :datetime not null | # created_at :datetime not null | ||||
| # updated_at :datetime not null | # updated_at :datetime not null | ||||
| # is_secret :boolean default("0") | |||||
| # | # | ||||
| class License < ApplicationRecord | class License < ApplicationRecord | ||||
| @@ -11,7 +11,6 @@ | |||||
| # course_group_id :integer default("0") | # course_group_id :integer default("0") | ||||
| # is_collect :integer default("1") | # is_collect :integer default("1") | ||||
| # graduation_group_id :integer default("0") | # graduation_group_id :integer default("0") | ||||
| # is_apply_signature :boolean default("0") | |||||
| # | # | ||||
| # Indexes | # Indexes | ||||
| # | # | ||||
| @@ -4,7 +4,7 @@ | |||||
| # | # | ||||
| # id :integer not null, primary key | # id :integer not null, primary key | ||||
| # name :string(255) default(""), not null | # name :string(255) default(""), not null | ||||
| # description :text(4294967295) | |||||
| # description :text(65535) | |||||
| # homepage :string(255) default("") | # homepage :string(255) default("") | ||||
| # is_public :boolean default("1"), not null | # is_public :boolean default("1"), not null | ||||
| # parent_id :integer | # parent_id :integer | ||||
| @@ -43,17 +43,6 @@ | |||||
| # watchers_count :integer default("0") | # watchers_count :integer default("0") | ||||
| # issues_count :integer default("0") | # issues_count :integer default("0") | ||||
| # pull_requests_count :integer default("0") | # pull_requests_count :integer default("0") | ||||
| # language :string(255) | |||||
| # versions_count :integer default("0") | |||||
| # issue_tags_count :integer default("0") | |||||
| # closed_issues_count :integer default("0") | |||||
| # open_devops :boolean default("0") | |||||
| # gitea_webhook_id :integer | |||||
| # open_devops_count :integer default("0") | |||||
| # recommend :boolean default("0") | |||||
| # platform :integer default("0") | |||||
| # default_branch :string(255) default("master") | |||||
| # website :string(255) | |||||
| # | # | ||||
| # Indexes | # Indexes | ||||
| # | # | ||||
| @@ -16,11 +16,6 @@ | |||||
| # head :string(255) | # head :string(255) | ||||
| # base :string(255) | # base :string(255) | ||||
| # issue_id :integer | # issue_id :integer | ||||
| # fork_project_id :integer | |||||
| # is_original :boolean default("0") | |||||
| # comments_count :integer default("0") | |||||
| # commits_count :integer default("0") | |||||
| # files_count :integer default("0") | |||||
| # | # | ||||
| class PullRequest < ApplicationRecord | class PullRequest < ApplicationRecord | ||||
| @@ -58,7 +58,7 @@ class Site < ApplicationRecord | |||||
| commons = [ | commons = [ | ||||
| {name: '通知', key: 'notice', url: '/users/current_user/user_messages'}, | {name: '通知', key: 'notice', url: '/users/current_user/user_messages'}, | ||||
| {name: '找回密码', key: 'lost_password', url: '/account/lost_password'}, | {name: '找回密码', key: 'lost_password', url: '/account/lost_password'}, | ||||
| {name: '注册', key: 'register', url: '/login?login=false'} | |||||
| {name: '注册', key: 'register', url: '/register'} | |||||
| ] | ] | ||||
| commons.each { |ele| | commons.each { |ele| | ||||