very-express
Version:
based on json schema and openapi, generate Express RestApi server with mongoDb
45 lines • 804 B
JSON
{
"type": "object",
"x-documentConfig": {
"restApi": {
"methods": [],
"joinWhitelist": []
},
"documentName": "UserAuthProfiles"
},
"properties": {
"_id": {
"type": "string",
"x-format": "Primary",
"index": true
},
"userId": {
"type": "string",
"x-format": "UUID",
"index": true,
"x-foreignKey": {
"schemaName": "User",
"fieldName": "_id",
"relationType": "many-to-one"
}
},
"provider": {
"type": "string",
"index": true
},
"oauthId": {
"type": "string",
"index": true
},
"email": {
"type": "string"
},
"username": {
"type": "string"
},
"password": {
"type": "string",
"x-hidden": true
}
}
}