giants-maps-api/app/models.py

16 lines
398 B
Python
Raw Normal View History

2021-12-22 15:56:35 +01:00
import datetime
from sqlalchemy import Column, Integer, String, DateTime
# from sqlalchemy.orm import relationship
from .database import Base
class Map(Base):
__tablename__ = "maps"
crc = Column(Integer, primary_key=True, index=True)
name = Column(String)
size = Column(Integer)
upload_date = Column(DateTime, default=datetime.datetime.utcnow)
filename = Column(String)