官网内容管理-后端接口开发

This commit is contained in:
eafonyang
2026-07-30 17:33:08 +08:00
parent b1c88fc5e6
commit e71d18b331
34 changed files with 4246 additions and 0 deletions
@@ -0,0 +1,9 @@
import { mysqlTable, bigint, varchar } from 'drizzle-orm/mysql-core';
export const wwwI18nEntries = mysqlTable('www_i18n_entries', {
id: bigint('id', { mode: 'number', unsigned: true }).primaryKey().autoincrement(),
dictKey: varchar('dict_key', { length: 100 }).notNull().unique(),
valueZh: varchar('value_zh', { length: 500 }).notNull().default(''),
valueEn: varchar('value_en', { length: 500 }).notNull().default(''),
description: varchar('description', { length: 200 }).notNull().default(''),
});