summary refs log tree commit diff
path: root/extra/admin-api/Spacebar.Db/Models/SecuritySetting.cs
blob: 4df21e4d50560fe20f65f468622403e005ae933f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace Spacebar.Db.Models;

[Table("security_settings")]
public partial class SecuritySetting
{
    [Key]
    [Column("id", TypeName = "character varying")]
    public string Id { get; set; } = null!;

    [Column("guild_id", TypeName = "character varying")]
    public string? GuildId { get; set; }

    [Column("channel_id", TypeName = "character varying")]
    public string? ChannelId { get; set; }

    [Column("encryption_permission_mask")]
    public int EncryptionPermissionMask { get; set; }

    [Column("allowed_algorithms")]
    public string AllowedAlgorithms { get; set; } = null!;

    [Column("current_algorithm", TypeName = "character varying")]
    public string CurrentAlgorithm { get; set; } = null!;

    [Column("used_since_message", TypeName = "character varying")]
    public string? UsedSinceMessage { get; set; }
}