Skip to content

Instantly share code, notes, and snippets.

@leemcalilly
Created July 2, 2013 21:31
Show Gist options
  • Save leemcalilly/36be318c677bad75b211 to your computer and use it in GitHub Desktop.
Save leemcalilly/36be318c677bad75b211 to your computer and use it in GitHub Desktop.
ActiveRecord::Schema.define(version: 20130702201342) 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