-- CreateTable: 预种计划开关配置
CREATE TABLE "pre_planting_configs" (
    "id" TEXT NOT NULL,
    "is_active" BOOLEAN NOT NULL DEFAULT false,
    "activated_at" TIMESTAMP(3),
    "updated_at" TIMESTAMP(3) NOT NULL,
    "updated_by" VARCHAR(50),

    CONSTRAINT "pre_planting_configs_pkey" PRIMARY KEY ("id")
);

-- 插入默认配置（关闭状态）
INSERT INTO "pre_planting_configs" ("id", "is_active", "updated_at")
VALUES (gen_random_uuid(), false, NOW());
