saucy/db/schema.rb

61 lines
2.5 KiB
Ruby
Raw Normal View History

2022-06-20 19:53:38 +00:00
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# This file is the source Rails uses to define your schema when running `bin/rails
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
# be faster and is potentially less error prone than running all of your
# migrations from scratch. Old migrations may fail to apply correctly if those
# migrations use external dependencies or application code.
#
# It's strongly recommended that you check this file into your version control system.
2022-06-25 12:48:46 +00:00
ActiveRecord::Schema[7.0].define(version: 2022_06_24_134509) do
2022-06-20 19:53:38 +00:00
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
2022-06-25 12:48:46 +00:00
create_table "contributions", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "member_id", null: false
t.integer "eurocents", null: false
t.date "payment_on", null: false
t.string "payment_method"
t.string "payment_reference"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["member_id"], name: "index_contributions_on_member_id"
end
create_table "members", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.serial "number", null: false
t.string "email", null: false
t.string "display_name", null: false
t.string "identification_number"
t.string "status"
t.string "category"
t.text "address"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.date "joined_on"
t.date "expires_on"
t.string "regular_ifthenpay_link"
t.string "reduced_ifthenpay_link"
t.index ["email"], name: "index_members_on_email", unique: true
t.index ["number"], name: "index_members_on_number", unique: true
end
create_table "notifications", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "member_id"
t.date "to_be_sent_on", null: false
t.string "template", null: false
t.string "status", null: false
t.datetime "sent_at", precision: nil
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["member_id"], name: "index_notifications_on_member_id"
end
add_foreign_key "contributions", "members"
add_foreign_key "notifications", "members"
2022-06-20 19:53:38 +00:00
end