{"repo": "alexrasch/copilotdeepseek", "files": {"CopilotDeepSeek.Database/Migrations/AppDbContextModelSnapshot.cs": {"437cf1450835138433373365e2dc68f7dbc4eab5": {"t": 1785746200.662505, "n": 4800, "h": "868d8b2c20a6d198", "c": "// \nusing System;\nusing CopilotDeepSeek.Database;\nusing Microsoft.EntityFrameworkCore;\nusing Microsoft.EntityFrameworkCore.Infrastructure;\nusing Microsoft.EntityFrameworkCore.Storage.ValueConversion;\n\n#nullable disable\n\nnamespace CopilotDeepSeek.Database.Migrations\n{\n [DbContext(typeof(AppDbContext))]\n partial class AppDbContextModelSnapshot : ModelSnapshot\n {\n protected override void BuildModel(ModelBuilder modelBuilder)\n {\n#pragma warning disable 612, 618\n modelBuilder.HasAnnotation(\"ProductVersion\", \"10.0.8\");\n\n modelBuilder.Entity(\"CopilotDeepSeek.Database.Entities.AiModel\", b =>\n {\n b.Property(\"Id\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"IsAllowed\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\")\n .HasDefaultValue(true);\n\n b.Property(\"Name\")\n .IsRequired()\n .HasMaxLength(128)\n .HasColumnType(\"TEXT\");\n\n b.HasKey(\"Id\");\n\n b.HasIndex(\"Name\")\n .IsUnique();\n\n b.ToTable(\"AiModels\");\n });\n\n modelBuilder.Entity(\"CopilotDeepSeek.Database.Entities.ProxyRequest\", b =>\n {\n b.Property(\"Id\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"ElapsedMs\")\n .HasColumnType(\"REAL\");\n\n b.Property(\"ErrorMessage\")\n .HasColumnType(\"TEXT\");\n\n b.Property(\"IsSuccess\")\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"Method\")\n .IsRequired()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"Path\")\n .IsRequired()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"StatusCode\")\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"Timestamp\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"TEXT\")\n .HasDefaultValueSql(\"CURRENT_TIMESTAMP\");\n\n b.HasKey(\"Id\");\n\n b.HasIndex(\"IsSuccess\");\n\n b.HasIndex(\"Timestamp\");\n\n b.ToTable(\"ProxyRequests\");\n });\n\n modelBuilder.Entity(\"CopilotDeepSeek.Database.Entities.SettingsEntity\", b =>\n {\n b.Property(\"Id\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"ApiKey\")\n .IsRequired()\n .HasMaxLength(1024)\n .HasColumnType(\"TEXT\");\n\n b.Property(\"AutoRun\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\")\n .HasDefaultValue(true);\n\n b.Property(\"BalanceRefreshIntervalSec\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\")\n .HasDefaultValue(60);\n\n b.Property(\"BaseUrl\")\n .IsRequired()\n .HasMaxLength(512)\n .HasColumnType(\"TEXT\");\n\n b.Property(\"DefaultModelId\")\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"MaxMessages\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\")\n .HasDefaultValue(0);\n\n b.Property(\"Port\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\")\n .HasDefaultValue(5000);\n\n b.HasKey(\"Id\");\n\n b.ToTable(\"Settings\");\n\n b.HasData(\n new\n {\n Id = 1,\n ApiKey = \"\",\n AutoRun = true,\n BalanceRefreshIntervalSec = 60,\n BaseUrl = \"https://api.deepseek.com\",\n MaxMessages = 0,\n Port = 5000\n });\n });\n#pragma warning restore 612, 618\n }\n }\n}\n"}, "2de97d77c220812ef0d057dd9202d905ebee7d8e": {"t": 1785760550.1280565, "n": 4800, "h": "868d8b2c20a6d198", "c": "// \nusing System;\nusing CopilotDeepSeek.Database;\nusing Microsoft.EntityFrameworkCore;\nusing Microsoft.EntityFrameworkCore.Infrastructure;\nusing Microsoft.EntityFrameworkCore.Storage.ValueConversion;\n\n#nullable disable\n\nnamespace CopilotDeepSeek.Database.Migrations\n{\n [DbContext(typeof(AppDbContext))]\n partial class AppDbContextModelSnapshot : ModelSnapshot\n {\n protected override void BuildModel(ModelBuilder modelBuilder)\n {\n#pragma warning disable 612, 618\n modelBuilder.HasAnnotation(\"ProductVersion\", \"10.0.8\");\n\n modelBuilder.Entity(\"CopilotDeepSeek.Database.Entities.AiModel\", b =>\n {\n b.Property(\"Id\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"IsAllowed\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\")\n .HasDefaultValue(true);\n\n b.Property(\"Name\")\n .IsRequired()\n .HasMaxLength(128)\n .HasColumnType(\"TEXT\");\n\n b.HasKey(\"Id\");\n\n b.HasIndex(\"Name\")\n .IsUnique();\n\n b.ToTable(\"AiModels\");\n });\n\n modelBuilder.Entity(\"CopilotDeepSeek.Database.Entities.ProxyRequest\", b =>\n {\n b.Property(\"Id\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"ElapsedMs\")\n .HasColumnType(\"REAL\");\n\n b.Property(\"ErrorMessage\")\n .HasColumnType(\"TEXT\");\n\n b.Property(\"IsSuccess\")\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"Method\")\n .IsRequired()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"Path\")\n .IsRequired()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"StatusCode\")\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"Timestamp\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"TEXT\")\n .HasDefaultValueSql(\"CURRENT_TIMESTAMP\");\n\n b.HasKey(\"Id\");\n\n b.HasIndex(\"IsSuccess\");\n\n b.HasIndex(\"Timestamp\");\n\n b.ToTable(\"ProxyRequests\");\n });\n\n modelBuilder.Entity(\"CopilotDeepSeek.Database.Entities.SettingsEntity\", b =>\n {\n b.Property(\"Id\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"ApiKey\")\n .IsRequired()\n .HasMaxLength(1024)\n .HasColumnType(\"TEXT\");\n\n b.Property(\"AutoRun\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\")\n .HasDefaultValue(true);\n\n b.Property(\"BalanceRefreshIntervalSec\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\")\n .HasDefaultValue(60);\n\n b.Property(\"BaseUrl\")\n .IsRequired()\n .HasMaxLength(512)\n .HasColumnType(\"TEXT\");\n\n b.Property(\"DefaultModelId\")\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"MaxMessages\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\")\n .HasDefaultValue(0);\n\n b.Property(\"Port\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"INTEGER\")\n .HasDefaultValue(5000);\n\n b.HasKey(\"Id\");\n\n b.ToTable(\"Settings\");\n\n b.HasData(\n new\n {\n Id = 1,\n ApiKey = \"\",\n AutoRun = true,\n BalanceRefreshIntervalSec = 60,\n BaseUrl = \"https://api.deepseek.com\",\n MaxMessages = 0,\n Port = 5000\n });\n });\n#pragma warning restore 612, 618\n }\n }\n}\n"}, "9dc6ec92778fcdc67bd00044c5268b23eb0da970": {"t": 1785760551.625158, "n": 1959, "h": "bf5ead9c09994180", "c": "// \nusing System;\nusing CopilotDeepSeek.Database;\nusing Microsoft.EntityFrameworkCore;\nusing Microsoft.EntityFrameworkCore.Infrastructure;\nusing Microsoft.EntityFrameworkCore.Storage.ValueConversion;\n\n#nullable disable\n\nnamespace CopilotDeepSeek.Database.Migrations\n{\n [DbContext(typeof(AppDbContext))]\n partial class AppDbContextModelSnapshot : ModelSnapshot\n {\n protected override void BuildModel(ModelBuilder modelBuilder)\n {\n#pragma warning disable 612, 618\n modelBuilder.HasAnnotation(\"ProductVersion\", \"10.0.8\");\n\n modelBuilder.Entity(\"CopilotDeepSeek.Database.Entities.ProxyRequest\", b =>\n {\n b.Property(\"Id\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"ElapsedMs\")\n .HasColumnType(\"REAL\");\n\n b.Property(\"ErrorMessage\")\n .HasColumnType(\"TEXT\");\n\n b.Property(\"IsSuccess\")\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"Method\")\n .IsRequired()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"Path\")\n .IsRequired()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"StatusCode\")\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"Timestamp\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"TEXT\")\n .HasDefaultValueSql(\"CURRENT_TIMESTAMP\");\n\n b.HasKey(\"Id\");\n\n b.HasIndex(\"IsSuccess\");\n\n b.HasIndex(\"Timestamp\");\n\n b.ToTable(\"ProxyRequests\");\n });\n#pragma warning restore 612, 618\n }\n }\n}\n"}, "12cdc8baaee3b80c94e65cfcd32a635858196b08": {"t": 1785760553.0139272, "n": 1959, "h": "6ce38f046286bf02", "c": "// \nusing System;\nusing CopilotDeepSeek.Database;\nusing Microsoft.EntityFrameworkCore;\nusing Microsoft.EntityFrameworkCore.Infrastructure;\nusing Microsoft.EntityFrameworkCore.Storage.ValueConversion;\n\n#nullable disable\n\nnamespace CopilotDeepSeek.Database.Migrations\n{\n [DbContext(typeof(AppDbContext))]\n partial class AppDbContextModelSnapshot : ModelSnapshot\n {\n protected override void BuildModel(ModelBuilder modelBuilder)\n {\n#pragma warning disable 612, 618\n modelBuilder.HasAnnotation(\"ProductVersion\", \"10.0.8\");\n\n modelBuilder.Entity(\"CopilotDeepSeek.Database.Entities.ProxyRequest\", b =>\n {\n b.Property(\"Id\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"Elapsed\")\n .HasColumnType(\"TEXT\");\n\n b.Property(\"ErrorMessage\")\n .HasColumnType(\"TEXT\");\n\n b.Property(\"IsSuccess\")\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"Method\")\n .IsRequired()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"Path\")\n .IsRequired()\n .HasColumnType(\"TEXT\");\n\n b.Property(\"StatusCode\")\n .HasColumnType(\"INTEGER\");\n\n b.Property(\"Timestamp\")\n .ValueGeneratedOnAdd()\n .HasColumnType(\"TEXT\")\n .HasDefaultValueSql(\"CURRENT_TIMESTAMP\");\n\n b.HasKey(\"Id\");\n\n b.HasIndex(\"IsSuccess\");\n\n b.HasIndex(\"Timestamp\");\n\n b.ToTable(\"ProxyRequests\");\n });\n#pragma warning restore 612, 618\n }\n }\n}\n"}}, "CopilotDeepSeek.Database/Entities/SettingsEntity.cs": {"437cf1450835138433373365e2dc68f7dbc4eab5": {"t": 1785746208.0867522, "n": 1318, "h": "aa385a8197fcb727", "c": "namespace CopilotDeepSeek.Database.Entities;\n\n/// \n/// Entity representing application settings (single-row table).\n/// Only one row ever exists — Id is always 1.\n/// \npublic class SettingsEntity\n{\n /// \n /// Primary key — always 1 (singleton row).\n /// \n public int Id { get; set; } = 1;\n\n /// \n /// Encrypted DeepSeek API key.\n /// \n public string ApiKey { get; set; } = string.Empty;\n\n /// \n /// Whether the proxy should start automatically on launch.\n /// \n public bool AutoRun { get; set; } = true;\n\n /// \n /// Base URL for the DeepSeek API.\n /// \n public string BaseUrl { get; set; } = \"https://api.deepseek.com\";\n\n /// \n /// Port the proxy listens on.\n /// \n public int Port { get; set; } = 5000;\n\n /// \n /// Id of the default AiModel (resolved manually in service).\n /// \n public int? DefaultModelId { get; set; }\n\n /// \n /// Maximum number of messages to forward (0 = all).\n /// \n public int MaxMessages { get; set; } = 0;\n\n /// \n /// Interval in seconds for balance refresh.\n /// \n public int BalanceRefreshIntervalSec { get; set; } = 60;\n}\n"}, "2de97d77c220812ef0d057dd9202d905ebee7d8e": {"t": 1785760550.290229, "n": 1318, "h": "aa385a8197fcb727", "c": "namespace CopilotDeepSeek.Database.Entities;\n\n/// \n/// Entity representing application settings (single-row table).\n/// Only one row ever exists — Id is always 1.\n/// \npublic class SettingsEntity\n{\n /// \n /// Primary key — always 1 (singleton row).\n /// \n public int Id { get; set; } = 1;\n\n /// \n /// Encrypted DeepSeek API key.\n /// \n public string ApiKey { get; set; } = string.Empty;\n\n /// \n /// Whether the proxy should start automatically on launch.\n /// \n public bool AutoRun { get; set; } = true;\n\n /// \n /// Base URL for the DeepSeek API.\n /// \n public string BaseUrl { get; set; } = \"https://api.deepseek.com\";\n\n /// \n /// Port the proxy listens on.\n /// \n public int Port { get; set; } = 5000;\n\n /// \n /// Id of the default AiModel (resolved manually in service).\n /// \n public int? DefaultModelId { get; set; }\n\n /// \n /// Maximum number of messages to forward (0 = all).\n /// \n public int MaxMessages { get; set; } = 0;\n\n /// \n /// Interval in seconds for balance refresh.\n /// \n public int BalanceRefreshIntervalSec { get; set; } = 60;\n}\n"}}}}