data.sql
1.6 KB
-- 初始化数据脚本
-- 插入默认公司
INSERT INTO ai_companies (name, status, created_at, updated_at)
VALUES ('Default Company', 'active', NOW(), NOW());
-- 插入默认用户 (密码为 "password" 的BCrypt哈希)
INSERT INTO ai_users (company_id, username, email, password_hash, role, is_active, created_at, updated_at)
VALUES (1, 'admin', 'admin@aigeo.com', '$2a$10$wQ8vI6jJ2x6Dit4G3E0jVOvH9JqKz3Zs5r1D4r6H7a8B9c0D1e2F3g4', 'admin', 1, NOW(), NOW());
-- 插入AI功能模块
INSERT INTO ai_features (feature_key, name, description, category, is_premium, sort_order, is_active, created_at)
VALUES
('ai_article', 'AI文章生成', '基于关键词和主题自动生成高质量文章', 'content', 0, 1, 1, NOW()),
('ai_landing_page', 'AI落地页生成', '根据业务需求自动生成营销落地页', 'marketing', 0, 2, 1, NOW()),
('ai_website', 'AI网站生成', '一键生成企业官网或电商网站', 'website', 1, 3, 1, NOW());
-- 插入文章类型
INSERT INTO ai_article_types (name, description, is_active, created_at, updated_at)
VALUES
('产品介绍', '产品介绍类文章', 1, NOW(), NOW()),
('新闻稿', '企业新闻稿', 1, NOW(), NOW()),
('博客文章', '技术博客或行业分析文章', 1, NOW(), NOW());
-- 插入落地页模板
INSERT INTO ai_landing_page_templates (name, code, description, is_active, created_at, updated_at)
VALUES
('单栏布局', 'single-column', '简洁的单栏布局模板', 1, NOW(), NOW()),
('两栏布局', 'two-column', '经典的两栏布局模板', 1, NOW(), NOW()),
('产品展示', 'product-showcase', '专注于产品展示的模板', 1, NOW(), NOW());