init: Initial project setup

This commit is contained in:
ITQ
2024-03-17 18:50:03 +03:00
parent 9b652d063b
commit aa99051c7b
21 changed files with 703 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
__all__ = ("User",)
from typing import Any
from sqlalchemy import Column, Integer, SmallInteger, String
from sqlalchemy.ext.declarative import declarative_base
Base: Any = declarative_base()
class User(Base):
__tablename__ = "users"
telegram_id: Column[int] = Column(Integer, primary_key=True)
age: Column[int] = Column(SmallInteger, nullable=False)
bio: Column[str] = Column(String(100), nullable=True)
country: Column[str] = Column(String(100), nullable=False)
city: Column[str] = Column(String(100), nullable=False)