Added database creation to the readme

This commit is contained in:
2026-04-23 11:41:36 +00:00
parent 02185cac54
commit d1222a6baa
2 changed files with 27 additions and 31 deletions

View File

@@ -13,13 +13,13 @@ default: &default
adapter: mysql2
encoding: utf8mb4
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: root
username: OpenSMTPD
password: password
host: localhost
development:
<<: *default
database: opensmtpd_dev
database: OpenSMTPD
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
@@ -50,6 +50,6 @@ test:
#
production:
<<: *default
database: opensmtpd
username: opensmtpd
database: OpenSMTPD
username: OpenSMTPD
password: <%= ENV["OPENSMTPD_RAILS_FRONTEND_DATABASE_PASSWORD"] %>

50
db/schema.rb generated
View File

@@ -10,53 +10,49 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_05_21_090545) do
create_table "credentials", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
ActiveRecord::Schema[8.1].define(version: 2024_05_21_090545) do
create_table "credentials", charset: "latin1", collation: "latin1_swedish_ci", force: :cascade do |t|
t.datetime "created_at", null: false
t.string "email"
t.string "password"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "domain_id"
t.index ["domain_id"], name: "index_credentials_on_domain_id"
end
create_table "domains", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
create_table "domains", charset: "latin1", collation: "latin1_swedish_ci", force: :cascade do |t|
t.datetime "created_at", null: false
t.string "domain"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "users", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
create_table "users", charset: "latin1", collation: "latin1_swedish_ci", force: :cascade do |t|
t.integer "consumed_timestep"
t.datetime "created_at", null: false
t.datetime "current_sign_in_at"
t.string "current_sign_in_ip"
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.integer "sign_in_count", default: 0, null: false
t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
t.integer "failed_attempts", default: 0, null: false
t.string "unlock_token"
t.datetime "last_sign_in_at"
t.string "last_sign_in_ip"
t.datetime "locked_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "otp_secret"
t.integer "consumed_timestep"
t.boolean "otp_required_for_login"
t.string "otp_secret"
t.datetime "remember_created_at"
t.datetime "reset_password_sent_at"
t.string "reset_password_token"
t.integer "role", default: 1000, null: false
t.integer "sign_in_count", default: 0, null: false
t.string "unlock_token"
t.datetime "updated_at", null: false
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true
end
create_table "virtuals", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.string "email"
t.string "destination"
create_table "virtuals", charset: "latin1", collation: "latin1_swedish_ci", force: :cascade do |t|
t.datetime "created_at", null: false
t.string "destination"
t.string "email"
t.datetime "updated_at", null: false
t.integer "domain_id"
t.index ["domain_id"], name: "index_virtuals_on_domain_id"
end
end