feat: 初始化核心数据库表结构、Go模型并包含日期字段类型迁移脚本

This commit is contained in:
2026-01-28 23:30:54 +08:00
parent d588235461
commit aad9fec461
3 changed files with 21 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ CREATE TABLE IF NOT EXISTS `transactions` (
`category_id` bigint(20) unsigned NOT NULL,
`account_id` bigint(20) unsigned NOT NULL,
`currency` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'CNY',
`transaction_date` date NOT NULL,
`transaction_date` datetime NOT NULL,
`note` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`image_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`recurring_id` bigint(20) unsigned DEFAULT NULL,