Rebrand database project.

This commit is contained in:
2020-02-10 02:23:32 +00:00
parent 091a27c3d9
commit 6e1ba53f3b
198 changed files with 5 additions and 4 deletions

View File

@@ -0,0 +1,33 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Marechai.Database.Models
{
/// <summary>
/// ISO-639 codes
/// </summary>
public class Iso639
{
[Column(TypeName = "char(3)")]
[Key]
[Required]
public string Id { get; set; }
[Column(TypeName = "char(3)")]
public string Part2B { get; set; }
[Column(TypeName = "char(3)")]
public string Part2T { get; set; }
[Column(TypeName = "char(2)")]
public string Part1 { get; set; }
[Column(TypeName = "char(1)")]
[Required]
public string Scope { get; set; }
[Column(TypeName = "char(1)")]
[Required]
public string Type { get; set; }
[Column(TypeName = "varchar(150)")]
[Required]
public string ReferenceName { get; set; }
[Column(TypeName = "varchar(150)")]
public string Comment { get; set; }
}
}