Commit 01ea8977 by Rubén Ramírez

feat: [ER.puml]: Correción del diagrama ER

parent 046e54b9
Showing with 24 additions and 18 deletions
@startuml @startuml
skinparam linetype ortho
skinparam nodesep 30
skinparam ranksep 30
entity "Usuario" as Usuario { entity "Usuario" as Usuario {
*id : Integer *id : Integer
-- --
...@@ -14,16 +18,7 @@ entity "Repositorio" as Repositorio { ...@@ -14,16 +18,7 @@ entity "Repositorio" as Repositorio {
usuario_id : Integer usuario_id : Integer
} }
Usuario ||--|| Repositorio : "tiene" Usuario ||--right--|| Repositorio : "\n\ntiene"
entity "Recurso" as Recurso {
*id : Integer
--
titulo : String
descripcion : String
fechaPublicacion : Date
autor : String
}
entity "Repositorio_Recurso" as RepositorioRecurso { entity "Repositorio_Recurso" as RepositorioRecurso {
*repositorio_id : Integer *repositorio_id : Integer
...@@ -31,28 +26,38 @@ entity "Repositorio_Recurso" as RepositorioRecurso { ...@@ -31,28 +26,38 @@ entity "Repositorio_Recurso" as RepositorioRecurso {
categoria_id : Integer categoria_id : Integer
} }
Repositorio ||--|| RepositorioRecurso : "contiene" Repositorio ||--right--|| RepositorioRecurso : "\n\ncontiene"
RepositorioRecurso ||--|| Recurso : "almacena"
entity "Categoria" as Categoria { entity "Categoria" as Categoria {
*id : Integer *id : Integer
nombre : String nombre : String
} }
RepositorioRecurso ||--|| Categoria : "clasificado en" RepositorioRecurso ||--up--|| Categoria : "\n\nclasificado en"
entity "Genero" as Genero { entity "Recurso" as Recurso {
*id : Integer *id : Integer
nombre : String --
titulo : String
descripcion : String
fechaPublicacion : Date
autor : String
} }
RepositorioRecurso ||--down--|| Recurso : "\n\nalmacena"
entity "Recurso_Genero" as RecursoGenero { entity "Recurso_Genero" as RecursoGenero {
*recurso_id : Integer *recurso_id : Integer
*genero_id : Integer *genero_id : Integer
} }
Recurso ||--|| RecursoGenero : "tiene" entity "Genero" as Genero {
RecursoGenero ||--|| Genero : "pertenece a" *id : Integer
nombre : String
}
Recurso ||--left--|| RecursoGenero : "\n\ntiene"
RecursoGenero ||--left--|| Genero : "\n\npertenece a"
entity "Capitulo" as Capitulo { entity "Capitulo" as Capitulo {
*id : Integer *id : Integer
...@@ -64,6 +69,7 @@ entity "Capitulo" as Capitulo { ...@@ -64,6 +69,7 @@ entity "Capitulo" as Capitulo {
fuente : String fuente : String
} }
Recurso ||--|| Capitulo : "contiene" Recurso ||--down--|| Capitulo : "\n\ncontiene"
@enduml @enduml
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment