···66using Iceshrimp.Shared.Helpers;
77using Microsoft.EntityFrameworkCore;
88using Microsoft.EntityFrameworkCore.Metadata.Builders;
99+using NpgsqlTypes;
9101011namespace Iceshrimp.Backend.Core.Database.Tables;
1112···203204 /// </summary>
204205 [Column("isExplorable")]
205206 public bool IsExplorable { get; set; }
207207+208208+ [Column("canBite")] public BiteControl? CanBite { get; set; }
206209207210 /// <summary>
208211 /// The URI of the user Follower Collection. It will be null if the origin of the user is local.
···644647645648 public string? GetBannerUrl(Config.InstanceSection config)
646649 => BannerId != null ? $"https://{config.WebDomain}/banners/{Id}/{BannerId}" : null;
650650+651651+ [PgName("bite_control_enum")]
652652+ public enum BiteControl
653653+ {
654654+ [PgName("public")] Public = 0,
655655+ [PgName("followers")] Followers = 1
656656+ }
647657648658 private class EntityTypeConfiguration : IEntityTypeConfiguration<User>
649659 {