# 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 to check this file into your version control system. ActiveRecord::Schema.define(:version => 20090109102622) do create_table "allergies", :force => true do |t| t.string "allergen", :default => "" t.text "allergy_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" end create_table "conditions", :force => true do |t| t.string "condition_name", :default => "" t.text "condition_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" end create_table "doctors", :force => true do |t| t.string "doctor_first_name", :default => "" t.string "doctor_middle_name", :default => "" t.string "doctor_last_name", :default => "" t.text "doctor_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" end create_table "medications", :force => true do |t| t.string "medicine_name", :default => "" t.string "side_effects", :default => "" t.text "medication_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" end create_table "patient_allergies", :force => true do |t| t.integer "patient_id", :default => 0 t.integer "allergy_id", :default => 0 t.date "allergy_date_recorded" t.text "patient_allergy_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" t.string "reaction" end create_table "patient_conditions", :force => true do |t| t.integer "condition_id", :default => 0 t.integer "patient_visit_id", :default => 0 t.text "patient_condition_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" end create_table "patient_medications", :force => true do |t| t.integer "patient_condition_id", :default => 0 t.integer "medication_id", :default => 0 t.date "start_date" t.date "end_date" t.string "dosage", :default => "" t.string "frequency", :default => "" t.text "patient_medication_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" end create_table "patient_vaccinations", :force => true do |t| t.integer "patient_id", :default => 0 t.integer "vaccination_id", :default => 0 t.date "vaccination_date" t.text "patient_vaccination_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" end create_table "patient_visits", :force => true do |t| t.integer "patient_id", :default => 0 t.integer "visit_type_id", :default => 0 t.date "visit_date" t.integer "doctor_id", :default => 0 t.string "height", :default => "" t.string "weight", :default => "" t.string "blood_pressure", :default => "" t.string "pulse", :default => "" t.string "temperature", :default => "" t.text "patient_visit_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" end create_table "patients", :force => true do |t| t.string "first_name", :default => "" t.string "middle_name", :default => "" t.string "last_name", :default => "" t.date "arrival_date" t.date "date_of_birth" t.string "gender", :default => "" t.string "address", :default => "" t.string "city", :default => "" t.string "state", :default => "" t.string "zip", :default => "" t.string "father_first_name", :default => "" t.string "father_last_name", :default => "" t.string "mother_first_name", :default => "" t.string "mother_last_name", :default => "" t.string "telephone", :default => "" t.string "emergency_contact_name", :default => "" t.string "emergency_contact_relationship", :default => "" t.string "emergency_contact_number", :default => "" t.text "patient_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" t.string "photo_file_name" t.string "photo_content_type" t.integer "photo_file_size" t.datetime "photo_updated_at" end create_table "users", :force => true do |t| t.string "login", :limit => 40 t.string "name", :limit => 100, :default => "" t.string "email", :limit => 100 t.string "crypted_password", :limit => 40 t.string "salt", :limit => 40 t.datetime "created_at" t.datetime "updated_at" t.string "remember_token", :limit => 40 t.datetime "remember_token_expires_at" t.string "user_type" end add_index "users", ["login"], :name => "index_users_on_login", :unique => true create_table "vaccinations", :force => true do |t| t.string "vaccine_name", :default => "" t.string "vaccine_condition", :default => "" t.text "vaccination_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" end create_table "visit_types", :force => true do |t| t.string "visit_type", :default => "" t.text "visit_type_remarks", :limit => 10000, :default => "" t.datetime "created_at" t.datetime "updated_at" end end