Created
July 4, 2020 00:45
-
-
Save cursodjangopro/9f4fe5a82232f465c03fe13a6aca37ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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