ai-chatbot/lib/db/migrations_legacy/0022_add_monthly_image_limit.sql
Your Name 310dd115b2
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore(db): keep drizzle migrations folder journal-only
2026-02-14 01:30:51 +08:00

10 lines
353 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 迁移文件:0022_add_monthly_image_limit.sql
-- 功能:添加每月出图限额字段
-- 添加每月出图限额字段到 User 表
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "monthlyImageLimit" integer DEFAULT NULL;
-- 添加字段注释
COMMENT ON COLUMN "User"."monthlyImageLimit" IS '每月图片生成限额,NULL或0表示无限制';