Skip to content

Commit bc08035

Browse files
author
Uttam Singh
committed
Add user model to fix import error on Render
1 parent 5d2a22e commit bc08035

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

backend/app/models/user.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)