2024-04-25 16:28:34 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2024-03-15 18:27:31 -04:00
|
|
|
class Import < ApplicationRecord
|
2024-05-21 17:09:21 -04:00
|
|
|
# self.ignored_columns = %w[raw_data]
|
2024-05-19 12:26:48 -04:00
|
|
|
|
2024-03-15 19:01:00 -04:00
|
|
|
belongs_to :user
|
2024-03-15 18:27:31 -04:00
|
|
|
has_many :points, dependent: :destroy
|
|
|
|
|
|
2024-04-25 16:28:34 -04:00
|
|
|
include ImportUploader::Attachment(:raw)
|
2024-03-24 13:05:39 -04:00
|
|
|
|
2024-08-21 12:40:54 -04:00
|
|
|
enum source: {
|
|
|
|
|
google_semantic_history: 0, owntracks: 1, google_records: 2,
|
2024-09-02 16:33:54 -04:00
|
|
|
google_phone_takeout: 3, gpx: 4, immich_api: 5, geojson: 6
|
2024-08-21 12:40:54 -04:00
|
|
|
}
|
2024-03-15 18:27:31 -04:00
|
|
|
end
|