summaryrefslogtreecommitdiff
path: root/backend/Elements.Data/Models/Element.cs
blob: 08f25a8bdeb99c0f311ee9e8ace624965acc89b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;}
}