StarfallBot/starfall/db/schema/users.py

11 lines
296 B
Python

from sqlalchemy.orm import Mapped, mapped_column
from starfall.db import db
class Users(db.Table):
id: Mapped[int] = mapped_column(primary_key=True)
email: Mapped[str] = mapped_column(unique=True)
username: Mapped[str] = mapped_column()
password: Mapped[str] = mapped_column()