mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-25 07:32:09 +00:00
31 lines
820 B
C#
31 lines
820 B
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("categories")]
|
|
public partial class Category
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public long Id { get; set; }
|
|
|
|
[Column("name", TypeName = "character varying")]
|
|
public string? Name { get; set; }
|
|
|
|
[Column("localizations", TypeName = "jsonb")]
|
|
public string Localizations { get; set; } = null!;
|
|
|
|
[Column("is_primary")]
|
|
public bool? IsPrimary { get; set; }
|
|
|
|
[Column("icon", TypeName = "character varying")]
|
|
public string? Icon { get; set; }
|
|
|
|
[InverseProperty("PrimaryCategory")]
|
|
public virtual ICollection<Guild> Guilds { get; set; } = new List<Guild>();
|
|
}
|