Predefined UserInfo model to create relations between custom models and current user #2099
Closed
udiedrichsen
started this conversation in
Ideas
Replies: 1 comment
-
Ok, I found this in the very good docs :-) https://docs.serverpod.dev/concepts/database/relations/modules |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would be great to have a UserInfo model. Something like this:
class: UserInfo
table: serverpod_user_info
fields:
userIdentifier: String
userName: String
fullName: String
email: String
created: DateTime
imageUri: String?
scopeName: List
blocked: bool
The idea is to create relations between custom models and the current user.
E.g.:
class: Profile
table: my_profile
fields:
age: int
user: UserInfo, relation
Beta Was this translation helpful? Give feedback.
All reactions