mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-06-10 09:59:55 +08:00
Initial commit
This commit is contained in:
12
Models/DataBase/BaseModel.cs
Normal file
12
Models/DataBase/BaseModel.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Foxel.Models.DataBase;
|
||||
|
||||
public abstract class BaseModel
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
Reference in New Issue
Block a user