Skip to content

Commit

Permalink
update annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Aug 17, 2024
1 parent 31eb4cd commit f6a52de
Show file tree
Hide file tree
Showing 27 changed files with 200 additions and 96 deletions.
18 changes: 11 additions & 7 deletions app/models/carrier_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ def mods_type
#
# Table name: carrier_types
#
# id :bigint not null, primary key
# name :string not null
# display_name :text
# note :text
# position :integer
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint not null, primary key
# name :string not null
# display_name :text
# note :text
# position :integer
# created_at :datetime not null
# updated_at :datetime not null
# attachment_file_name :string
# attachment_content_type :string
# attachment_file_size :bigint
# attachment_updated_at :datetime
#
14 changes: 9 additions & 5 deletions app/models/event_export_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ def export!
#
# Table name: event_export_files
#
# id :bigint not null, primary key
# user_id :bigint
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint not null, primary key
# user_id :bigint
# event_export_file_name :string
# event_export_content_type :string
# event_export_file_size :bigint
# event_export_updated_at :datetime
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
#
18 changes: 11 additions & 7 deletions app/models/inventory_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,15 @@ def found_items
#
# Table name: inventory_files
#
# id :bigint not null, primary key
# user_id :bigint
# note :text
# created_at :datetime not null
# updated_at :datetime not null
# inventory_fingerprint :string
# shelf_id :bigint
# id :bigint not null, primary key
# user_id :bigint
# note :text
# created_at :datetime not null
# updated_at :datetime not null
# inventory_file_name :string
# inventory_content_type :string
# inventory_file_size :integer
# inventory_updated_at :datetime
# inventory_fingerprint :string
# shelf_id :bigint
#
4 changes: 4 additions & 0 deletions app/models/library_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ def network_access_allowed?(ip_address, options = {})
# pub_year_facet_range_interval :integer default(10)
# user_id :bigint
# csv_charset_conversion :boolean default(FALSE), not null
# header_logo_file_name :string
# header_logo_content_type :string
# header_logo_file_size :bigint
# header_logo_updated_at :datetime
# email :string
# login_banner :text
# footer_banner :text
Expand Down
4 changes: 4 additions & 0 deletions app/models/manifestation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,10 @@ def set_custom_property(row)
# required_score :integer default(0), not null
# frequency_id :bigint default(1), not null
# subscription_master :boolean default(FALSE), not null
# attachment_file_name :string
# attachment_content_type :string
# attachment_file_size :integer
# attachment_updated_at :datetime
# nii_type_id :bigint
# title_alternative_transcription :text
# description :text
Expand Down
4 changes: 4 additions & 0 deletions app/models/picture_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ class PictureFile < ApplicationRecord
# position :integer
# created_at :datetime not null
# updated_at :datetime not null
# picture_file_name :string
# picture_content_type :string
# picture_file_size :integer
# picture_updated_at :datetime
# picture_fingerprint :string
# picture_width :integer
# picture_height :integer
Expand Down
14 changes: 9 additions & 5 deletions app/models/resource_export_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ def export!
#
# Table name: resource_export_files
#
# id :bigint not null, primary key
# user_id :bigint
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint not null, primary key
# user_id :bigint
# resource_export_file_name :string
# resource_export_content_type :string
# resource_export_file_size :bigint
# resource_export_updated_at :datetime
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
#
14 changes: 9 additions & 5 deletions app/models/user_export_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ def export!
#
# Table name: user_export_files
#
# id :bigint not null, primary key
# user_id :bigint
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint not null, primary key
# user_id :bigint
# user_export_file_name :string
# user_export_content_type :string
# user_export_file_size :bigint
# user_export_updated_at :datetime
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
#
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2024_08_16_112305) do
ActiveRecord::Schema[7.1].define(version: 2024_08_16_112305) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down Expand Up @@ -884,11 +884,11 @@
t.integer "pub_year_facet_range_interval", default: 10
t.bigint "user_id"
t.boolean "csv_charset_conversion", default: false, null: false
t.string "email"
t.string "header_logo_file_name"
t.string "header_logo_content_type"
t.bigint "header_logo_file_size"
t.datetime "header_logo_updated_at", precision: nil
t.string "email"
t.index "lower((name)::text)", name: "index_library_groups_on_lower_name", unique: true
t.index ["email"], name: "index_library_groups_on_email"
t.index ["short_name"], name: "index_library_groups_on_short_name"
Expand Down
18 changes: 11 additions & 7 deletions spec/factories/carrier_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@
#
# Table name: carrier_types
#
# id :bigint not null, primary key
# name :string not null
# display_name :text
# note :text
# position :integer
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint not null, primary key
# name :string not null
# display_name :text
# note :text
# position :integer
# created_at :datetime not null
# updated_at :datetime not null
# attachment_file_name :string
# attachment_content_type :string
# attachment_file_size :bigint
# attachment_updated_at :datetime
#
4 changes: 4 additions & 0 deletions spec/factories/manifestations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
# required_score :integer default(0), not null
# frequency_id :bigint default(1), not null
# subscription_master :boolean default(FALSE), not null
# attachment_file_name :string
# attachment_content_type :string
# attachment_file_size :integer
# attachment_updated_at :datetime
# nii_type_id :bigint
# title_alternative_transcription :text
# description :text
Expand Down
18 changes: 11 additions & 7 deletions spec/fixtures/carrier_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ carrier_type_00004:
#
# Table name: carrier_types
#
# id :bigint not null, primary key
# name :string not null
# display_name :text
# note :text
# position :integer
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint not null, primary key
# name :string not null
# display_name :text
# note :text
# position :integer
# created_at :datetime not null
# updated_at :datetime not null
# attachment_file_name :string
# attachment_content_type :string
# attachment_file_size :bigint
# attachment_updated_at :datetime
#
14 changes: 9 additions & 5 deletions spec/fixtures/event_export_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ event_export_file_00003:
#
# Table name: event_export_files
#
# id :bigint not null, primary key
# user_id :bigint
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint not null, primary key
# user_id :bigint
# event_export_file_name :string
# event_export_content_type :string
# event_export_file_size :bigint
# event_export_updated_at :datetime
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
#
18 changes: 11 additions & 7 deletions spec/fixtures/inventory_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ inventory_file_00003:
#
# Table name: inventory_files
#
# id :bigint not null, primary key
# user_id :bigint
# note :text
# created_at :datetime not null
# updated_at :datetime not null
# inventory_fingerprint :string
# shelf_id :bigint
# id :bigint not null, primary key
# user_id :bigint
# note :text
# created_at :datetime not null
# updated_at :datetime not null
# inventory_file_name :string
# inventory_content_type :string
# inventory_file_size :integer
# inventory_updated_at :datetime
# inventory_fingerprint :string
# shelf_id :bigint
#

