新增配置项

This commit is contained in:
Bob.Song
2026-02-08 17:09:34 +08:00
parent 9dd1e6c278
commit 3b0ca1158a
5 changed files with 61 additions and 7 deletions

View File

@@ -30,5 +30,6 @@ public static class DB
//建表
Main.CodeFirst.InitTables<VideoTable>();
Main.CodeFirst.InitTables<DeviceTable>();
Main.CodeFirst.InitTables<ConfigTable>();
}
}

15
Db/Tables/ConfigTable.cs Normal file
View File

@@ -0,0 +1,15 @@
using SqlSugar;
namespace ACBuildService;
[SugarTable("cfg")]
public class ConfigTable
{
/// <summary>
/// 设备id
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public string Key { get; set; }
public string Value { get; set; }
}