Add schedule management features

- Implemented `HandleSchedules` component for creating and updating schedules with validation.
- Added `ShowSchedules` component to display a list of schedules with options to edit and delete.
- Created API routes for schedule management including create, update, delete, and list functionalities.
- Defined the `schedule` table schema in the database with necessary fields and relationships.
- Integrated schedule management into the application service dashboard, allowing users to manage schedules directly from the UI.
This commit is contained in:
Mauricio Siu
2025-05-02 03:21:13 -06:00
parent 7ae3ff22ee
commit d4064805eb
11 changed files with 5881 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS "schedule" (
"scheduleId" text PRIMARY KEY NOT NULL,
"name" text NOT NULL,
"cronExpression" text NOT NULL,
"command" text NOT NULL,
"applicationId" text NOT NULL REFERENCES "application"("applicationId") ON DELETE CASCADE,
"createdAt" text NOT NULL
);

View File

@@ -0,0 +1,10 @@
CREATE TABLE "schedule" (
"scheduleId" text PRIMARY KEY NOT NULL,
"name" text NOT NULL,
"cronExpression" text NOT NULL,
"command" text NOT NULL,
"applicationId" text NOT NULL,
"createdAt" text NOT NULL
);
--> statement-breakpoint
ALTER TABLE "schedule" ADD CONSTRAINT "schedule_applicationId_application_applicationId_fk" FOREIGN KEY ("applicationId") REFERENCES "public"."application"("applicationId") ON DELETE cascade ON UPDATE no action;

File diff suppressed because it is too large Load Diff

View File

@@ -617,6 +617,13 @@
"when": 1745723563822,
"tag": "0087_lively_risque",
"breakpoints": true
},
{
"idx": 88,
"version": "7",
"when": 1746177535905,
"tag": "0088_worthless_surge",
"breakpoints": true
}
]
}