mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-28 03:04:07 +00:00
Restructure extras
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Spacebar.Models.Db.Models;
|
||||
|
||||
[Table("stickers")]
|
||||
public partial class Sticker
|
||||
{
|
||||
[Key]
|
||||
[Column("id", TypeName = "character varying")]
|
||||
public string Id { get; set; } = null!;
|
||||
|
||||
[Column("name", TypeName = "character varying")]
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
[Column("description", TypeName = "character varying")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
[Column("available")]
|
||||
public bool? Available { get; set; }
|
||||
|
||||
[Column("tags", TypeName = "character varying")]
|
||||
public string? Tags { get; set; }
|
||||
|
||||
[Column("pack_id", TypeName = "character varying")]
|
||||
public string? PackId { get; set; }
|
||||
|
||||
[Column("guild_id", TypeName = "character varying")]
|
||||
public string? GuildId { get; set; }
|
||||
|
||||
[Column("user_id", TypeName = "character varying")]
|
||||
public string? UserId { get; set; }
|
||||
|
||||
[Column("type")]
|
||||
public int Type { get; set; }
|
||||
|
||||
[Column("format_type")]
|
||||
public int FormatType { get; set; }
|
||||
|
||||
[ForeignKey("GuildId")]
|
||||
[InverseProperty("Stickers")]
|
||||
public virtual Guild? Guild { get; set; }
|
||||
|
||||
[ForeignKey("PackId")]
|
||||
[InverseProperty("Stickers")]
|
||||
public virtual StickerPack? Pack { get; set; }
|
||||
|
||||
[InverseProperty("CoverStickerId1Navigation")]
|
||||
public virtual ICollection<StickerPack> StickerPacks { get; set; } = new List<StickerPack>();
|
||||
|
||||
[ForeignKey("UserId")]
|
||||
[InverseProperty("Stickers")]
|
||||
public virtual User? User { get; set; }
|
||||
|
||||
[ForeignKey("StickersId")]
|
||||
[InverseProperty("Stickers")]
|
||||
public virtual ICollection<Message> Messages { get; set; } = new List<Message>();
|
||||
}
|
||||
Reference in New Issue
Block a user