From 18cff6c1eb2dae6c99d18ce8a3a3f3fc6f6dac28 Mon Sep 17 00:00:00 2001 From: no Date: Mon, 26 May 2025 08:27:45 +0000 Subject: [PATCH] Add models.py --- models.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 models.py diff --git a/models.py b/models.py new file mode 100644 index 0000000..91b058c --- /dev/null +++ b/models.py @@ -0,0 +1,9 @@ +from db import Base +from sqlalchemy import Column, Integer, String + +class User(Base): + __tablename__ = "users" + + id = Column(Integer, primary_key=True, index=True) + username = Column(String(50), unique=True, nullable=False) + email = Column(String(100), unique=True, nullable=False) \ No newline at end of file