mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-13 22:00:19 -04:00
feat(client/api): add C# survey (#51682)
This commit is contained in:
41
api-server/src/server/models/survey.json
Normal file
41
api-server/src/server/models/survey.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "Survey",
|
||||
"description": "Survey responses from campers",
|
||||
"base": "PersistedModel",
|
||||
"idInjection": true,
|
||||
"options": {
|
||||
"strict": true
|
||||
},
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"type": [
|
||||
{
|
||||
"question": "string",
|
||||
"response": "string"
|
||||
}
|
||||
],
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"validations": [],
|
||||
"relations": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"model": "user",
|
||||
"foreignKey": "userId"
|
||||
}
|
||||
},
|
||||
"acls": [
|
||||
{
|
||||
"accessType": "*",
|
||||
"principalType": "ROLE",
|
||||
"principalId": "$everyone",
|
||||
"permission": "DENY"
|
||||
}
|
||||
],
|
||||
"methods": {}
|
||||
}
|
||||
Reference in New Issue
Block a user