修改初始数据

This commit is contained in:
2024-10-13 22:09:08 +08:00
parent 8845fb6521
commit e94a8bbfd2
8 changed files with 405 additions and 9 deletions
+4 -3
View File
@@ -1,4 +1,5 @@
using LMS.Repository.User;
using LMS.Tools.Extensions;
using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -33,13 +34,13 @@ namespace LMS.Repository.Models.DB
public string? Options { get; set; } = "{}";
[Column(TypeName = "datetime")]
public DateTime CreatedDate { get; set; } = DateTime.Now;
public DateTime CreatedDate { get; set; } = BeijingTimeExtension.GetBeijingTime();
[Column(TypeName = "datetime")]
public DateTime UpdatedDate { get; set; } = DateTime.Now;
public DateTime UpdatedDate { get; set; } = BeijingTimeExtension.GetBeijingTime();
[Column(TypeName = "datetime")]
public DateTime LastLoginDate { get; set; } = DateTime.Now;
public DateTime LastLoginDate { get; set; } = BeijingTimeExtension.GetBeijingTime();
public string? LastLoginIp { get; set; } = "";