Merge branch 'main' into timeline-page

This commit is contained in:
Zach Latta
2025-05-14 14:34:56 -04:00
committed by GitHub
35 changed files with 640 additions and 105 deletions

View File

@@ -0,0 +1,14 @@
class CreateWakatimeMirrors < ActiveRecord::Migration[8.0]
def change
create_table :wakatime_mirrors do |t|
t.references :user, null: false, foreign_key: true
t.string :endpoint_url, null: false, default: "https://wakatime.com/api/v1"
t.string :encrypted_api_key, null: false
t.datetime :last_synced_at
t.timestamps
end
add_index :wakatime_mirrors, [ :user_id, :endpoint_url ], unique: true
end
end

View File

@@ -0,0 +1,10 @@
class CreateRawHeartbeatUploads < ActiveRecord::Migration[8.0]
def change
create_table :raw_heartbeat_uploads do |t|
t.jsonb :request_headers, null: false
t.jsonb :request_body, null: false
t.timestamps
end
end
end

View File

@@ -0,0 +1,5 @@
class AddRawHeartbeatUploadToHeartbeats < ActiveRecord::Migration[8.0]
def change
add_reference :heartbeats, :raw_heartbeat_upload, null: true, foreign_key: true
end
end

View File

@@ -0,0 +1,12 @@
class CreatePhysicalMails < ActiveRecord::Migration[8.0]
def change
create_table :physical_mails do |t|
t.references :user, null: false, foreign_key: true
t.integer :mission_type, null: false
t.integer :status, null: false, default: 0
t.string :theseus_id
t.timestamps
end
end
end