corrad-bp/prisma/json/json-schema.json
2025-04-09 11:16:18 +08:00

254 lines
4.7 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"audit": {
"type": "object",
"properties": {
"auditID": {
"type": "integer"
},
"auditIP": {
"type": [
"string",
"null"
]
},
"auditURL": {
"type": [
"string",
"null"
]
},
"auditURLMethod": {
"type": [
"string",
"null"
]
},
"auditURLPayload": {
"type": [
"string",
"null"
]
},
"auditCreatedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
}
}
},
"user": {
"type": "object",
"properties": {
"userID": {
"type": "integer"
},
"userSecretKey": {
"type": [
"string",
"null"
]
},
"userUsername": {
"type": [
"string",
"null"
]
},
"userPassword": {
"type": [
"string",
"null"
]
},
"userFullName": {
"type": [
"string",
"null"
]
},
"userEmail": {
"type": [
"string",
"null"
]
},
"userPhone": {
"type": [
"string",
"null"
]
},
"userStatus": {
"type": [
"string",
"null"
]
},
"userCreatedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"userModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"userrole": {
"type": "array",
"items": {
"$ref": "#/definitions/userrole"
}
}
}
},
"role": {
"type": "object",
"properties": {
"roleID": {
"type": "integer"
},
"roleName": {
"type": [
"string",
"null"
]
},
"roleDescription": {
"type": [
"string",
"null"
]
},
"roleStatus": {
"type": [
"string",
"null"
]
},
"roleCreatedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"roleModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"userrole": {
"type": "array",
"items": {
"$ref": "#/definitions/userrole"
}
}
}
},
"lookup": {
"type": "object",
"properties": {
"lookupID": {
"type": "integer"
},
"lookupOrder": {
"type": [
"integer",
"null"
]
},
"lookupTitle": {
"type": [
"string",
"null"
]
},
"lookupRefCode": {
"type": [
"string",
"null"
]
},
"lookupValue": {
"type": [
"string",
"null"
]
},
"lookupType": {
"type": [
"string",
"null"
]
},
"lookupStatus": {
"type": [
"string",
"null"
]
},
"lookupCreatedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"lookupModifiedDate": {
"type": [
"string",
"null"
],
"format": "date-time"
}
}
},
"userrole": {
"type": "object",
"properties": {
"userRoleID": {
"type": "integer"
},
"userRoleCreatedDate": {
"type": "string",
"format": "date-time"
},
"role": {
"$ref": "#/definitions/role"
},
"user": {
"$ref": "#/definitions/user"
}
}
}
},
"type": "object",
"properties": {
"audit": {
"$ref": "#/definitions/audit"
},
"user": {
"$ref": "#/definitions/user"
},
"role": {
"$ref": "#/definitions/role"
},
"lookup": {
"$ref": "#/definitions/lookup"
},
"userrole": {
"$ref": "#/definitions/userrole"
}
}
}