Adding methods to delete backups on remote storage s3 and local. Some refactoring on models db and adding common.ts model with createdAt, updatedAt, and deletedAt.

This commit is contained in:
charlesgauthereau
2025-08-31 18:24:07 +02:00
parent 45e3b31fda
commit 2d559e456d
2 changed files with 1370 additions and 0 deletions
@@ -0,0 +1,15 @@
ALTER TABLE "settings" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "account" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "session" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "verification" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "organization" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "member" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "invitation" ADD COLUMN "updated_at" timestamp;--> statement-breakpoint
ALTER TABLE "invitation" ADD COLUMN "created_at" timestamp DEFAULT now() NOT NULL;--> statement-breakpoint
ALTER TABLE "invitation" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "projects" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "backups" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "databases" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "restorations" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "retention_policies" ADD COLUMN "deleted_at" timestamp;--> statement-breakpoint
ALTER TABLE "agents" ADD COLUMN "deleted_at" timestamp;
File diff suppressed because it is too large Load Diff