forked from chaosdorf/mete
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.rb
More file actions
52 lines (48 loc) · 2.05 KB
/
schema.rb
File metadata and controls
52 lines (48 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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.
ActiveRecord::Schema[8.0].define(version: 2025_12_28_140735) do
create_table "audits", force: :cascade do |t|
t.datetime "created_at", precision: nil
t.decimal "difference", precision: 20, scale: 2, default: "0.0"
t.integer "drink"
t.integer "user"
end
create_table "barcodes", id: :string, force: :cascade do |t|
t.integer "drink", null: false
end
create_table "drinks", force: :cascade do |t|
t.string "name"
t.decimal "bottle_size", precision: 20, scale: 2, default: "0.0"
t.integer "caffeine"
t.decimal "price", precision: 20, scale: 2, default: "0.0"
t.string "logo_file_name"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.string "logo_content_type"
t.integer "logo_file_size"
t.datetime "logo_updated_at", precision: nil
t.boolean "active", default: true
end
create_table "users", force: :cascade do |t|
t.string "name"
t.string "avatar"
t.datetime "created_at", precision: nil
t.datetime "updated_at", precision: nil
t.decimal "balance", precision: 20, scale: 2, default: "0.0"
t.boolean "active", default: true
t.boolean "audit", default: false
t.boolean "redirect", default: true
t.integer "avatar_provider", default: 0
t.string "barcode"
t.index ["barcode"], name: "index_users_on_barcode", unique: true
end
end