CREATE TABLE "datamart" (
	"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
	"name" text,
	"description" text NOT NULL,
	"query" text,
	"version" integer NOT NULL,
	"active" boolean DEFAULT true,
	"checked" text DEFAULT '',
	"add_date" timestamp DEFAULT now(),
	"add_user" text DEFAULT 'lst-system',
	"upd_date" text DEFAULT 'lst-system'
);
--> statement-breakpoint
ALTER TABLE "logs" ADD COLUMN "created_at" timestamp DEFAULT now();--> statement-breakpoint
ALTER TABLE "logs" DROP COLUMN "createdAt";