Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# encoding: UTF-8
# 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.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20130708173709) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
create_table "checkouts", force: true do |t|
t.string "job"
t.string "shift"
t.date "date"
t.decimal "hours", precision: 4, scale: 2
t.decimal "sales", precision: 10, scale: 2
t.decimal "tips", precision: 10, scale: 2
t.decimal "owed", precision: 10, scale: 2
t.decimal "collected", precision: 10, scale: 2
t.text "notes"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "user_id"
end
add_index "checkouts", ["user_id", "created_at"], name: "index_checkouts_on_user_id_and_created_at", using: :btree
create_table "employees", force: true do |t|
t.string "first_name"
t.string "last_name"
t.integer "number"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "user_id"
end
add_index "employees", ["user_id", "created_at"], name: "index_employees_on_user_id_and_created_at", using: :btree
create_table "employments", force: true do |t|
t.integer "checkout_id"
t.integer "employee_id"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "users", force: true do |t|
t.string "email", null: false
t.string "crypted_password"
t.string "salt"
t.datetime "created_at"
t.datetime "updated_at"
t.string "remember_me_token"
t.datetime "remember_me_token_expires_at"
t.string "reset_password_token"
t.datetime "reset_password_token_expires_at"
t.datetime "reset_password_email_sent_at"
t.string "restaurant"
end
add_index "users", ["remember_me_token"], name: "index_users_on_remember_me_token", using: :btree
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", using: :btree
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment