roadie/Roadie.Api.Library/Data/Collection.cs

40 lines
1.1 KiB
C#
Raw Normal View History

2018-11-02 21:04:49 +00:00
using Roadie.Library.Enums;
using System;
2018-11-02 21:04:49 +00:00
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("collection")]
public partial class Collection : NamedEntityBase
{
[Column("collectionCount")]
public int CollectionCount { get; set; }
2018-11-02 21:11:11 +00:00
[Column("collectionType")]
public CollectionType? CollectionType { get; set; }
2018-11-02 21:04:49 +00:00
[Column("description")]
[MaxLength(1000)]
public string Description { get; set; }
[Column("edition")]
[MaxLength(200)]
public string Edition { get; set; }
[Column("listInCSV", TypeName = "text")]
[MaxLength(65535)]
public string ListInCSV { get; set; }
[Column("listInCSVFormat")]
[MaxLength(200)]
public string ListInCSVFormat { get; set; }
[Column("maintainerId")]
public int MaintainerId { get; set; }
2018-11-02 21:11:11 +00:00
public ICollection<CollectionRelease> Releases { get; set; }
2018-11-02 21:04:49 +00:00
}
}