feat(rfid): reader and tag db completed
This commit is contained in:
1
database/migrations/0017_bitter_brood.sql
Normal file
1
database/migrations/0017_bitter_brood.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE "rfidReaders" ADD COLUMN "lastTrigger" timestamp DEFAULT now();
|
||||||
1
database/migrations/0018_lovely_landau.sql
Normal file
1
database/migrations/0018_lovely_landau.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE "rfidReaders" ADD COLUMN "active" boolean DEFAULT true;
|
||||||
2
database/migrations/0019_greedy_justice.sql
Normal file
2
database/migrations/0019_greedy_justice.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
ALTER TABLE "rfidTags" ADD COLUMN "antenna" numeric;--> statement-breakpoint
|
||||||
|
ALTER TABLE "rfidTags" ADD COLUMN "tagStrength" numeric;
|
||||||
2
database/migrations/0020_empty_thundra.sql
Normal file
2
database/migrations/0020_empty_thundra.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
ALTER TABLE "rfidTags" ALTER COLUMN "counts" SET DEFAULT '[]'::jsonb;--> statement-breakpoint
|
||||||
|
ALTER TABLE "rfidTags" ALTER COLUMN "counts" DROP NOT NULL;
|
||||||
4
database/migrations/0021_premium_albert_cleary.sql
Normal file
4
database/migrations/0021_premium_albert_cleary.sql
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
ALTER TABLE "rfidTags" ALTER COLUMN "runningNumber" SET DATA TYPE integer;--> statement-breakpoint
|
||||||
|
ALTER TABLE "rfidTags" ALTER COLUMN "runningNumber" DROP NOT NULL;--> statement-breakpoint
|
||||||
|
ALTER TABLE "rfidTags" ALTER COLUMN "antenna" SET DATA TYPE integer;--> statement-breakpoint
|
||||||
|
ALTER TABLE "rfidTags" ALTER COLUMN "tagStrength" SET DATA TYPE integer;
|
||||||
1
database/migrations/0022_amused_true_believers.sql
Normal file
1
database/migrations/0022_amused_true_believers.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE "rfidReaders" ADD COLUMN "lastTiggerGood" boolean DEFAULT true;
|
||||||
1047
database/migrations/meta/0017_snapshot.json
Normal file
1047
database/migrations/meta/0017_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1054
database/migrations/meta/0018_snapshot.json
Normal file
1054
database/migrations/meta/0018_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1066
database/migrations/meta/0019_snapshot.json
Normal file
1066
database/migrations/meta/0019_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1067
database/migrations/meta/0020_snapshot.json
Normal file
1067
database/migrations/meta/0020_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1067
database/migrations/meta/0021_snapshot.json
Normal file
1067
database/migrations/meta/0021_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1074
database/migrations/meta/0022_snapshot.json
Normal file
1074
database/migrations/meta/0022_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -120,6 +120,48 @@
|
|||||||
"when": 1742051878587,
|
"when": 1742051878587,
|
||||||
"tag": "0016_wet_doctor_strange",
|
"tag": "0016_wet_doctor_strange",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 17,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1742133439717,
|
||||||
|
"tag": "0017_bitter_brood",
|
||||||
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 18,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1742133828291,
|
||||||
|
"tag": "0018_lovely_landau",
|
||||||
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 19,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1742139737945,
|
||||||
|
"tag": "0019_greedy_justice",
|
||||||
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 20,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1742143798267,
|
||||||
|
"tag": "0020_empty_thundra",
|
||||||
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 21,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1742144973347,
|
||||||
|
"tag": "0021_premium_albert_cleary",
|
||||||
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 22,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1742156466912,
|
||||||
|
"tag": "0022_amused_true_believers",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
23935
package-lock.json
generated
23935
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
148
package.json
148
package.json
@@ -1,75 +1,77 @@
|
|||||||
{
|
{
|
||||||
"name": "lstv2",
|
"name": "lstv2",
|
||||||
"version": "2.7.0",
|
"version": "2.7.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "concurrently -n \"server,frontend\" -c \"#007755,#2f6da3\" \"npm run dev:server\" \"cd frontend && npm run dev\"",
|
"dev": "concurrently -n \"server,frontend\" -c \"#007755,#2f6da3\" \"npm run dev:server\" \"cd frontend && npm run dev\"",
|
||||||
"dev:server": "dotenvx run -f .env -- tsx watch server/index.ts",
|
"dev:server": "dotenvx run -f .env -- tsx watch server/index.ts",
|
||||||
"dev:frontend": "cd frontend && npm run dev",
|
"dev:frontend": "cd frontend && npm run dev",
|
||||||
"dev:dbgen": " drizzle-kit generate --config=drizzle-dev.config.ts",
|
"dev:dbgen": " drizzle-kit generate --config=drizzle-dev.config.ts",
|
||||||
"dev:dbmigrate": " drizzle-kit migrate --config=drizzle-dev.config.ts",
|
"dev:dbmigrate": " drizzle-kit migrate --config=drizzle-dev.config.ts",
|
||||||
"build": "npm run build:server && npm run build:frontend",
|
"build": "npm run build:server && npm run build:frontend",
|
||||||
"build:server": "rimraf build && tsc --build && xcopy server\\scripts dist\\server\\scripts /E /I /Y && xcopy server\\services\\server\\utils\\serverData.json dist\\server\\services\\server\\utils /E /I /Y ",
|
"build:server": "rimraf build && tsc --build && xcopy server\\scripts dist\\server\\scripts /E /I /Y && xcopy server\\services\\server\\utils\\serverData.json dist\\server\\services\\server\\utils /E /I /Y ",
|
||||||
"build:frontend": "cd frontend && npm run build",
|
"build:frontend": "cd frontend && npm run build",
|
||||||
"start": "set NODE_ENV=production && npm run start:server",
|
"start": "set NODE_ENV=production && npm run start:server",
|
||||||
"start:server": "dotenvx run -f .env -- node dist/server/index.js",
|
"start:server": "dotenvx run -f .env -- node dist/server/index.js",
|
||||||
"db:generate": "npx drizzle-kit generate",
|
"db:generate": "npx drizzle-kit generate",
|
||||||
"db:migrate": "npx drizzle-kit push",
|
"db:migrate": "npx drizzle-kit push",
|
||||||
"deploy": "standard-version --conventional-commits && npm run prodBuild",
|
"db:dev": "npm run build && npm run db:generate && npm run db:migrate",
|
||||||
"zipServer": "dotenvx run -f .env -- tsx server/scripts/zipUpBuild.ts \"C:\\Users\\matthes01\\Documents\\lstv2\"",
|
"deploy": "standard-version --conventional-commits && npm run prodBuild",
|
||||||
"prodBuild": "powershell -ExecutionPolicy Bypass -File server/scripts/build.ps1 -dir \"C:\\Users\\matthes01\\Documents\\lstv2\" && npm run zipServer",
|
"zipServer": "dotenvx run -f .env -- tsx server/scripts/zipUpBuild.ts \"C:\\Users\\matthes01\\Documents\\lstv2\"",
|
||||||
"commit": "cz",
|
"prodBuild": "powershell -ExecutionPolicy Bypass -File server/scripts/build.ps1 -dir \"C:\\Users\\matthes01\\Documents\\lstv2\" && npm run zipServer",
|
||||||
"prodinstall": "npm i --omit=dev && npm run db:migrate"
|
"commit": "cz",
|
||||||
},
|
"prodinstall": "npm i --omit=dev && npm run db:migrate",
|
||||||
"dependencies": {
|
"checkupdates": "npm-check-updates"
|
||||||
"@dotenvx/dotenvx": "^1.38.3",
|
},
|
||||||
"@hono/node-server": "^1.13.8",
|
"dependencies": {
|
||||||
"@hono/zod-openapi": "^0.18.4",
|
"@dotenvx/dotenvx": "^1.38.3",
|
||||||
"@scalar/hono-api-reference": "^0.5.175",
|
"@hono/node-server": "^1.13.8",
|
||||||
"@types/jsonwebtoken": "^9.0.8",
|
"@hono/zod-openapi": "^0.18.4",
|
||||||
"adm-zip": "^0.5.16",
|
"@scalar/hono-api-reference": "^0.5.175",
|
||||||
"axios": "^1.7.9",
|
"@types/jsonwebtoken": "^9.0.8",
|
||||||
"bcrypt": "^5.1.1",
|
"adm-zip": "^0.5.16",
|
||||||
"compression": "^1.8.0",
|
"axios": "^1.7.9",
|
||||||
"cookie": "^1.0.2",
|
"bcrypt": "^5.1.1",
|
||||||
"date-fns": "^4.1.0",
|
"compression": "^1.8.0",
|
||||||
"dotenv": "^16.4.7",
|
"cookie": "^1.0.2",
|
||||||
"drizzle-kit": "^0.30.4",
|
"date-fns": "^4.1.0",
|
||||||
"drizzle-orm": "^0.39.3",
|
"dotenv": "^16.4.7",
|
||||||
"drizzle-zod": "^0.7.0",
|
"drizzle-kit": "^0.30.4",
|
||||||
"jsonwebtoken": "^9.0.2",
|
"drizzle-orm": "^0.39.3",
|
||||||
"mssql": "^11.0.1",
|
"drizzle-zod": "^0.7.0",
|
||||||
"nodemailer": "^6.10.0",
|
"jsonwebtoken": "^9.0.2",
|
||||||
"nodemailer-express-handlebars": "^7.0.0",
|
"mssql": "^11.0.1",
|
||||||
"pg": "^8.13.3",
|
"nodemailer": "^6.10.0",
|
||||||
"pino": "^9.6.0",
|
"nodemailer-express-handlebars": "^7.0.0",
|
||||||
"pino-abstract-transport": "^2.0.0",
|
"pg": "^8.13.3",
|
||||||
"pino-pretty": "^13.0.0",
|
"pino": "^9.6.0",
|
||||||
"postgres": "^3.4.5",
|
"pino-abstract-transport": "^2.0.0",
|
||||||
"zod": "^3.24.2"
|
"pino-pretty": "^13.0.0",
|
||||||
},
|
"postgres": "^3.4.5",
|
||||||
"devDependencies": {
|
"zod": "^3.24.2"
|
||||||
"@types/adm-zip": "^0.5.7",
|
},
|
||||||
"@types/bcrypt": "^5.0.2",
|
"devDependencies": {
|
||||||
"@types/js-cookie": "^3.0.6",
|
"@types/adm-zip": "^0.5.7",
|
||||||
"@types/mssql": "^9.1.7",
|
"@types/bcrypt": "^5.0.2",
|
||||||
"@types/node": "^22.13.5",
|
"@types/js-cookie": "^3.0.6",
|
||||||
"@types/pg": "^8.11.11",
|
"@types/mssql": "^9.1.7",
|
||||||
"concurrently": "^8.2.0",
|
"@types/node": "^22.13.5",
|
||||||
"cz-conventional-changelog": "^3.3.0",
|
"@types/pg": "^8.11.11",
|
||||||
"dotenv": "^16.3.1",
|
"concurrently": "^8.2.0",
|
||||||
"rimraf": "^6.0.1",
|
"cz-conventional-changelog": "^3.3.0",
|
||||||
"standard-version": "^9.5.0",
|
"dotenv": "^16.3.1",
|
||||||
"tsx": "^4.7.1",
|
"rimraf": "^6.0.1",
|
||||||
"typescript": "~5.7.3"
|
"standard-version": "^9.5.0",
|
||||||
},
|
"tsx": "^4.7.1",
|
||||||
"config": {
|
"typescript": "~5.7.3"
|
||||||
"commitizen": {
|
},
|
||||||
"path": "./node_modules/cz-conventional-changelog"
|
"config": {
|
||||||
|
"commitizen": {
|
||||||
|
"path": "./node_modules/cz-conventional-changelog"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"admConfig": {
|
||||||
|
"build": 19,
|
||||||
|
"oldBuild": "backend-0.1.2-217.zip"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"admConfig": {
|
|
||||||
"build": 19,
|
|
||||||
"oldBuild": "backend-0.1.2-217.zip"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user