Update model schemas
This commit is contained in:
parent
01f79c81cc
commit
32a52a5c7a
|
@ -2,33 +2,39 @@
|
||||||
#
|
#
|
||||||
# Table name: attachments
|
# Table name: attachments
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# container_id :integer
|
# container_id :integer
|
||||||
# container_type :string(30)
|
# container_type :string(30)
|
||||||
# filename :string(255) default(""), not null
|
# filename :string(255) default(""), not null
|
||||||
# disk_filename :string(255) default(""), not null
|
# disk_filename :string(255) default(""), not null
|
||||||
# filesize :integer default("0"), not null
|
# filesize :integer default("0"), not null
|
||||||
# content_type :string(255) default("")
|
# content_type :string(255) default("")
|
||||||
# digest :string(40) default(""), not null
|
# digest :string(60) default(""), not null
|
||||||
# downloads :integer default("0"), not null
|
# downloads :integer default("0"), not null
|
||||||
# author_id :integer default("0"), not null
|
# author_id :integer default("0"), not null
|
||||||
# created_on :datetime
|
# created_on :datetime
|
||||||
# description :text(65535)
|
# description :text(65535)
|
||||||
# disk_directory :string(255)
|
# disk_directory :string(255)
|
||||||
# attachtype :integer default("1")
|
# attachtype :integer default("1")
|
||||||
# is_public :integer default("1")
|
# is_public :integer default("1")
|
||||||
# copy_from :integer
|
# copy_from :integer
|
||||||
# quotes :integer
|
# quotes :integer default("0")
|
||||||
# is_publish :integer default("1")
|
# is_publish :integer default("1")
|
||||||
# publish_time :datetime
|
# publish_time :datetime
|
||||||
# memo_image :boolean default("0")
|
# resource_bank_id :integer
|
||||||
# extra_type :integer default("0")
|
# unified_setting :boolean default("1")
|
||||||
|
# cloud_url :string(255) default("")
|
||||||
|
# course_second_category_id :integer default("0")
|
||||||
|
# delay_publish :boolean default("0")
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_attachments_on_author_id (author_id)
|
# index_attachments_on_author_id (author_id)
|
||||||
# index_attachments_on_container_id_and_container_type (container_id,container_type)
|
# index_attachments_on_container_id_and_container_type (container_id,container_type)
|
||||||
|
# index_attachments_on_course_second_category_id (course_second_category_id)
|
||||||
# index_attachments_on_created_on (created_on)
|
# index_attachments_on_created_on (created_on)
|
||||||
|
# index_attachments_on_is_public (is_public)
|
||||||
|
# index_attachments_on_quotes (quotes)
|
||||||
#
|
#
|
||||||
|
|
||||||
class Attachment < ApplicationRecord
|
class Attachment < ApplicationRecord
|
||||||
|
|
|
@ -2,54 +2,50 @@
|
||||||
#
|
#
|
||||||
# Table name: users
|
# Table name: users
|
||||||
#
|
#
|
||||||
# id :integer not null
|
# id :integer not null
|
||||||
# login :string(255) default(""), not null
|
# login :string(255) default(""), not null
|
||||||
# hashed_password :string(40) default(""), not null
|
# hashed_password :string(40) default(""), not null
|
||||||
# firstname :string(30) default(""), not null
|
# firstname :string(30) default(""), not null
|
||||||
# lastname :string(255) default(""), not null
|
# lastname :string(255) default(""), not null
|
||||||
# mail :string(60)
|
# mail :string(60)
|
||||||
# admin :boolean default("0"), not null
|
# admin :boolean default("0"), not null
|
||||||
# status :integer default("1"), not null
|
# status :integer default("1"), not null
|
||||||
# last_login_on :datetime
|
# last_login_on :datetime
|
||||||
# language :string(5) default("")
|
# language :string(5) default("")
|
||||||
# auth_source_id :integer
|
# auth_source_id :integer
|
||||||
# created_on :datetime
|
# created_on :datetime
|
||||||
# updated_on :datetime
|
# updated_on :datetime
|
||||||
# type :string(255)
|
# type :string(255)
|
||||||
# identity_url :string(255)
|
# identity_url :string(255)
|
||||||
# mail_notification :string(255) default(""), not null
|
# mail_notification :string(255) default(""), not null
|
||||||
# salt :string(64)
|
# salt :string(64)
|
||||||
# gid :integer
|
# gid :integer
|
||||||
# visits :integer default("0")
|
# visits :integer default("0")
|
||||||
# excellent_teacher :integer default("0")
|
# excellent_teacher :integer default("0")
|
||||||
# excellent_student :integer default("0")
|
# excellent_student :integer default("0")
|
||||||
# phone :string(255)
|
# phone :string(255)
|
||||||
# authentication :boolean default("0")
|
# authentication :boolean default("0")
|
||||||
# grade :integer default("0")
|
# grade :integer default("0")
|
||||||
# experience :integer default("0")
|
# experience :integer default("0")
|
||||||
# nickname :string(255)
|
# nickname :string(255)
|
||||||
# show_realname :boolean default("1")
|
# show_realname :boolean default("1")
|
||||||
# professional_certification :boolean default("0")
|
# professional_certification :boolean default("0")
|
||||||
# ID_number :string(255)
|
# ID_number :string(255)
|
||||||
# certification :integer default("0")
|
# certification :integer default("0")
|
||||||
# homepage_teacher :boolean default("0")
|
# homepage_teacher :boolean default("0")
|
||||||
# homepage_engineer :boolean default("0")
|
# homepage_engineer :boolean default("0")
|
||||||
# is_test :integer default("0")
|
# is_test :integer default("0")
|
||||||
# ecoder_user_id :integer default("0")
|
# ecoder_user_id :integer default("0")
|
||||||
# business :boolean default("0")
|
# business :boolean default("0")
|
||||||
# profile_completed :boolean default("0")
|
# profile_completed :boolean default("0")
|
||||||
# laboratory_id :integer
|
# laboratory_id :integer
|
||||||
# platform :string(255) default("0")
|
# platform :string(255) default("0")
|
||||||
# gitea_token :string(255)
|
# gitea_token :string(255)
|
||||||
# gitea_uid :integer
|
# gitea_uid :integer
|
||||||
# is_shixun_marker :boolean default("0")
|
# is_shixun_marker :boolean default("0")
|
||||||
# is_sync_pwd :boolean default("1")
|
# is_sync_pwd :boolean default("1")
|
||||||
# watchers_count :integer default("0")
|
# watchers_count :integer default("0")
|
||||||
# visibility :string(255) default("public")
|
# devops_step :integer default("0")
|
||||||
# repo_admin_change_team_access :boolean default("1")
|
|
||||||
# is_org :boolean default("0")
|
|
||||||
# website :string(255)
|
|
||||||
# devops_step :integer default("0")
|
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -11,11 +11,6 @@
|
||||||
# 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,10 +6,6 @@
|
||||||
# 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
|
||||||
|
|
|
@ -6,10 +6,14 @@
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# praise_tread_object_id :integer
|
# praise_tread_object_id :integer
|
||||||
# praise_tread_object_type :string(255)
|
# praise_tread_object_type :string(255)
|
||||||
# praise_or_tread :integer
|
# praise_or_tread :integer default("1")
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
#
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# praise_tread (praise_tread_object_id,praise_tread_object_type)
|
||||||
|
#
|
||||||
|
|
||||||
class PraiseTread < ApplicationRecord
|
class PraiseTread < ApplicationRecord
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
|
@ -2,54 +2,50 @@
|
||||||
#
|
#
|
||||||
# Table name: users
|
# Table name: users
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# login :string(255) default(""), not null
|
# login :string(255) default(""), not null
|
||||||
# hashed_password :string(40) default(""), not null
|
# hashed_password :string(40) default(""), not null
|
||||||
# firstname :string(30) default(""), not null
|
# firstname :string(30) default(""), not null
|
||||||
# lastname :string(255) default(""), not null
|
# lastname :string(255) default(""), not null
|
||||||
# mail :string(60)
|
# mail :string(60)
|
||||||
# admin :boolean default("0"), not null
|
# admin :boolean default("0"), not null
|
||||||
# status :integer default("1"), not null
|
# status :integer default("1"), not null
|
||||||
# last_login_on :datetime
|
# last_login_on :datetime
|
||||||
# language :string(5) default("")
|
# language :string(5) default("")
|
||||||
# auth_source_id :integer
|
# auth_source_id :integer
|
||||||
# created_on :datetime
|
# created_on :datetime
|
||||||
# updated_on :datetime
|
# updated_on :datetime
|
||||||
# type :string(255)
|
# type :string(255)
|
||||||
# identity_url :string(255)
|
# identity_url :string(255)
|
||||||
# mail_notification :string(255) default(""), not null
|
# mail_notification :string(255) default(""), not null
|
||||||
# salt :string(64)
|
# salt :string(64)
|
||||||
# gid :integer
|
# gid :integer
|
||||||
# visits :integer default("0")
|
# visits :integer default("0")
|
||||||
# excellent_teacher :integer default("0")
|
# excellent_teacher :integer default("0")
|
||||||
# excellent_student :integer default("0")
|
# excellent_student :integer default("0")
|
||||||
# phone :string(255)
|
# phone :string(255)
|
||||||
# authentication :boolean default("0")
|
# authentication :boolean default("0")
|
||||||
# grade :integer default("0")
|
# grade :integer default("0")
|
||||||
# experience :integer default("0")
|
# experience :integer default("0")
|
||||||
# nickname :string(255)
|
# nickname :string(255)
|
||||||
# show_realname :boolean default("1")
|
# show_realname :boolean default("1")
|
||||||
# professional_certification :boolean default("0")
|
# professional_certification :boolean default("0")
|
||||||
# ID_number :string(255)
|
# ID_number :string(255)
|
||||||
# certification :integer default("0")
|
# certification :integer default("0")
|
||||||
# homepage_teacher :boolean default("0")
|
# homepage_teacher :boolean default("0")
|
||||||
# homepage_engineer :boolean default("0")
|
# homepage_engineer :boolean default("0")
|
||||||
# is_test :integer default("0")
|
# is_test :integer default("0")
|
||||||
# ecoder_user_id :integer default("0")
|
# ecoder_user_id :integer default("0")
|
||||||
# business :boolean default("0")
|
# business :boolean default("0")
|
||||||
# profile_completed :boolean default("0")
|
# profile_completed :boolean default("0")
|
||||||
# laboratory_id :integer
|
# laboratory_id :integer
|
||||||
# platform :string(255) default("0")
|
# platform :string(255) default("0")
|
||||||
# gitea_token :string(255)
|
# gitea_token :string(255)
|
||||||
# gitea_uid :integer
|
# gitea_uid :integer
|
||||||
# is_shixun_marker :boolean default("0")
|
# is_shixun_marker :boolean default("0")
|
||||||
# is_sync_pwd :boolean default("1")
|
# is_sync_pwd :boolean default("1")
|
||||||
# watchers_count :integer default("0")
|
# watchers_count :integer default("0")
|
||||||
# visibility :string(255) default("public")
|
# devops_step :integer default("0")
|
||||||
# repo_admin_change_team_access :boolean default("1")
|
|
||||||
# is_org :boolean default("0")
|
|
||||||
# website :string(255)
|
|
||||||
# devops_step :integer default("0")
|
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue