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
2020-11-03 15:47:51 +01:00

16 lines
442 B
Python

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