﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using RethinkDb.Driver.Extras.Dao;

namespace PicPository.Models
{
    public class Album : Document<Guid>
    {
        public string UserId { get; set; }

        [Required]
        [StringLength(30, MinimumLength = 3)]
        [RegularExpression(@"^[\sa-zA-Z0-9]*$")]
        public string Title { get; set; }

        public DateTime DateCreated { get; set; }

        public DateTime TimeStamp { get; set; }

        [StringLength(255)]
        [RegularExpression(@"^[\sa-zA-Z0-9]*$")]
        public string Description { get; set; }

        public IEnumerable<string> PicturesIds { get; set; }
    }
}
