Created
August 6, 2017 17:30
-
-
Save beatrizuezu/20a162167367e2fed3171404bc251c67 to your computer and use it in GitHub Desktop.
De SQL para ORM Django / desc produtos_produto
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
mysql> desc produtos_produto; | |
+--------------+---------------+------+-----+---------+----------------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+--------------+---------------+------+-----+---------+----------------+ | |
| id | int(11) | NO | PRI | NULL | auto_increment | | |
| nome | varchar(128) | NO | | NULL | | | |
| valor | decimal(10,2) | YES | | NULL | | | |
| categoria_id | int(11) | NO | MUL | NULL | | | |
+--------------+---------------+------+-----+---------+----------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment