Skip to content

Commit 3283969

Browse files
committed
Add new user fields in the user model
1 parent 74a702e commit 3283969

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/demonstration/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ class User(BaseModel):
2121

2222
id = Column(Integer, primary_key=True, index=True)
2323
username = Column(String)
24+
email = Column(String)
25+
name = Column(String)
26+
image = Column(String)
27+
identity = Column(String, unique=True) # provider_name:user_id

0 commit comments

Comments
 (0)