-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathVendor.cs
More file actions
37 lines (27 loc) · 960 Bytes
/
Vendor.cs
File metadata and controls
37 lines (27 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using SimplCommerce.Infrastructure.Models;
namespace SimplCommerce.Module.Core.Models
{
public class Vendor : EntityBase
{
public Vendor()
{
CreatedOn = DateTimeOffset.UtcNow;
}
[Required(ErrorMessage = "The {0} field is required.")]
[StringLength(450)]
public string Name { get; set; }
[Required(ErrorMessage = "The {0} field is required.")]
[StringLength(450)]
public string Slug { get; set; }
public string Description { get; set; }
public string Email { get; set; }
public DateTimeOffset CreatedOn { get; set; }
public DateTimeOffset LatestUpdatedOn { get; set; }
public bool IsActive { get; set; }
public bool IsDeleted { get; set; }
public IList<User> Users { get; set; } = new List<User>();
}
}