Guest User

Untitled

a guest
Jul 16th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. create_table "atencions", :force => true do |t|
  2. t.integer "atencion_porc_autorizacion"
  3. t.date "atencion_fecha"
  4. t.decimal "atencion_costo"
  5. t.date "atencion_fecha_alta"
  6. t.integer "servicio_id", :null => false
  7. t.integer "socio_id", :null => false
  8. t.integer "profesional_id", :null => false
  9. t.integer "institucion_id", :null => false
  10. end
  11.  
  12. create_table "cuotas", :force => true do |t|
  13. t.string "cuota_tipo_pago"
  14. t.decimal "cuota_monto"
  15. t.string "cuota_tarjeta"
  16. t.string "cuota_tarjeta_empresa"
  17. t.date "cuota_vencimiento"
  18. t.date "cuota_fecha_pago"
  19. t.integer "socio_id", :null => false
  20. end
  21.  
  22. create_table "especialidads", :force => true do |t|
  23. t.string "especialidad"
  24. t.string "descripcion"
  25. end
  26.  
  27. create_table "farmacias", :force => true do |t|
  28. t.string "farmacia_nombre"
  29. t.string "farmacia_direccion"
  30. t.string "farmacia_tel"
  31. end
  32.  
  33. create_table "institucions", :force => true do |t|
  34. t.string "institucion_nombre"
  35. t.string "institucion_direccion"
  36. t.string "institucion_tel"
  37. end
  38.  
  39. create_table "logins", :force => true do |t|
  40. t.string "user"
  41. t.string "password"
  42. t.datetime "created_at"
  43. t.datetime "updated_at"
  44. end
  45.  
  46. create_table "medicamentos", :force => true do |t|
  47. t.string "medicamento_nombre"
  48. t.string "medicamento_precio"
  49. t.boolean "medicamento_recetado"
  50. t.string "medicamento_prospecto"
  51. end
  52.  
  53. create_table "medicamentoxfarmacias", :force => true do |t|
  54. t.integer "farmacia_id"
  55. t.integer "medicamento_id"
  56. end
  57.  
  58. create_table "medicamentoxrecetas", :id => false, :force => true do |t|
  59. t.integer "receta_id", :null => false
  60. t.integer "medicamento_id", :null => false
  61. t.integer "mxr_cantidad"
  62. t.text "mxr_observacion"
  63. end
  64.  
  65. create_table "plans", :force => true do |t|
  66. t.string "plan_nombre"
  67. t.decimal "plan_costo"
  68. t.string "plan_descripcion"
  69. t.decimal "plan_costoxfamiliar", :precision => 8, :scale => 2, :default => 0.0
  70. end
  71.  
  72. create_table "profesionals", :force => true do |t|
  73. t.string "profesional_nombre"
  74. t.string "profesional_direccion"
  75. t.string "profesional_matricula"
  76. t.string "profesional_tel"
  77. t.string "profesional_profesion"
  78. end
  79.  
  80. create_table "profesionalxinstitucions", :id => false, :force => true do |t|
  81. t.integer "profesional_id", :null => false
  82. t.integer "institucion_id", :null => false
  83. t.date "fecha_alta", :null => false
  84. t.date "fecha_baja"
  85. end
  86.  
  87. create_table "recetas", :force => true do |t|
  88. t.date "receta_fecha"
  89. t.integer "atencion_id", :null => false
  90. end
  91.  
  92. create_table "servicios", :force => true do |t|
  93. t.string "servicio_nombre"
  94. t.string "servicio_descripcion"
  95. t.integer "servicio_complejidad", :default => 1
  96. end
  97.  
  98. create_table "servicioxinstitucions", :force => true do |t|
  99. t.integer "institucion_id"
  100. t.integer "servicio_id"
  101. t.datetime "created_at"
  102. t.datetime "updated_at"
  103. end
  104.  
  105. create_table "servicioxplans", :id => false, :force => true do |t|
  106. t.integer "plan_id", :null => false
  107. t.integer "servicio_id", :null => false
  108. end
  109.  
  110. create_table "socios", :force => true do |t|
  111. t.string "socio_nombre"
  112. t.string "socio_domicilio"
  113. t.string "socio_tel"
  114. t.date "socio_fecha_nacimiento"
  115. t.string "socio_localidad"
  116. t.integer "familiar_id", :default => 0
  117. t.integer "plan_id", :limit => 2, :null => false
  118. t.string "socio_dni", :limit => 8, :null => false
  119. end
  120.  
  121. end
Add Comment
Please, Sign In to add comment