Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CRUD_Animais_da_Fazenda
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafaela Ramos
CRUD_Animais_da_Fazenda
Commits
64f434f6
Commit
64f434f6
authored
Apr 16, 2026
by
Marina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mudei o models
parent
30edf5cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
models.py
models.py
+5
-2
No files found.
models.py
View file @
64f434f6
...
...
@@ -4,8 +4,10 @@ db = SQLAlchemy()
class
Animal
(
db
.
Model
):
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
)
nome
=
db
.
Column
(
db
.
String
(
100
))
especie
=
db
.
Column
(
db
.
String
(
100
))
nome
=
db
.
Column
(
db
.
String
(
100
)
,
nullable
=
False
)
especie
=
db
.
Column
(
db
.
String
(
100
)
,
nullable
=
False
)
idade
=
db
.
Column
(
db
.
Integer
)
peso
=
db
.
Column
(
db
.
Float
)
def
__repr__
(
self
):
return
f
'<Animal {self.nome}>'
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment