Files
server/extra/admin-api/Models/Spacebar.Models.Db/Models/RateLimit.cs
2026-02-03 03:15:59 +01:00

28 lines
730 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Spacebar.Models.Db.Models;
[Table("rate_limits")]
public partial class RateLimit
{
[Key]
[Column("id", TypeName = "character varying")]
public string Id { get; set; } = null!;
[Column("executor_id", TypeName = "character varying")]
public string ExecutorId { get; set; } = null!;
[Column("hits")]
public int Hits { get; set; }
[Column("blocked")]
public bool Blocked { get; set; }
[Column("expires_at", TypeName = "timestamp without time zone")]
public DateTime ExpiresAt { get; set; }
}