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 2b18362 commit ff48c35Copy full SHA for ff48c35
app/Models/users.py
@@ -1,12 +1,14 @@
1
from sqlalchemy import Column, String
2
from database.db import BaseModel
3
4
+# Define the Users model class, inheriting from BaseModel
5
class Users(BaseModel):
- __tablename__ = 'users'
6
+ __tablename__ = 'users' # Define the table name
7
- name = Column(String, index=True)
8
- email = Column(String, unique=True, index=True)
9
- password = Column(String)
+ name = Column(String, index=True) # Define the name column
+ email = Column(String, unique=True, index=True) # Define the email column
10
+ password = Column(String) # Define the password column
11
12
+ # Define a string representation for the Users model
13
def __repr__(self):
14
return f"<User(name={self.name}, email={self.email})>"
0 commit comments