修改初始数据
This commit is contained in:
@@ -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; } = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user