mark minage in antialtsettings as interval type
This commit is contained in:
parent
ba1f5afa01
commit
947b3794e9
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using LinqToDB.Mapping;
|
||||||
|
using DataType = LinqToDB.DataType;
|
||||||
|
|
||||||
namespace EllieBot.Db.Models;
|
namespace EllieBot.Db.Models;
|
||||||
|
|
||||||
|
@ -14,6 +16,7 @@ public class AntiAltSetting
|
||||||
|
|
||||||
public ulong GuildId { get; set; }
|
public ulong GuildId { get; set; }
|
||||||
|
|
||||||
|
[LinqToDB.Mapping.DataType(DataType.Interval)]
|
||||||
public TimeSpan MinAge { get; set; }
|
public TimeSpan MinAge { get; set; }
|
||||||
public PunishmentAction Action { get; set; }
|
public PunishmentAction Action { get; set; }
|
||||||
public int ActionDurationMinutes { get; set; }
|
public int ActionDurationMinutes { get; set; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue