Authetication, logger middleware, db create tool

This commit is contained in:
MrFry 2020-04-07 09:26:45 +02:00
parent 5f0b17a0db
commit ebd27f93c1
11 changed files with 164 additions and 94 deletions

View file

@ -1,13 +1,15 @@
{
"users": {
"tableStruct": {
"id": {
"type": "integer",
"primary": true,
"autoIncrement": true
},
"pw": {
"type": "text",
"primary": true,
"notNull": true
},
"id": {
"type": "number"
"notNull": true,
"unique": true
},
"lastIP": {
"type": "text"
@ -27,6 +29,15 @@
}
},
"sessions": {
"foreignKey": {
"keysFrom": [
"userID"
],
"table": "users",
"keysTo": [
"id"
]
},
"tableStruct": {
"id": {
"type": "text",