We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d2a22e commit bc08035Copy full SHA for bc08035
backend/app/models/user.py
@@ -0,0 +1,12 @@
1
+from sqlalchemy import Column, Integer, String
2
+from sqlalchemy.orm import declarative_base
3
+
4
+Base = declarative_base()
5
6
+class User(Base):
7
+ __tablename__ = "users"
8
9
+ id = Column(Integer, primary_key=True, index=True)
10
+ username = Column(String(100), unique=True, nullable=False)
11
+ password = Column(String(255), nullable=False)
12
+ role = Column(String(50), default="member")
0 commit comments