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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Spacebar.Db.Models;
[Table("applications")]
[Index("BotUserId", Name = "REL_2ce5a55796fe4c2f77ece57a64", IsUnique = true)]
public partial class Application
{
[Key]
[Column("id", TypeName = "character varying")]
public string Id { get; set; } = null!;
[Column("name", TypeName = "character varying")]
public string Name { get; set; } = null!;
[Column("icon", TypeName = "character varying")]
public string? Icon { get; set; }
[Column("description", TypeName = "character varying")]
public string? Description { get; set; }
[Column("summary", TypeName = "character varying")]
public string? Summary { get; set; }
[Column("type")]
public string? Type { get; set; }
[Column("hook")]
public bool Hook { get; set; }
[Column("bot_public")]
public bool BotPublic { get; set; }
[Column("bot_require_code_grant")]
public bool BotRequireCodeGrant { get; set; }
[Column("verify_key", TypeName = "character varying")]
public string VerifyKey { get; set; } = null!;
[Column("flags")]
public int Flags { get; set; }
[Column("redirect_uris")]
public string? RedirectUris { get; set; }
[Column("rpc_application_state")]
public int? RpcApplicationState { get; set; }
[Column("store_application_state")]
public int? StoreApplicationState { get; set; }
[Column("verification_state")]
public int? VerificationState { get; set; }
[Column("interactions_endpoint_url", TypeName = "character varying")]
public string? InteractionsEndpointUrl { get; set; }
[Column("integration_public")]
public bool? IntegrationPublic { get; set; }
[Column("integration_require_code_grant")]
public bool? IntegrationRequireCodeGrant { get; set; }
[Column("discoverability_state")]
public int? DiscoverabilityState { get; set; }
[Column("discovery_eligibility_flags")]
public int? DiscoveryEligibilityFlags { get; set; }
[Column("tags")]
public string? Tags { get; set; }
[Column("cover_image", TypeName = "character varying")]
public string? CoverImage { get; set; }
[Column("install_params")]
public string? InstallParams { get; set; }
[Column("terms_of_service_url", TypeName = "character varying")]
public string? TermsOfServiceUrl { get; set; }
[Column("privacy_policy_url", TypeName = "character varying")]
public string? PrivacyPolicyUrl { get; set; }
[Column("owner_id", TypeName = "character varying")]
public string? OwnerId { get; set; }
[Column("bot_user_id", TypeName = "character varying")]
public string? BotUserId { get; set; }
[Column("team_id", TypeName = "character varying")]
public string? TeamId { get; set; }
[Column("guild_id", TypeName = "character varying")]
public string? GuildId { get; set; }
[Column("custom_install_url", TypeName = "character varying")]
public string? CustomInstallUrl { get; set; }
[ForeignKey("BotUserId")]
[InverseProperty("ApplicationBotUser")]
public virtual User? BotUser { get; set; }
[ForeignKey("GuildId")]
[InverseProperty("Applications")]
public virtual Guild? Guild { get; set; }
[InverseProperty("Application")]
public virtual ICollection<Message> Messages { get; set; } = new List<Message>();
[ForeignKey("OwnerId")]
[InverseProperty("ApplicationOwners")]
public virtual User? Owner { get; set; }
[ForeignKey("TeamId")]
[InverseProperty("Applications")]
public virtual Team? Team { get; set; }
[InverseProperty("Application")]
public virtual ICollection<Webhook> Webhooks { get; set; } = new List<Webhook>();
}
|