Added projects
This commit is contained in:
parent
0964187f22
commit
8b4ffb83ec
37 changed files with 470 additions and 1935 deletions
27
db/schema.rb
generated
27
db/schema.rb
generated
|
|
@ -10,7 +10,19 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2024_11_11_034826) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2024_11_24_183406) do
|
||||
create_table "account_remember_keys", force: :cascade do |t|
|
||||
t.string "key", null: false
|
||||
t.datetime "deadline", null: false
|
||||
end
|
||||
|
||||
create_table "accounts", force: :cascade do |t|
|
||||
t.integer "status", default: 1, null: false
|
||||
t.string "email", null: false
|
||||
t.string "password_hash"
|
||||
t.index ["email"], name: "index_accounts_on_email", unique: true, where: "status IN (1, 2)"
|
||||
end
|
||||
|
||||
create_table "action_text_rich_texts", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.text "body"
|
||||
|
|
@ -115,6 +127,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_11_11_034826) do
|
|||
t.datetime "updated_at", null: false
|
||||
t.integer "page_id", null: false
|
||||
t.integer "position", null: false
|
||||
t.index ["page_id", "position"], name: "index_elements_on_page_id_and_position", unique: true
|
||||
t.index ["page_id"], name: "index_elements_on_page_id"
|
||||
end
|
||||
|
||||
|
|
@ -144,6 +157,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_11_11_034826) do
|
|||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.text "notes"
|
||||
t.index ["report_id", "position"], name: "index_pages_on_report_id_and_position", unique: true
|
||||
t.index ["report_id"], name: "index_pages_on_report_id"
|
||||
end
|
||||
|
||||
|
|
@ -154,11 +168,19 @@ ActiveRecord::Schema[8.0].define(version: 2024_11_11_034826) do
|
|||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "projects", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "reports", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "url"
|
||||
t.integer "project_id"
|
||||
t.index ["project_id"], name: "index_reports_on_project_id"
|
||||
end
|
||||
|
||||
create_table "sessions", force: :cascade do |t|
|
||||
|
|
@ -191,6 +213,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_11_11_034826) do
|
|||
t.integer "priority"
|
||||
t.integer "position", null: false
|
||||
t.index ["check_id"], name: "index_success_criteria_on_check_id"
|
||||
t.index ["element_id", "position"], name: "index_success_criteria_on_element_id_and_position", unique: true
|
||||
t.index ["element_id"], name: "index_success_criteria_on_element_id"
|
||||
end
|
||||
|
||||
|
|
@ -202,6 +225,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_11_11_034826) do
|
|||
t.index ["email_address"], name: "index_users_on_email_address", unique: true
|
||||
end
|
||||
|
||||
add_foreign_key "account_remember_keys", "accounts", column: "id"
|
||||
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 "checklist_entries", "checklists"
|
||||
|
|
@ -210,6 +234,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_11_11_034826) do
|
|||
add_foreign_key "elements", "pages"
|
||||
add_foreign_key "links", "link_categories"
|
||||
add_foreign_key "pages", "reports"
|
||||
add_foreign_key "reports", "projects"
|
||||
add_foreign_key "sessions", "users"
|
||||
add_foreign_key "success_criteria", "checks"
|
||||
add_foreign_key "success_criteria", "elements"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue