feat(lstv2 move): moved lstv2 into this app to keep them combined and easier to maintain
This commit is contained in:
20
lstV2/database/migrations/0015_wonderful_lady_vermin.sql
Normal file
20
lstV2/database/migrations/0015_wonderful_lady_vermin.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
CREATE TABLE "rfidReaders" (
|
||||
"rfidReader_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"reader" text,
|
||||
"readerIP" text,
|
||||
"lastHeartBeat" timestamp DEFAULT now()
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "rfidTags" (
|
||||
"rfidTag_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"tagHex" text,
|
||||
"tag" text,
|
||||
"timeStamp" timestamp DEFAULT now(),
|
||||
"counts" jsonb NOT NULL,
|
||||
"lastareaIn" text NOT NULL,
|
||||
"runningNumber" numeric NOT NULL,
|
||||
"created_at" timestamp DEFAULT now()
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "reader" ON "rfidReaders" USING btree ("reader");--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "tagHex" ON "rfidTags" USING btree ("tagHex");
|
||||
Reference in New Issue
Block a user