mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2026-04-28 03:07:38 +02:00
Authetication, logger middleware, db create tool
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user