mrfrys-node-server/modules/api/apiDBStruct.json

79 lines
1.3 KiB
JSON

{
"users": {
"tableStruct": {
"id": {
"type": "integer",
"primary": true,
"autoIncrement": true
},
"pw": {
"type": "text",
"notNull": true,
"unique": true
},
"lastIP": {
"type": "text"
},
"notes": {
"type": "text"
},
"loginCount": {
"type": "number"
},
"lastLogin": {
"type": "text"
},
"lastAccess": {
"type": "text"
}
}
},
"sessions": {
"foreignKey": {
"keysFrom": [
"userID"
],
"table": "users",
"keysTo": [
"id"
]
},
"tableStruct": {
"id": {
"type": "text",
"primary": true,
"notNull": true
},
"ip": {
"type": "text",
"notNull": true
},
"userID": {
"type": "number",
"notNull": true
},
"createDate": {
"type": "text",
"notNull": true
},
"lastAccess": {
"type": "text"
}
}
},
"acesses": {
"tableStruct": {
"accessId": {
"type": "number",
"primary": true,
"notNull": true
},
"userId": {
"type": "number"
},
"ip": {
"type": "text"
}
}
}
}