summary refs log tree commit diff
path: root/extra/admin-api/Spacebar.Db/Models/VoiceState.cs
blob: 0082ea9d2ed959435049cd5808d12007035c63cd (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace Spacebar.Db.Models;

[Table("voice_states")]
public partial class VoiceState
{
    [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("user_id", TypeName = "character varying")]
    public string? UserId { get; set; }

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

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

    [Column("deaf")]
    public bool Deaf { get; set; }

    [Column("mute")]
    public bool Mute { get; set; }

    [Column("self_deaf")]
    public bool SelfDeaf { get; set; }

    [Column("self_mute")]
    public bool SelfMute { get; set; }

    [Column("self_stream")]
    public bool? SelfStream { get; set; }

    [Column("self_video")]
    public bool SelfVideo { get; set; }

    [Column("suppress")]
    public bool Suppress { get; set; }

    [Column("request_to_speak_timestamp", TypeName = "timestamp without time zone")]
    public DateTime? RequestToSpeakTimestamp { get; set; }

    [ForeignKey("ChannelId")]
    [InverseProperty("VoiceStates")]
    public virtual Channel? Channel { get; set; }

    [ForeignKey("GuildId")]
    [InverseProperty("VoiceStates")]
    public virtual Guild? Guild { get; set; }

    [ForeignKey("UserId")]
    [InverseProperty("VoiceStates")]
    public virtual User? User { get; set; }
}