4 changes: 4 additions & 0 deletions spec/fixtures/library_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ one:
# pub_year_facet_range_interval :integer default(10)
# user_id :bigint
# csv_charset_conversion :boolean default(FALSE), not null
# header_logo_file_name :string
# header_logo_content_type :string
# header_logo_file_size :bigint
# header_logo_updated_at :datetime
# email :string
# login_banner :text
# footer_banner :text
Expand Down
4 changes: 4 additions & 0 deletions spec/fixtures/manifestations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1870,6 +1870,10 @@ manifestation_00218:
# required_score :integer default(0), not null
# frequency_id :bigint default(1), not null
# subscription_master :boolean default(FALSE), not null
# attachment_file_name :string
# attachment_content_type :string
# attachment_file_size :integer
# attachment_updated_at :datetime
# nii_type_id :bigint
# title_alternative_transcription :text
# description :text
Expand Down
4 changes: 4 additions & 0 deletions spec/fixtures/picture_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ picture_file_00004:
# position :integer
# created_at :datetime not null
# updated_at :datetime not null
# picture_file_name :string
# picture_content_type :string
# picture_file_size :integer
# picture_updated_at :datetime
# picture_fingerprint :string
# picture_width :integer
# picture_height :integer
Expand Down
14 changes: 9 additions & 5 deletions spec/fixtures/resource_export_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ resource_export_file_00003:
#
# Table name: resource_export_files
#
# id :bigint not null, primary key
# user_id :bigint
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint not null, primary key
# user_id :bigint
# resource_export_file_name :string
# resource_export_content_type :string
# resource_export_file_size :bigint
# resource_export_updated_at :datetime
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
#
14 changes: 9 additions & 5 deletions spec/fixtures/user_export_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ user_export_file_00003:
#
# Table name: user_export_files
#
# id :bigint not null, primary key
# user_id :bigint
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint not null, primary key
# user_id :bigint
# user_export_file_name :string
# user_export_content_type :string
# user_export_file_size :bigint
# user_export_updated_at :datetime
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
#
18 changes: 11 additions & 7 deletions spec/models/carrier_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@
#
# Table name: carrier_types
#
# id :bigint not null, primary key
# name :string not null
# display_name :text
# note :text
# position :integer
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint not null, primary key
# name :string not null
# display_name :text
# note :text
# position :integer
# created_at :datetime not null
# updated_at :datetime not null
# attachment_file_name :string
# attachment_content_type :string
# attachment_file_size :bigint
# attachment_updated_at :datetime
#
14 changes: 9 additions & 5 deletions spec/models/event_export_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@
#
# Table name: event_export_files
#
# id :bigint not null, primary key
# user_id :bigint
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
# id :bigint not null, primary key
# user_id :bigint
# event_export_file_name :string
# event_export_content_type :string
# event_export_file_size :bigint
# event_export_updated_at :datetime
# executed_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
#
18 changes: 11 additions & 7 deletions spec/models/inventory_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@
#
# Table name: inventory_files
#
# id :bigint not null, primary key
# user_id :bigint
# note :text
# created_at :datetime not null
# updated_at :datetime not null
# inventory_fingerprint :string
# shelf_id :bigint
# id :bigint not null, primary key
# user_id :bigint
# note :text
# created_at :datetime not null
# updated_at :datetime not null
# inventory_file_name :string
# inventory_content_type :string
# inventory_file_size :integer
# inventory_updated_at :datetime
# inventory_fingerprint :string
# shelf_id :bigint
#
Loading

0 comments on commit f6a52de

Please sign in to comment.