1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Administrator-py/db/Tomuss.py

17 lines
442 B
Python
Raw Normal View History

2020-11-03 15:47:51 +01:00
from datetime import datetime
from db import Base
from sqlalchemy import Column, BigInteger, String, DateTime
class Tomuss(Base):
__tablename__ = "tomuss"
user_id = Column(BigInteger, primary_key=True)
url = Column(String, nullable=False)
last = Column(DateTime, nullable=False)
def __init__(self, user_id: int, url: str, last: datetime):
self.user_id = user_id
self.url = url
self.last = last