18 lines
429 B
Python
18 lines
429 B
Python
from sqlalchemy import Column, ForeignKey, Integer, String, Float
|
|
from database import Base
|
|
|
|
|
|
class Movie(Base):
|
|
__tablename__ = "movies"
|
|
|
|
id = Column(Integer, primary_key=True, 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)
|