Added pdf file upload

This commit is contained in:
2024-08-01 23:15:05 +02:00
parent 69bca2d99e
commit f7a60a90d8
10 changed files with 199 additions and 31 deletions

33
db/schema.rb generated
View File

@@ -10,7 +10,35 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_07_30_214152) do
ActiveRecord::Schema[7.1].define(version: 2024_08_01_205025) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
t.bigint "record_id", null: false
t.bigint "blob_id", null: false
t.datetime "created_at", null: false
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
end
create_table "active_storage_blobs", force: :cascade do |t|
t.string "key", null: false
t.string "filename", null: false
t.string "content_type"
t.text "metadata"
t.string "service_name", null: false
t.bigint "byte_size", null: false
t.string "checksum"
t.datetime "created_at", null: false
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
end
create_table "active_storage_variant_records", force: :cascade do |t|
t.bigint "blob_id", null: false
t.string "variation_digest", null: false
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
end
create_table "jobs", force: :cascade do |t|
t.integer "operator_id"
t.integer "costumer_id"
@@ -33,6 +61,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_07_30_214152) do
t.string "pdf"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "privacy_policy_accepted", default: false
t.index ["costumer_id"], name: "index_jobs_on_costumer_id"
t.index ["operator_id"], name: "index_jobs_on_operator_id"
t.index ["status"], name: "index_jobs_on_status"
@@ -45,6 +74,8 @@ ActiveRecord::Schema[7.1].define(version: 2024_07_30_214152) do
t.datetime "updated_at", null: false
end
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
add_foreign_key "jobs", "users", column: "costumer_id"
add_foreign_key "jobs", "users", column: "operator_id"
end