Add support for FASP data sharing (#34415)
This commit is contained in:
parent
3ea1f074ab
commit
a5a2c6dc7e
38 changed files with 1140 additions and 1 deletions
18
db/migrate/20241213130230_create_fasp_subscriptions.rb
Normal file
18
db/migrate/20241213130230_create_fasp_subscriptions.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateFaspSubscriptions < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :fasp_subscriptions do |t|
|
||||
t.string :category, null: false
|
||||
t.string :subscription_type, null: false
|
||||
t.integer :max_batch_size, null: false
|
||||
t.integer :threshold_timeframe
|
||||
t.integer :threshold_shares
|
||||
t.integer :threshold_likes
|
||||
t.integer :threshold_replies
|
||||
t.references :fasp_provider, null: false, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
15
db/migrate/20250103131909_create_fasp_backfill_requests.rb
Normal file
15
db/migrate/20250103131909_create_fasp_backfill_requests.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreateFaspBackfillRequests < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :fasp_backfill_requests do |t|
|
||||
t.string :category, null: false
|
||||
t.integer :max_count, null: false, default: 100
|
||||
t.string :cursor
|
||||
t.boolean :fulfilled, null: false, default: false
|
||||
t.references :fasp_provider, null: false, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue