Merge commit 'bf32befcc21831b31f684795bb211b2f1f4cfb6d' into glitch-soc/merge-upstream

Conflicts:
- `app/models/status.rb`:
  Upstream reordered model annotations, while glitch-soc has extra columns.
  Reordered as upstream did.
- `app/models/status_edit.rb`:
  Upstream reordered model annotations, while glitch-soc has extra columns.
  Reordered as upstream did.
This commit is contained in:
Claire
2026-03-12 19:01:28 +01:00
64 changed files with 221 additions and 221 deletions

View File

@@ -5,12 +5,12 @@
# Table name: account_migrations # Table name: account_migrations
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8)
# acct :string default(""), not null # acct :string default(""), not null
# followers_count :bigint(8) default(0), not null # followers_count :bigint(8) default(0), not null
# target_account_id :bigint(8)
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8)
# target_account_id :bigint(8)
# #
class AccountMigration < ApplicationRecord class AccountMigration < ApplicationRecord

View File

@@ -6,10 +6,10 @@
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# content :text not null # content :text not null
# account_id :bigint(8) not null
# target_account_id :bigint(8) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# target_account_id :bigint(8) not null
# #
class AccountModerationNote < ApplicationRecord class AccountModerationNote < ApplicationRecord

View File

@@ -6,12 +6,12 @@
# Table name: account_relationship_severance_events # Table name: account_relationship_severance_events
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# relationship_severance_event_id :bigint(8) not null
# created_at :datetime not null
# updated_at :datetime not null
# followers_count :integer default(0), not null # followers_count :integer default(0), not null
# following_count :integer default(0), not null # following_count :integer default(0), not null
# created_at :datetime not null
# updated_at :datetime not null
# account_id :bigint(8) not null
# relationship_severance_event_id :bigint(8) not null
# #
class AccountRelationshipSeveranceEvent < ApplicationRecord class AccountRelationshipSeveranceEvent < ApplicationRecord
self.ignored_columns += %w( self.ignored_columns += %w(

View File

@@ -5,13 +5,13 @@
# Table name: account_stats # Table name: account_stats
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# statuses_count :bigint(8) default(0), not null
# following_count :bigint(8) default(0), not null
# followers_count :bigint(8) default(0), not null # followers_count :bigint(8) default(0), not null
# following_count :bigint(8) default(0), not null
# last_status_at :datetime
# statuses_count :bigint(8) default(0), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# last_status_at :datetime # account_id :bigint(8) not null
# #
class AccountStat < ApplicationRecord class AccountStat < ApplicationRecord

View File

@@ -5,19 +5,19 @@
# Table name: account_statuses_cleanup_policies # Table name: account_statuses_cleanup_policies
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# enabled :boolean default(TRUE), not null # enabled :boolean default(TRUE), not null
# min_status_age :integer default(1209600), not null
# keep_direct :boolean default(TRUE), not null # keep_direct :boolean default(TRUE), not null
# keep_media :boolean default(FALSE), not null
# keep_pinned :boolean default(TRUE), not null # keep_pinned :boolean default(TRUE), not null
# keep_polls :boolean default(FALSE), not null # keep_polls :boolean default(FALSE), not null
# keep_media :boolean default(FALSE), not null
# keep_self_fav :boolean default(TRUE), not null
# keep_self_bookmark :boolean default(TRUE), not null # keep_self_bookmark :boolean default(TRUE), not null
# keep_self_fav :boolean default(TRUE), not null
# min_favs :integer # min_favs :integer
# min_reblogs :integer # min_reblogs :integer
# min_status_age :integer default(1209600), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# #
class AccountStatusesCleanupPolicy < ApplicationRecord class AccountStatusesCleanupPolicy < ApplicationRecord
include Redisable include Redisable

View File

@@ -4,9 +4,9 @@
# #
# Table name: account_summaries # Table name: account_summaries
# #
# account_id :bigint(8) primary key
# language :string # language :string
# sensitive :boolean # sensitive :boolean
# account_id :bigint(8) primary key
# #
class AccountSummary < ApplicationRecord class AccountSummary < ApplicationRecord

View File

@@ -5,15 +5,15 @@
# Table name: account_warnings # Table name: account_warnings
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8)
# target_account_id :bigint(8)
# action :integer default("none"), not null # action :integer default("none"), not null
# overruled_at :datetime
# status_ids :string is an Array
# text :text default(""), not null # text :text default(""), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8)
# report_id :bigint(8) # report_id :bigint(8)
# status_ids :string is an Array # target_account_id :bigint(8)
# overruled_at :datetime
# #
class AccountWarning < ApplicationRecord class AccountWarning < ApplicationRecord

View File

@@ -6,9 +6,9 @@
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# text :text default(""), not null # text :text default(""), not null
# title :string default(""), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# title :string default(""), not null
# #
class AccountWarningPreset < ApplicationRecord class AccountWarningPreset < ApplicationRecord

View File

@@ -5,9 +5,9 @@
# Table name: annual_report_statuses_per_account_counts # Table name: annual_report_statuses_per_account_counts
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# statuses_count :bigint(8) not null
# year :integer not null # year :integer not null
# account_id :bigint(8) not null # account_id :bigint(8) not null
# statuses_count :bigint(8) not null
# #
class AnnualReport::StatusesPerAccountCount < ApplicationRecord class AnnualReport::StatusesPerAccountCount < ApplicationRecord

View File

@@ -5,15 +5,15 @@
# Table name: appeals # Table name: appeals
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# account_warning_id :bigint(8) not null
# text :text default(""), not null
# approved_at :datetime # approved_at :datetime
# approved_by_account_id :bigint(8)
# rejected_at :datetime # rejected_at :datetime
# rejected_by_account_id :bigint(8) # text :text default(""), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# account_warning_id :bigint(8) not null
# approved_by_account_id :bigint(8)
# rejected_by_account_id :bigint(8)
# #
class Appeal < ApplicationRecord class Appeal < ApplicationRecord
TEXT_LENGTH_LIMIT = 2_000 TEXT_LENGTH_LIMIT = 2_000

View File

@@ -5,14 +5,14 @@
# Table name: backups # Table name: backups
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# user_id :bigint(8)
# dump_file_name :string
# dump_content_type :string # dump_content_type :string
# dump_file_name :string
# dump_file_size :bigint(8)
# dump_updated_at :datetime # dump_updated_at :datetime
# processed :boolean default(FALSE), not null # processed :boolean default(FALSE), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# dump_file_size :bigint(8) # user_id :bigint(8)
# #
class Backup < ApplicationRecord class Backup < ApplicationRecord

View File

@@ -5,11 +5,11 @@
# Table name: blocks # Table name: blocks
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# uri :string
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null # account_id :bigint(8) not null
# target_account_id :bigint(8) not null # target_account_id :bigint(8) not null
# uri :string
# #
class Block < ApplicationRecord class Block < ApplicationRecord

View File

@@ -5,10 +5,10 @@
# Table name: bookmarks # Table name: bookmarks
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# status_id :bigint(8) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# status_id :bigint(8) not null
# #
class Bookmark < ApplicationRecord class Bookmark < ApplicationRecord

View File

@@ -5,18 +5,18 @@
# Table name: bulk_imports # Table name: bulk_imports
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# type :integer not null
# state :integer not null
# total_items :integer default(0), not null
# imported_items :integer default(0), not null
# processed_items :integer default(0), not null
# finished_at :datetime # finished_at :datetime
# overwrite :boolean default(FALSE), not null # imported_items :integer default(0), not null
# likely_mismatched :boolean default(FALSE), not null # likely_mismatched :boolean default(FALSE), not null
# original_filename :string default(""), not null # original_filename :string default(""), not null
# account_id :bigint(8) not null # overwrite :boolean default(FALSE), not null
# processed_items :integer default(0), not null
# state :integer not null
# total_items :integer default(0), not null
# type :integer not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# #
class BulkImport < ApplicationRecord class BulkImport < ApplicationRecord
self.inheritance_column = false self.inheritance_column = false

View File

@@ -5,10 +5,10 @@
# Table name: bulk_import_rows # Table name: bulk_import_rows
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# bulk_import_id :bigint(8) not null
# data :jsonb # data :jsonb
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# bulk_import_id :bigint(8) not null
# #
class BulkImportRow < ApplicationRecord class BulkImportRow < ApplicationRecord
belongs_to :bulk_import belongs_to :bulk_import

View File

@@ -6,9 +6,9 @@
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# canonical_email_hash :string default(""), not null # canonical_email_hash :string default(""), not null
# reference_account_id :bigint(8)
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# reference_account_id :bigint(8)
# #
class CanonicalEmailBlock < ApplicationRecord class CanonicalEmailBlock < ApplicationRecord

View File

@@ -5,8 +5,8 @@
# Table name: conversation_mutes # Table name: conversation_mutes
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# conversation_id :bigint(8) not null
# account_id :bigint(8) not null # account_id :bigint(8) not null
# conversation_id :bigint(8) not null
# #
class ConversationMute < ApplicationRecord class ConversationMute < ApplicationRecord

View File

@@ -5,20 +5,20 @@
# Table name: custom_emojis # Table name: custom_emojis
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# shortcode :string default(""), not null # disabled :boolean default(FALSE), not null
# domain :string # domain :string
# image_file_name :string
# image_content_type :string # image_content_type :string
# image_file_name :string
# image_file_size :integer # image_file_size :integer
# image_remote_url :string
# image_storage_schema_version :integer
# image_updated_at :datetime # image_updated_at :datetime
# shortcode :string default(""), not null
# uri :string
# visible_in_picker :boolean default(TRUE), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# disabled :boolean default(FALSE), not null
# uri :string
# image_remote_url :string
# visible_in_picker :boolean default(TRUE), not null
# category_id :bigint(8) # category_id :bigint(8)
# image_storage_schema_version :integer
# #
class CustomEmoji < ApplicationRecord class CustomEmoji < ApplicationRecord

View File

@@ -5,11 +5,11 @@
# Table name: custom_filter_keywords # Table name: custom_filter_keywords
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# custom_filter_id :bigint(8) not null
# keyword :text default(""), not null # keyword :text default(""), not null
# whole_word :boolean default(TRUE), not null # whole_word :boolean default(TRUE), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# custom_filter_id :bigint(8) not null
# #
class CustomFilterKeyword < ApplicationRecord class CustomFilterKeyword < ApplicationRecord

View File

@@ -5,10 +5,10 @@
# Table name: custom_filter_statuses # Table name: custom_filter_statuses
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# custom_filter_id :bigint(8) not null
# status_id :bigint(8) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# custom_filter_id :bigint(8) not null
# status_id :bigint(8) not null
# #
class CustomFilterStatus < ApplicationRecord class CustomFilterStatus < ApplicationRecord

View File

@@ -6,14 +6,14 @@
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# domain :string default(""), not null # domain :string default(""), not null
# created_at :datetime not null # obfuscate :boolean default(FALSE), not null
# updated_at :datetime not null
# severity :integer default("silence")
# reject_media :boolean default(FALSE), not null
# reject_reports :boolean default(FALSE), not null
# private_comment :text # private_comment :text
# public_comment :text # public_comment :text
# obfuscate :boolean default(FALSE), not null # reject_media :boolean default(FALSE), not null
# reject_reports :boolean default(FALSE), not null
# severity :integer default("silence")
# created_at :datetime not null
# updated_at :datetime not null
# #
class DomainBlock < ApplicationRecord class DomainBlock < ApplicationRecord

View File

@@ -5,11 +5,11 @@
# Table name: email_domain_blocks # Table name: email_domain_blocks
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# allow_with_approval :boolean default(FALSE), not null
# domain :string default(""), not null # domain :string default(""), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# parent_id :bigint(8) # parent_id :bigint(8)
# allow_with_approval :boolean default(FALSE), not null
# #
class EmailDomainBlock < ApplicationRecord class EmailDomainBlock < ApplicationRecord

View File

@@ -5,13 +5,13 @@
# Table name: featured_tags # Table name: featured_tags
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# tag_id :bigint(8) not null
# statuses_count :bigint(8) default(0), not null
# last_status_at :datetime # last_status_at :datetime
# name :string
# statuses_count :bigint(8) default(0), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# name :string # account_id :bigint(8) not null
# tag_id :bigint(8) not null
# #
class FeaturedTag < ApplicationRecord class FeaturedTag < ApplicationRecord

View File

@@ -5,14 +5,14 @@
# Table name: follows # Table name: follows
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# languages :string is an Array
# notify :boolean default(FALSE), not null
# show_reblogs :boolean default(TRUE), not null
# uri :string
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null # account_id :bigint(8) not null
# target_account_id :bigint(8) not null # target_account_id :bigint(8) not null
# show_reblogs :boolean default(TRUE), not null
# uri :string
# notify :boolean default(FALSE), not null
# languages :string is an Array
# #
class Follow < ApplicationRecord class Follow < ApplicationRecord

View File

@@ -4,9 +4,9 @@
# #
# Table name: global_follow_recommendations # Table name: global_follow_recommendations
# #
# account_id :bigint(8) primary key
# rank :decimal(, ) # rank :decimal(, )
# reason :text is an Array # reason :text is an Array
# account_id :bigint(8) primary key
# #
class FollowRecommendation < ApplicationRecord class FollowRecommendation < ApplicationRecord

View File

@@ -5,10 +5,10 @@
# Table name: follow_recommendation_mutes # Table name: follow_recommendation_mutes
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# target_account_id :bigint(8) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# target_account_id :bigint(8) not null
# #
class FollowRecommendationMute < ApplicationRecord class FollowRecommendationMute < ApplicationRecord
belongs_to :account belongs_to :account

View File

@@ -5,9 +5,9 @@
# Table name: follow_recommendation_suppressions # Table name: follow_recommendation_suppressions
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# #
class FollowRecommendationSuppression < ApplicationRecord class FollowRecommendationSuppression < ApplicationRecord

View File

@@ -5,14 +5,14 @@
# Table name: follow_requests # Table name: follow_requests
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# languages :string is an Array
# notify :boolean default(FALSE), not null
# show_reblogs :boolean default(TRUE), not null
# uri :string
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null # account_id :bigint(8) not null
# target_account_id :bigint(8) not null # target_account_id :bigint(8) not null
# show_reblogs :boolean default(TRUE), not null
# uri :string
# notify :boolean default(FALSE), not null
# languages :string is an Array
# #
class FollowRequest < ApplicationRecord class FollowRequest < ApplicationRecord

View File

@@ -4,11 +4,11 @@
# #
# Table name: identities # Table name: identities
# #
# id :bigint(8) not null, primary key
# provider :string default(""), not null # provider :string default(""), not null
# uid :string default(""), not null # uid :string default(""), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# id :bigint(8) not null, primary key
# user_id :bigint(8) # user_id :bigint(8)
# #

View File

@@ -4,8 +4,8 @@
# #
# Table name: instances # Table name: instances
# #
# domain :string primary key
# accounts_count :bigint(8) # accounts_count :bigint(8)
# domain :string primary key
# #
class Instance < ApplicationRecord class Instance < ApplicationRecord

View File

@@ -5,15 +5,15 @@
# Table name: invites # Table name: invites
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# user_id :bigint(8) not null # autofollow :boolean default(FALSE), not null
# code :string default(""), not null # code :string default(""), not null
# comment :text
# expires_at :datetime # expires_at :datetime
# max_uses :integer # max_uses :integer
# uses :integer default(0), not null # uses :integer default(0), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# autofollow :boolean default(FALSE), not null # user_id :bigint(8) not null
# comment :text
# #
class Invite < ApplicationRecord class Invite < ApplicationRecord

View File

@@ -5,12 +5,12 @@
# Table name: ip_blocks # Table name: ip_blocks
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# created_at :datetime not null # comment :text default(""), not null
# updated_at :datetime not null
# expires_at :datetime # expires_at :datetime
# ip :inet default(#<IPAddr: IPv4:0.0.0.0/255.255.255.255>), not null # ip :inet default(#<IPAddr: IPv4:0.0.0.0/255.255.255.255>), not null
# severity :integer default(NULL), not null # severity :integer default(NULL), not null
# comment :text default(""), not null # created_at :datetime not null
# updated_at :datetime not null
# #
class IpBlock < ApplicationRecord class IpBlock < ApplicationRecord

View File

@@ -5,12 +5,12 @@
# Table name: lists # Table name: lists
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null # exclusive :boolean default(FALSE), not null
# replies_policy :integer default("list"), not null
# title :string default(""), not null # title :string default(""), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# replies_policy :integer default("list"), not null # account_id :bigint(8) not null
# exclusive :boolean default(FALSE), not null
# #
class List < ApplicationRecord class List < ApplicationRecord

View File

@@ -5,10 +5,10 @@
# Table name: list_accounts # Table name: list_accounts
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# list_id :bigint(8) not null
# account_id :bigint(8) not null # account_id :bigint(8) not null
# follow_id :bigint(8) # follow_id :bigint(8)
# follow_request_id :bigint(8) # follow_request_id :bigint(8)
# list_id :bigint(8) not null
# #
class ListAccount < ApplicationRecord class ListAccount < ApplicationRecord

View File

@@ -5,14 +5,14 @@
# Table name: login_activities # Table name: login_activities
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# user_id :bigint(8) not null
# authentication_method :string # authentication_method :string
# provider :string
# success :boolean
# failure_reason :string # failure_reason :string
# ip :inet # ip :inet
# provider :string
# success :boolean
# user_agent :string # user_agent :string
# created_at :datetime # created_at :datetime
# user_id :bigint(8) not null
# #
class LoginActivity < ApplicationRecord class LoginActivity < ApplicationRecord

View File

@@ -5,11 +5,11 @@
# Table name: mentions # Table name: mentions
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# status_id :bigint(8) not null # silent :boolean default(FALSE), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null # account_id :bigint(8) not null
# silent :boolean default(FALSE), not null # status_id :bigint(8) not null
# #
class Mention < ApplicationRecord class Mention < ApplicationRecord

View File

@@ -5,12 +5,12 @@
# Table name: mutes # Table name: mutes
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# expires_at :datetime
# hide_notifications :boolean default(TRUE), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null # account_id :bigint(8) not null
# target_account_id :bigint(8) not null # target_account_id :bigint(8) not null
# hide_notifications :boolean default(TRUE), not null
# expires_at :datetime
# #
class Mute < ApplicationRecord class Mute < ApplicationRecord

View File

@@ -5,15 +5,15 @@
# Table name: notifications # Table name: notifications
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# activity_id :bigint(8) not null
# activity_type :string not null # activity_type :string not null
# filtered :boolean default(FALSE), not null
# group_key :string
# type :string
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null # account_id :bigint(8) not null
# activity_id :bigint(8) not null
# from_account_id :bigint(8) not null # from_account_id :bigint(8) not null
# type :string
# filtered :boolean default(FALSE), not null
# group_key :string
# #
class Notification < ApplicationRecord class Notification < ApplicationRecord

View File

@@ -5,10 +5,10 @@
# Table name: notification_permissions # Table name: notification_permissions
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# from_account_id :bigint(8) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# from_account_id :bigint(8) not null
# #
class NotificationPermission < ApplicationRecord class NotificationPermission < ApplicationRecord
belongs_to :account belongs_to :account

View File

@@ -5,14 +5,14 @@
# Table name: notification_policies # Table name: notification_policies
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null # for_limited_accounts :integer default("filter"), not null
# for_new_accounts :integer default("accept"), not null
# for_not_followers :integer default("accept"), not null
# for_not_following :integer default("accept"), not null
# for_private_mentions :integer default("filter"), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# for_not_following :integer default("accept"), not null # account_id :bigint(8) not null
# for_not_followers :integer default("accept"), not null
# for_new_accounts :integer default("accept"), not null
# for_private_mentions :integer default("filter"), not null
# for_limited_accounts :integer default("filter"), not null
# #
class NotificationPolicy < ApplicationRecord class NotificationPolicy < ApplicationRecord

View File

@@ -5,12 +5,12 @@
# Table name: notification_requests # Table name: notification_requests
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# from_account_id :bigint(8) not null
# last_status_id :bigint(8)
# notifications_count :bigint(8) default(0), not null # notifications_count :bigint(8) default(0), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# from_account_id :bigint(8) not null
# last_status_id :bigint(8)
# #
class NotificationRequest < ApplicationRecord class NotificationRequest < ApplicationRecord

View File

@@ -5,33 +5,33 @@
# Table name: preview_cards # Table name: preview_cards
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# url :string default(""), not null
# title :string default(""), not null
# description :string default(""), not null
# image_file_name :string
# image_content_type :string
# image_file_size :integer
# image_updated_at :datetime
# type :integer default("link"), not null
# html :text default(""), not null
# author_name :string default(""), not null # author_name :string default(""), not null
# author_url :string default(""), not null # author_url :string default(""), not null
# provider_name :string default(""), not null
# provider_url :string default(""), not null
# width :integer default(0), not null
# height :integer default(0), not null
# created_at :datetime not null
# updated_at :datetime not null
# embed_url :string default(""), not null
# image_storage_schema_version :integer
# blurhash :string # blurhash :string
# description :string default(""), not null
# embed_url :string default(""), not null
# height :integer default(0), not null
# html :text default(""), not null
# image_content_type :string
# image_description :string default(""), not null
# image_file_name :string
# image_file_size :integer
# image_storage_schema_version :integer
# image_updated_at :datetime
# language :string # language :string
# link_type :integer
# max_score :float # max_score :float
# max_score_at :datetime # max_score_at :datetime
# trendable :boolean # provider_name :string default(""), not null
# link_type :integer # provider_url :string default(""), not null
# published_at :datetime # published_at :datetime
# image_description :string default(""), not null # title :string default(""), not null
# trendable :boolean
# type :integer default("link"), not null
# url :string default(""), not null
# width :integer default(0), not null
# created_at :datetime not null
# updated_at :datetime not null
# author_account_id :bigint(8) # author_account_id :bigint(8)
# unverified_author_account_id :bigint(8) # unverified_author_account_id :bigint(8)
# #

View File

@@ -6,13 +6,13 @@
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# domain :string default(""), not null # domain :string default(""), not null
# icon_file_name :string
# icon_content_type :string # icon_content_type :string
# icon_file_name :string
# icon_file_size :bigint(8) # icon_file_size :bigint(8)
# icon_updated_at :datetime # icon_updated_at :datetime
# trendable :boolean
# reviewed_at :datetime
# requested_review_at :datetime # requested_review_at :datetime
# reviewed_at :datetime
# trendable :boolean
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# #

View File

@@ -5,11 +5,11 @@
# Table name: preview_card_trends # Table name: preview_card_trends
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# preview_card_id :bigint(8) not null
# score :float default(0.0), not null
# rank :integer default(0), not null
# allowed :boolean default(FALSE), not null # allowed :boolean default(FALSE), not null
# language :string # language :string
# rank :integer default(0), not null
# score :float default(0.0), not null
# preview_card_id :bigint(8) not null
# #
class PreviewCardTrend < ApplicationRecord class PreviewCardTrend < ApplicationRecord
include RankedTrend include RankedTrend

View File

@@ -4,9 +4,9 @@
# #
# Table name: preview_cards_statuses # Table name: preview_cards_statuses
# #
# url :string
# preview_card_id :bigint(8) not null, primary key # preview_card_id :bigint(8) not null, primary key
# status_id :bigint(8) not null, primary key # status_id :bigint(8) not null, primary key
# url :string
# #
class PreviewCardsStatus < ApplicationRecord class PreviewCardsStatus < ApplicationRecord
self.primary_key = [:preview_card_id, :status_id] self.primary_key = [:preview_card_id, :status_id]

View File

@@ -5,9 +5,9 @@
# Table name: relationship_severance_events # Table name: relationship_severance_events
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# type :integer not null
# target_name :string not null
# purged :boolean default(FALSE), not null # purged :boolean default(FALSE), not null
# target_name :string not null
# type :integer not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# #

View File

@@ -6,10 +6,10 @@
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# inbox_url :string default(""), not null # inbox_url :string default(""), not null
# follow_activity_id :string # state :integer default("idle"), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# state :integer default("idle"), not null # follow_activity_id :string
# #
class Relay < ApplicationRecord class Relay < ApplicationRecord

View File

@@ -5,20 +5,20 @@
# Table name: reports # Table name: reports
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# status_ids :bigint(8) default([]), not null, is an Array # action_taken_at :datetime
# category :integer default("other"), not null
# comment :text default(""), not null # comment :text default(""), not null
# forwarded :boolean
# rule_ids :bigint(8) is an Array
# status_ids :bigint(8) default([]), not null, is an Array
# uri :string
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null # account_id :bigint(8) not null
# action_taken_by_account_id :bigint(8) # action_taken_by_account_id :bigint(8)
# target_account_id :bigint(8) not null
# assigned_account_id :bigint(8)
# uri :string
# forwarded :boolean
# category :integer default("other"), not null
# action_taken_at :datetime
# rule_ids :bigint(8) is an Array
# application_id :bigint(8) # application_id :bigint(8)
# assigned_account_id :bigint(8)
# target_account_id :bigint(8) not null
# #
class Report < ApplicationRecord class Report < ApplicationRecord

View File

@@ -6,10 +6,10 @@
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# content :text not null # content :text not null
# report_id :bigint(8) not null
# account_id :bigint(8) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# report_id :bigint(8) not null
# #
class ReportNote < ApplicationRecord class ReportNote < ApplicationRecord

View File

@@ -5,12 +5,12 @@
# Table name: rules # Table name: rules
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# priority :integer default(0), not null
# deleted_at :datetime # deleted_at :datetime
# hint :text default(""), not null
# priority :integer default(0), not null
# text :text default(""), not null # text :text default(""), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# hint :text default(""), not null
# #
class Rule < ApplicationRecord class Rule < ApplicationRecord
include Discard::Model include Discard::Model

View File

@@ -5,12 +5,12 @@
# Table name: session_activations # Table name: session_activations
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# session_id :string not null # ip :inet
# user_agent :string default(""), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# user_agent :string default(""), not null
# ip :inet
# access_token_id :bigint(8) # access_token_id :bigint(8)
# session_id :string not null
# user_id :bigint(8) not null # user_id :bigint(8) not null
# web_push_subscription_id :bigint(8) # web_push_subscription_id :bigint(8)
# #

View File

@@ -5,8 +5,8 @@
# Table name: settings # Table name: settings
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# var :string not null
# value :text # value :text
# var :string not null
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
# #

View File

@@ -5,15 +5,15 @@
# Table name: severed_relationships # Table name: severed_relationships
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# relationship_severance_event_id :bigint(8) not null
# local_account_id :bigint(8) not null
# remote_account_id :bigint(8) not null
# direction :integer not null # direction :integer not null
# show_reblogs :boolean
# notify :boolean
# languages :string is an Array # languages :string is an Array
# notify :boolean
# show_reblogs :boolean
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# local_account_id :bigint(8) not null
# relationship_severance_event_id :bigint(8) not null
# remote_account_id :bigint(8) not null
# #
class SeveredRelationship < ApplicationRecord class SeveredRelationship < ApplicationRecord
belongs_to :relationship_severance_event belongs_to :relationship_severance_event

View File

@@ -5,15 +5,15 @@
# Table name: site_uploads # Table name: site_uploads
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# var :string default(""), not null # blurhash :string
# file_file_name :string
# file_content_type :string # file_content_type :string
# file_file_name :string
# file_file_size :integer # file_file_size :integer
# file_updated_at :datetime # file_updated_at :datetime
# meta :json # meta :json
# var :string default(""), not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# blurhash :string
# #
class SiteUpload < ApplicationRecord class SiteUpload < ApplicationRecord

View File

@@ -5,10 +5,10 @@
# Table name: software_updates # Table name: software_updates
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# version :string not null
# urgent :boolean default(FALSE), not null
# type :integer default("patch"), not null
# release_notes :string default(""), not null # release_notes :string default(""), not null
# type :integer default("patch"), not null
# urgent :boolean default(FALSE), not null
# version :string not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# #

View File

@@ -5,32 +5,32 @@
# Table name: statuses # Table name: statuses
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# uri :string
# text :text default(""), not null
# created_at :datetime not null
# updated_at :datetime not null
# in_reply_to_id :bigint(8)
# reblog_of_id :bigint(8)
# url :string
# sensitive :boolean default(FALSE), not null
# visibility :integer default("public"), not null
# spoiler_text :text default(""), not null
# reply :boolean default(FALSE), not null
# language :string
# conversation_id :bigint(8)
# local :boolean
# account_id :bigint(8) not null
# application_id :bigint(8)
# in_reply_to_account_id :bigint(8)
# local_only :boolean
# poll_id :bigint(8)
# content_type :string # content_type :string
# deleted_at :datetime # deleted_at :datetime
# edited_at :datetime # edited_at :datetime
# trendable :boolean
# ordered_media_attachment_ids :bigint(8) is an Array
# fetched_replies_at :datetime # fetched_replies_at :datetime
# language :string
# local :boolean
# local_only :boolean
# ordered_media_attachment_ids :bigint(8) is an Array
# quote_approval_policy :integer default(0), not null # quote_approval_policy :integer default(0), not null
# reply :boolean default(FALSE), not null
# sensitive :boolean default(FALSE), not null
# spoiler_text :text default(""), not null
# text :text default(""), not null
# trendable :boolean
# uri :string
# url :string
# visibility :integer default("public"), not null
# created_at :datetime not null
# updated_at :datetime not null
# account_id :bigint(8) not null
# application_id :bigint(8)
# conversation_id :bigint(8)
# in_reply_to_account_id :bigint(8)
# in_reply_to_id :bigint(8)
# poll_id :bigint(8)
# reblog_of_id :bigint(8)
# #
class Status < ApplicationRecord class Status < ApplicationRecord

View File

@@ -5,18 +5,18 @@
# Table name: status_edits # Table name: status_edits
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# status_id :bigint(8) not null
# account_id :bigint(8)
# text :text default(""), not null
# spoiler_text :text default(""), not null
# created_at :datetime not null
# updated_at :datetime not null
# content_type :string # content_type :string
# ordered_media_attachment_ids :bigint(8) is an Array
# media_descriptions :text is an Array # media_descriptions :text is an Array
# ordered_media_attachment_ids :bigint(8) is an Array
# poll_options :string is an Array # poll_options :string is an Array
# sensitive :boolean # sensitive :boolean
# spoiler_text :text default(""), not null
# text :text default(""), not null
# created_at :datetime not null
# updated_at :datetime not null
# account_id :bigint(8)
# quote_id :bigint(8) # quote_id :bigint(8)
# status_id :bigint(8) not null
# #
class StatusEdit < ApplicationRecord class StatusEdit < ApplicationRecord

View File

@@ -5,10 +5,10 @@
# Table name: status_pins # Table name: status_pins
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# status_id :bigint(8) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# status_id :bigint(8) not null
# #
class StatusPin < ApplicationRecord class StatusPin < ApplicationRecord

View File

@@ -5,12 +5,12 @@
# Table name: status_trends # Table name: status_trends
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# status_id :bigint(8) not null
# account_id :bigint(8) not null
# score :float default(0.0), not null
# rank :integer default(0), not null
# allowed :boolean default(FALSE), not null # allowed :boolean default(FALSE), not null
# language :string # language :string
# rank :integer default(0), not null
# score :float default(0.0), not null
# account_id :bigint(8) not null
# status_id :bigint(8) not null
# #
class StatusTrend < ApplicationRecord class StatusTrend < ApplicationRecord

View File

@@ -5,18 +5,18 @@
# Table name: tags # Table name: tags
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# name :string default(""), not null # display_name :string
# created_at :datetime not null
# updated_at :datetime not null
# usable :boolean
# trendable :boolean
# listable :boolean
# reviewed_at :datetime
# requested_review_at :datetime
# last_status_at :datetime # last_status_at :datetime
# listable :boolean
# max_score :float # max_score :float
# max_score_at :datetime # max_score_at :datetime
# display_name :string # name :string default(""), not null
# requested_review_at :datetime
# reviewed_at :datetime
# trendable :boolean
# usable :boolean
# created_at :datetime not null
# updated_at :datetime not null
# #
class Tag < ApplicationRecord class Tag < ApplicationRecord

View File

@@ -5,10 +5,10 @@
# Table name: tag_follows # Table name: tag_follows
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# tag_id :bigint(8) not null
# account_id :bigint(8) not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# account_id :bigint(8) not null
# tag_id :bigint(8) not null
# #
class TagFollow < ApplicationRecord class TagFollow < ApplicationRecord

View File

@@ -4,9 +4,9 @@
# #
# Table name: user_ips # Table name: user_ips
# #
# user_id :bigint(8) primary key
# ip :inet # ip :inet
# used_at :datetime # used_at :datetime
# user_id :bigint(8) primary key
# #
class UserIp < ApplicationRecord class UserIp < ApplicationRecord

View File

@@ -5,13 +5,13 @@
# Table name: webauthn_credentials # Table name: webauthn_credentials
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# external_id :string not null
# public_key :string not null
# nickname :string not null # nickname :string not null
# public_key :string not null
# sign_count :bigint(8) default(0), not null # sign_count :bigint(8) default(0), not null
# user_id :bigint(8)
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# external_id :string not null
# user_id :bigint(8)
# #
class WebauthnCredential < ApplicationRecord class WebauthnCredential < ApplicationRecord

View File

@@ -5,13 +5,13 @@
# Table name: webhooks # Table name: webhooks
# #
# id :bigint(8) not null, primary key # id :bigint(8) not null, primary key
# url :string not null # enabled :boolean default(TRUE), not null
# events :string default([]), not null, is an Array # events :string default([]), not null, is an Array
# secret :string default(""), not null # secret :string default(""), not null
# enabled :boolean default(TRUE), not null # template :text
# url :string not null
# created_at :datetime not null # created_at :datetime not null
# updated_at :datetime not null # updated_at :datetime not null
# template :text
# #
class Webhook < ApplicationRecord class Webhook < ApplicationRecord