Assign users to roles via role_user and drop unused social media and light-mode fields.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 11:13:53 +05:00
parent 514b9ca5fc
commit 0788585c0e
6 changed files with 119 additions and 143 deletions

View File

@@ -7449,9 +7449,6 @@
"lastName": {
"type": "string"
},
"lightMode": {
"type": "integer"
},
"name": {
"type": "string"
},
@@ -7464,28 +7461,11 @@
"role": {
"type": "string"
},
"socialMedia": {
"$ref": "#/definitions/user.SocialMedia"
},
"username": {
"type": "string"
}
}
},
"user.SocialMedia": {
"type": "object",
"properties": {
"facebook": {
"type": "string"
},
"instagram": {
"type": "string"
},
"telegram": {
"type": "string"
}
}
},
"user.UpdateUserDTO": {
"type": "object",
"required": [
@@ -7509,9 +7489,6 @@
"lastName": {
"type": "string"
},
"lightMode": {
"type": "integer"
},
"name": {
"type": "string"
},
@@ -7521,9 +7498,6 @@
"role": {
"type": "string"
},
"socialMedia": {
"$ref": "#/definitions/user.SocialMedia"
},
"username": {
"type": "string"
}