summaryrefslogtreecommitdiff
path: root/backend/Elements.Data/Models/Element.cs
blob: 1aa8ab6667b217b4876c0f29590ebcbcfa7be81e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Elements.Data.Models;

public enum ElementState {
    HasColor,
    HasIcon
}

public class Element {
    public int Id {get; init;}
    public required int UserId { get; init; }
    public required string Name {get; init;}
    public required ElementState State {get; init;}
    public required byte[] IconPng { get; init; }
}