Skip to content

Instantly share code, notes, and snippets.

@cursodjangopro
Created July 4, 2020 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursodjangopro/9f4fe5a82232f465c03fe13a6aca37ce to your computer and use it in GitHub Desktop.
Save cursodjangopro/9f4fe5a82232f465c03fe13a6aca37ce to your computer and use it in GitHub Desktop.
@startuml
skinparam roundcorner 10
title Feedback App
package feedback.accounts {
class User #pink {
CharField first_name
CharField last_name
CharField username
EmailFiled email
CharField password
}
class Profile #silver {
ForeignKey User
ImageField photo
TextField bio
DateField birthday
CharField genre
CharField cell_phone
}
note right of Profile::genre
CHOICES_GENRE = (('M', _('Masculino')), ('F', _('Feminino')))
end note
}
package feedback.comments {
class Circle #silver {
CharField name
}
class Comment #silver {
ForeignKey User
TextField comment
ForeignKey Circle
DateTimeField created_at
}
}
User "1" --* "1" Profile
Comment "1" *-- "1" Circle
Comment "1" *-- "1" User
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment