Skip to content

Commit

Permalink
Remove pg specific db code
Browse files Browse the repository at this point in the history
  • Loading branch information
hellcp-work committed Jan 30, 2023
1 parent d9b64d1 commit 5876ded
Showing 1 changed file with 18 additions and 36 deletions.
54 changes: 18 additions & 36 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@

ActiveRecord::Schema.define(version: 20230130095633) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
enable_extension "pg_stat_statements"

create_table "audits", id: :serial, force: :cascade do |t|
create_table "audits", force: :cascade do |t|
t.integer "auditable_id"
t.string "auditable_type"
t.integer "user_id"
Expand All @@ -32,16 +28,13 @@
t.integer "associated_id"
t.string "associated_type"
t.index ["associated_type", "associated_id"], name: "associated_index"
t.index ["auditable_id", "auditable_type", "version"], name: "idx_27755812_auditable_index"
t.index ["auditable_type", "auditable_id", "version"], name: "auditable_index"
t.index ["created_at"], name: "idx_27755812_index_audits_on_created_at"
t.index ["created_at"], name: "index_audits_on_created_at"
t.index ["request_uuid"], name: "index_audits_on_request_uuid"
t.index ["user_id", "user_type"], name: "idx_27755812_user_index"
t.index ["user_id", "user_type"], name: "user_index"
end

create_table "bank_accounts", id: :serial, force: :cascade do |t|
create_table "bank_accounts", force: :cascade do |t|
t.string "holder"
t.string "bank_name"
t.string "format"
Expand All @@ -56,30 +49,28 @@
t.datetime "updated_at"
end

create_table "budgets", id: :serial, force: :cascade do |t|
create_table "budgets", force: :cascade do |t|
t.string "name"
t.string "description"
t.decimal "amount", precision: 10, scale: 2
t.string "currency"
t.datetime "created_at"
t.datetime "updated_at"
t.index ["currency"], name: "idx_27755858_index_budgets_on_currency"
t.index ["currency"], name: "index_budgets_on_currency"
end

create_table "comments", id: :serial, force: :cascade do |t|
create_table "comments", force: :cascade do |t|
t.integer "machine_id"
t.string "machine_type"
t.text "body"
t.integer "user_id"
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "private"
t.index ["private"], name: "idx_27755803_index_comments_on_private"
t.index ["private"], name: "index_comments_on_private"
end

create_table "delayed_jobs", id: :serial, force: :cascade do |t|
create_table "delayed_jobs", force: :cascade do |t|
t.integer "priority", default: 0
t.integer "attempts", default: 0
t.text "handler"
Expand All @@ -92,10 +83,9 @@
t.datetime "created_at"
t.datetime "updated_at"
t.index ["priority", "run_at"], name: "delayed_jobs_priority"
t.index ["priority", "run_at"], name: "idx_27755792_delayed_jobs_priority"
end

create_table "event_emails", id: :serial, force: :cascade do |t|
create_table "event_emails", force: :cascade do |t|
t.text "to"
t.string "subject"
t.text "body"
Expand All @@ -105,12 +95,12 @@
t.datetime "updated_at"
end

create_table "event_organizers", id: :serial, force: :cascade do |t|
create_table "event_organizers", force: :cascade do |t|
t.integer "event_id"
t.integer "user_id"
end

create_table "events", id: :serial, force: :cascade do |t|
create_table "events", force: :cascade do |t|
t.string "name", null: false
t.text "description"
t.string "country_code"
Expand All @@ -125,11 +115,10 @@
t.datetime "reimbursement_creation_deadline"
t.integer "budget_id"
t.string "shipment_type"
t.index ["budget_id"], name: "idx_27755747_index_events_on_budget_id"
t.index ["budget_id"], name: "index_events_on_budget_id"
end

create_table "payments", id: :serial, force: :cascade do |t|
create_table "payments", force: :cascade do |t|
t.integer "reimbursement_id"
t.date "date"
t.decimal "amount", precision: 10, scale: 2
Expand All @@ -145,7 +134,7 @@
t.datetime "updated_at"
end

create_table "postal_addresses", id: :serial, force: :cascade do |t|
create_table "postal_addresses", force: :cascade do |t|
t.string "line1"
t.string "line2"
t.string "city"
Expand All @@ -157,23 +146,23 @@
t.string "name"
end

create_table "reimbursement_attachments", id: :serial, force: :cascade do |t|
create_table "reimbursement_attachments", force: :cascade do |t|
t.integer "reimbursement_id"
t.string "title", null: false
t.string "file", null: false
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "reimbursement_links", id: :serial, force: :cascade do |t|
create_table "reimbursement_links", force: :cascade do |t|
t.integer "reimbursement_id"
t.string "title", null: false
t.string "url", null: false
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "reimbursements", id: :serial, force: :cascade do |t|
create_table "reimbursements", force: :cascade do |t|
t.string "state"
t.integer "user_id", null: false
t.integer "request_id", null: false
Expand All @@ -184,7 +173,7 @@
t.string "acceptance_file"
end

create_table "request_expenses", id: :serial, force: :cascade do |t|
create_table "request_expenses", force: :cascade do |t|
t.integer "request_id", null: false
t.string "subject"
t.string "description"
Expand All @@ -198,7 +187,7 @@
t.decimal "authorized_amount", precision: 10, scale: 2
end

create_table "requests", id: :serial, force: :cascade do |t|
create_table "requests", force: :cascade do |t|
t.string "state"
t.integer "user_id", null: false
t.integer "event_id", null: false
Expand All @@ -210,17 +199,13 @@
t.integer "postal_address_id"
t.string "contact_phone_number"
t.string "type"
t.index ["event_id"], name: "idx_27755783_index_requests_on_event_id"
t.index ["event_id"], name: "index_requests_on_event_id"
t.index ["postal_address_id"], name: "idx_27755783_index_requests_on_postal_address_id"
t.index ["postal_address_id"], name: "index_requests_on_postal_address_id"
t.index ["type"], name: "idx_27755783_index_requests_on_type"
t.index ["type"], name: "index_requests_on_type"
t.index ["user_id"], name: "idx_27755783_index_requests_on_user_id"
t.index ["user_id"], name: "index_requests_on_user_id"
end

create_table "state_changes", id: :serial, force: :cascade do |t|
create_table "state_changes", force: :cascade do |t|
t.integer "machine_id", null: false
t.string "machine_type", null: false
t.string "state_event"
Expand All @@ -231,11 +216,10 @@
t.datetime "created_at"
t.datetime "updated_at"
t.string "type"
t.index ["type"], name: "idx_27755849_index_state_changes_on_type"
t.index ["type"], name: "index_state_changes_on_type"
end

create_table "user_profiles", id: :serial, force: :cascade do |t|
create_table "user_profiles", force: :cascade do |t|
t.integer "user_id", null: false
t.integer "role_id", null: false
t.string "full_name"
Expand All @@ -255,7 +239,7 @@
t.string "postal_address"
end

create_table "users", id: :serial, force: :cascade do |t|
create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
Expand All @@ -270,9 +254,7 @@
t.string "locale", default: "en", null: false
t.datetime "created_at"
t.datetime "updated_at"
t.index ["email"], name: "idx_27755725_index_users_on_email", unique: true
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["reset_password_token"], name: "idx_27755725_index_users_on_reset_password_token", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
end

Expand Down

0 comments on commit 5876ded

Please sign in to comment.