优化项目结构

This commit is contained in:
eafonyang
2026-08-13 14:23:01 +08:00
parent e40d9d6b27
commit d01b0c8f47
29 changed files with 620 additions and 872 deletions
@@ -1,4 +1,4 @@
import { mysqlTable, bigint, varchar, tinyint, int, text, decimal, json, datetime } from 'drizzle-orm/mysql-core';
import { mysqlTable, bigint, varchar, tinyint, int, text, json, datetime } from 'drizzle-orm/mysql-core';
import { sql } from 'drizzle-orm';
export const wwwSectionBlocks = mysqlTable('www_section_blocks', {
@@ -13,8 +13,6 @@ export const wwwSectionBlocks = mysqlTable('www_section_blocks', {
bodyColor: varchar('body_color', { length: 20 }).notNull().default(''),
bgType: varchar('bg_type', { length: 10 }).notNull().default('color'),
bgValue: varchar('bg_value', { length: 500 }).notNull().default(''),
overlayEnabled: tinyint('overlay_enabled').notNull().default(0),
overlayOpacity: decimal('overlay_opacity', { precision: 3, scale: 2 }).notNull().default('0.00'),
overlineZh: varchar('overline_zh', { length: 100 }).notNull().default(''),
overlineEn: varchar('overline_en', { length: 100 }).notNull().default(''),
titleZh: varchar('title_zh', { length: 200 }).notNull().default(''),