This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
forked from PonomaryovVladyslav/PythonCourses
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
89533cf
commit 14f323e
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
Django models | ||
--- | ||
|
||
mindmap | ||
root(Django models) | ||
::)Definition( | ||
settings | ||
::icon(fas fa-gear) | ||
::{{connect to DB}} | ||
dbs[sqlite<br>postgres<br>mysql] | ||
::icon(fas fa-database) | ||
::{{Define a model}} | ||
models.Field | ||
null | ||
blank | ||
choices | ||
editable | ||
help_text | ||
primary_key | ||
unique | ||
verbose_name | ||
validators | ||
fields[Fields] | ||
txt(Text fields) | ||
CharField | ||
max_length | ||
SlugField | ||
TextField | ||
::{{special cases}} | ||
FileField | ||
ImageField | ||
URLField | ||
num(Numeric fields) | ||
IntegerField | ||
DecimalField | ||
datetime(Date/time fields) | ||
DateField | ||
TimeField | ||
DateTimeField | ||
rel(Relationships) | ||
::[1-to-1] | ||
::[1-to-N: foreign key] | ||
::[m2m: many to many] | ||
through | ||
::icon(fas fa-table) | ||
migrations | ||
::{{Schema migrations}} | ||
::{{Data migrations}} |