Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. CREATE TABLE ango_personas.financiador_programa_medico_externo (
  2. id INT auto_increment NOT NULL,
  3. id_programa_medico INT NOT NULL,
  4. id_programa_medico_externo INT NOT NULL,
  5. origen ENUM('Optimi') DEFAULT 'Optimi' NOT NULL,
  6. creado DATETIME DEFAULT CURRENT_TIMESTAMP() NOT NULL,
  7. CONSTRAINT financiador_programa_medico_externo_PK PRIMARY KEY (id),
  8. CONSTRAINT financiador_programa_medico_externo_UN UNIQUE KEY (id_programa_medico_externo,origen)
  9. )
  10. ENGINE=InnoDB
  11.  
  12. CREATE TABLE ango_personas.financiador_programa_medico_plan_externo (
  13. id INT auto_increment NOT NULL,
  14. id_plan INT NOT NULL,
  15. id_plan_externo INT NOT NULL,
  16. origen ENUM('Optimi') DEFAULT 'Optimi' NOT NULL,
  17. creado DATETIME DEFAULT CURRENT_TIMESTAMP() NOT NULL,
  18. CONSTRAINT financiador_programa_medico_plan_externo_PK PRIMARY KEY (id),
  19. CONSTRAINT financiador_programa_medico_plan_externo_UN UNIQUE KEY (id_plan_externo,origen)
  20. )
  21. ENGINE=InnoDB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement