Green: ouput schema seems ok
This commit is contained in:
parent
e40df4886f
commit
5039cd66aa
11
models.py
11
models.py
|
@ -1,5 +1,4 @@
|
|||
from sqlalchemy import Column, ForeignKey, Integer, String
|
||||
|
||||
from sqlalchemy import Column, ForeignKey, Integer, String, Float
|
||||
from database import Base
|
||||
|
||||
|
||||
|
@ -9,3 +8,11 @@ class Movie(Base):
|
|||
id = Column(Integer, primary_key=True, index=True)
|
||||
|
||||
name = Column(String, index=True)
|
||||
title = Column(String, index=True)
|
||||
|
||||
vote_count = Column(Integer)
|
||||
vote_average = Column(Float)
|
||||
|
||||
genres = Column(String) # String array dimention 1
|
||||
description = Column(String)
|
||||
release_date = Column(String)
|
||||
|
|
Loading…
Reference in New Issue