mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-22 18:55:41 +00:00
71 lines
2.0 KiB
C#
71 lines
2.0 KiB
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("application_commands")]
|
|
public partial class ApplicationCommand
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public long Id { get; set; }
|
|
|
|
[Column("type")]
|
|
public int Type { get; set; }
|
|
|
|
[Column("application_id")]
|
|
public long ApplicationId { get; set; }
|
|
|
|
[Column("guild_id", TypeName = "character varying")]
|
|
public string? GuildId { get; set; }
|
|
|
|
[Column("name", TypeName = "character varying")]
|
|
public string Name { get; set; } = null!;
|
|
|
|
[Column("name_localizations")]
|
|
public string? NameLocalizations { get; set; }
|
|
|
|
[Column("description", TypeName = "character varying")]
|
|
public string Description { get; set; } = null!;
|
|
|
|
[Column("description_localizations", TypeName = "jsonb")]
|
|
public string? DescriptionLocalizations { get; set; }
|
|
|
|
[Column("options", TypeName = "jsonb")]
|
|
public string Options { get; set; } = null!;
|
|
|
|
[Column("default_member_permissions", TypeName = "character varying")]
|
|
public string? DefaultMemberPermissions { get; set; }
|
|
|
|
[Column("dm_permission")]
|
|
public bool DmPermission { get; set; }
|
|
|
|
[Column("permissions", TypeName = "jsonb")]
|
|
public string? Permissions { get; set; }
|
|
|
|
[Column("nsfw")]
|
|
public bool Nsfw { get; set; }
|
|
|
|
[Column("integration_types", TypeName = "jsonb")]
|
|
public string? IntegrationTypes { get; set; }
|
|
|
|
[Column("global_popularity_rank")]
|
|
public int GlobalPopularityRank { get; set; }
|
|
|
|
[Column("contexts", TypeName = "jsonb")]
|
|
public string? Contexts { get; set; }
|
|
|
|
[Column("version")]
|
|
public long Version { get; set; }
|
|
|
|
[Column("handler")]
|
|
public int Handler { get; set; }
|
|
|
|
[ForeignKey("ApplicationId")]
|
|
[InverseProperty("ApplicationCommands")]
|
|
public virtual Application Application { get; set; } = null!;
|
|
}
|