Browse Source

FIX models schema

tags/v3.0.2
jasder 5 years ago
parent
commit
be6bb690d2
8 changed files with 14 additions and 22 deletions
  1. +3
    -2
      app/models/issue.rb
  2. +5
    -0
      app/models/laboratory.rb
  3. +4
    -0
      app/models/laboratory_setting.rb
  4. +0
    -1
      app/models/license.rb
  5. +0
    -1
      app/models/member.rb
  6. +1
    -12
      app/models/project.rb
  7. +0
    -5
      app/models/pull_request.rb
  8. +1
    -1
      app/models/site.rb

+ 3
- 2
app/models/issue.rb View File

@@ -6,7 +6,7 @@
# tracker_id :integer not null
# project_id :integer not null
# subject :string(255) default(""), not null
# description :text(4294967295)
# description :text(65535)
# due_date :date
# category_id :integer
# status_id :integer not null
@@ -14,6 +14,7 @@
# priority_id :integer not null
# fixed_version_id :integer
# author_id :integer not null
# lock_version :integer default("0"), not null
# created_on :datetime
# updated_on :datetime
# start_date :date
@@ -27,7 +28,7 @@
# closed_on :datetime
# project_issues_index :integer
# issue_type :string(255)
# token :integer default("0")
# token :string(255)
# issue_tags_value :string(255)
# is_lock :boolean default("0")
# issue_classify :string(255)


+ 5
- 0
app/models/laboratory.rb View File

@@ -11,6 +11,11 @@
# sync_subject :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
belongs_to :school, optional: true


+ 4
- 0
app/models/laboratory_setting.rb View File

@@ -6,6 +6,10 @@
# laboratory_id :integer
# config :text(65535)
#
# Indexes
#
# index_laboratory_settings_on_laboratory_id (laboratory_id)
#

class LaboratorySetting < ApplicationRecord
belongs_to :laboratory


+ 0
- 1
app/models/license.rb View File

@@ -7,7 +7,6 @@
# content :text(65535)
# created_at :datetime not null
# updated_at :datetime not null
# is_secret :boolean default("0")
#

class License < ApplicationRecord


+ 0
- 1
app/models/member.rb View File

@@ -11,7 +11,6 @@
# course_group_id :integer default("0")
# is_collect :integer default("1")
# graduation_group_id :integer default("0")
# is_apply_signature :boolean default("0")
#
# Indexes
#


+ 1
- 12
app/models/project.rb View File

@@ -4,7 +4,7 @@
#
# id :integer not null, primary key
# name :string(255) default(""), not null
# description :text(4294967295)
# description :text(65535)
# homepage :string(255) default("")
# is_public :boolean default("1"), not null
# parent_id :integer
@@ -43,17 +43,6 @@
# watchers_count :integer default("0")
# issues_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
#


+ 0
- 5
app/models/pull_request.rb View File

@@ -16,11 +16,6 @@
# head :string(255)
# base :string(255)
# 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


+ 1
- 1
app/models/site.rb View File

@@ -58,7 +58,7 @@ class Site < ApplicationRecord
commons = [
{name: '通知', key: 'notice', url: '/users/current_user/user_messages'},
{name: '找回密码', key: 'lost_password', url: '/account/lost_password'},
{name: '注册', key: 'register', url: '/login?login=false'}
{name: '注册', key: 'register', url: '/register'}
]

commons.each { |ele|


Loading…
Cancel
Save