summary refs log tree commit diff
path: root/extra/admin-api/Spacebar.Db/Models/Category.cs
blob: 2e800a1827d6b44e47ff5b5bebb08c1ef02d3fc1 (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
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace Spacebar.Db.Models;

[Table("categories")]
public partial class Category
{
    [Key]
    [Column("id")]
    public int Id { get; set; }

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

    [Column("localizations")]
    public string Localizations { get; set; } = null!;

    [Column("is_primary")]
    public bool? IsPrimary { get; set; }

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