Minor db struct changes

This commit is contained in:
mrfry 2021-05-26 16:10:58 +02:00
parent ca742fce80
commit 164e22d888
5 changed files with 3 additions and 12 deletions

View file

@ -11,10 +11,6 @@
"notNull": true,
"unique": true
},
"oldCID": {
"type": "text",
"unique": true
},
"notes": {
"type": "text"
},
@ -40,10 +36,6 @@
"type": "number",
"defaultZero": true
},
"pwGotFromCID": {
"type": "number",
"defaultZero": true
},
"createdBy": {
"type": "number"
}

View file

@ -40,7 +40,6 @@ function CreateDB() {
try {
dbtools.Insert(authDB, 'users', {
pw: uuidv4(),
oldCID: cid,
avaiblePWRequests: 4,
created: utils.GetDateString(),
})

View file

@ -63,9 +63,9 @@ export interface User {
id: number
pw: string
pwRequestCount: number
pwGotFromCID: number
avaiblePWRequests: number
loginCount: number
createdBy: number
}
export interface Request extends express.Request {

@ -1 +1 @@
Subproject commit 00ceb74ba763ebbca1a3edc8f0fc682e59f214a3
Subproject commit 27211c7bc83e0e930fabc430ffb5615b52523106

@ -1 +1 @@
Subproject commit 5d233f549dbaf3dd608481b3dddda67e41d4bea0
Subproject commit dafcefd4f459d14737a9922cc4ba0400fbc9040a