mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Db structure changes
This commit is contained in:
parent
6eef9fd1c0
commit
bf2f63e810
6 changed files with 19 additions and 93 deletions
|
@ -15,9 +15,6 @@
|
|||
"type": "text",
|
||||
"unique": true
|
||||
},
|
||||
"lastIP": {
|
||||
"type": "text"
|
||||
},
|
||||
"notes": {
|
||||
"type": "text"
|
||||
},
|
||||
|
@ -46,15 +43,22 @@
|
|||
"pwGotFromCID": {
|
||||
"type": "number",
|
||||
"defaultZero": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sessions": {
|
||||
"foreignKey": [
|
||||
{
|
||||
"keysFrom": ["userID"],
|
||||
"keysFrom": [
|
||||
"userID"
|
||||
],
|
||||
"table": "users",
|
||||
"keysTo": ["id"]
|
||||
"keysTo": [
|
||||
"id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"tableStruct": {
|
||||
|
@ -63,10 +67,6 @@
|
|||
"primary": true,
|
||||
"notNull": true
|
||||
},
|
||||
"ip": {
|
||||
"type": "text",
|
||||
"notNull": true
|
||||
},
|
||||
"userID": {
|
||||
"type": "number",
|
||||
"notNull": true
|
||||
|
@ -83,58 +83,5 @@
|
|||
"notNull": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"accesses": {
|
||||
"foreignKey": [
|
||||
{
|
||||
"keysFrom": ["userID"],
|
||||
"table": "users",
|
||||
"keysTo": ["id"]
|
||||
}
|
||||
],
|
||||
"tableStruct": {
|
||||
"accessID": {
|
||||
"type": "integer",
|
||||
"primary": true,
|
||||
"autoIncrement": true
|
||||
},
|
||||
"userID": {
|
||||
"type": "number",
|
||||
"notNull": true
|
||||
},
|
||||
"ip": {
|
||||
"type": "text",
|
||||
"notNull": true
|
||||
},
|
||||
"date": {
|
||||
"type": "text",
|
||||
"notNull": true
|
||||
},
|
||||
"sessionID": {
|
||||
"type": "text",
|
||||
"notNull": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"veteranPWRequests": {
|
||||
"tableStruct": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"primary": true,
|
||||
"autoIncrement": true
|
||||
},
|
||||
"ip": {
|
||||
"type": "text",
|
||||
"notNull": true
|
||||
},
|
||||
"count": {
|
||||
"type": "number",
|
||||
"defaultZero": true
|
||||
},
|
||||
"lastDate": {
|
||||
"type": "text",
|
||||
"notNull": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue