Added database models

This commit is contained in:
2025-01-20 17:43:05 +01:00
parent 00504ad485
commit 49b5339bb3
11 changed files with 242 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Portfolio.Shared.Models;
public sealed class Technology {
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; init; }
[MaxLength(255)]
public required string Name { get; set; }
public TechnologyLevel Level { get; set; } = TechnologyLevel.Beginner;
}
public enum TechnologyLevel : byte {
Beginner = 0,
Intermediate = 1,
Professional = 2
}