refactor(modules): moved modules to app to control everything based on there active setting
This commit is contained in:
23
migrations/0021_motionless_ezekiel.sql
Normal file
23
migrations/0021_motionless_ezekiel.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
CREATE TABLE "forecast_Data" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"customer_article_number" text,
|
||||
"date_requested" timestamp DEFAULT now(),
|
||||
"quantity" real,
|
||||
"request_date" timestamp NOT NULL,
|
||||
"article" integer,
|
||||
"customer_id" integer NOT NULL,
|
||||
"created_at" timestamp DEFAULT now()
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE "modules" (
|
||||
"module_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"active" boolean DEFAULT false,
|
||||
"roles" jsonb DEFAULT '["view","systemAdmin"]'::jsonb NOT NULL,
|
||||
"add_User" text DEFAULT 'LST_System' NOT NULL,
|
||||
"add_Date" timestamp DEFAULT now(),
|
||||
"upd_User" text DEFAULT 'LST_System' NOT NULL,
|
||||
"upd_date" timestamp DEFAULT now()
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "module_name" ON "modules" USING btree ("name");
|
||||
1
migrations/0022_old_next_avengers.sql
Normal file
1
migrations/0022_old_next_avengers.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "modules" ADD COLUMN "category" text;
|
||||
2
migrations/0023_minor_marvel_zombies.sql
Normal file
2
migrations/0023_minor_marvel_zombies.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "modules" ADD COLUMN "icon" text;--> statement-breakpoint
|
||||
ALTER TABLE "modules" ADD COLUMN "link" text;
|
||||
1721
migrations/meta/0021_snapshot.json
Normal file
1721
migrations/meta/0021_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1727
migrations/meta/0022_snapshot.json
Normal file
1727
migrations/meta/0022_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1739
migrations/meta/0023_snapshot.json
Normal file
1739
migrations/meta/0023_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -148,6 +148,27 @@
|
||||
"when": 1760703799708,
|
||||
"tag": "0020_conscious_hairball",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 21,
|
||||
"version": "7",
|
||||
"when": 1761776315202,
|
||||
"tag": "0021_motionless_ezekiel",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 22,
|
||||
"version": "7",
|
||||
"when": 1761780723108,
|
||||
"tag": "0022_old_next_avengers",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 23,
|
||||
"version": "7",
|
||||
"when": 1761781568161,
|
||||
"tag": "0023_minor_marvel_zombies",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user