Commit 0b891a50 by Rubén Ramírez

feat: [Diagrama ER]: Hecho un diagrama de Entidad Relación

parent a6af7819
Showing with 68 additions and 0 deletions
@startuml
entity "Usuario" as Usuario {
*id : Integer
--
email : String
nombreUsuario : String
contrasena : String
}
entity "Repositorio" as Repositorio {
*id : Integer
--
usuario_id : Integer
}
entity "Recurso" as Recurso {
*id : Integer
--
titulo : String
descripcion : String
fechaPublicacion : Date
autor : String
}
entity "Categoria" as Categoria {
*id : Integer
nombre : String
}
entity "Repositorio_Recurso" as RepositorioRecurso {
*repositorio_id : Integer
*recurso_id : Integer
categoria_id : Integer
}
entity "Genero" as Genero {
*id : Integer
--
nombre : String
}
entity "Recurso_Genero" as RecursoGenero {
*recurso_id : Integer
*genero_id : Integer
}
entity "Capitulo" as Capitulo {
*id : Integer
--
recurso_id : Integer
numero : Integer
titulo : String
url : String
fuente : String
}
' Relaciones
Usuario ||--o{ Repositorio : "tiene"
Repositorio ||--o{ RepositorioRecurso : "contiene"
Recurso ||--o{ RepositorioRecurso : "almacenado en"
RepositorioRecurso }|--|| Categoria : "clasificado en"
Recurso ||--o{ RecursoGenero : "clasificado como"
Genero ||--o{ RecursoGenero : "pertenece a"
Recurso ||--o{ Capitulo : "contiene"
@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