-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathCustomerGroup.cs
More file actions
32 lines (24 loc) · 876 Bytes
/
CustomerGroup.cs
File metadata and controls
32 lines (24 loc) · 876 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
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using SimplCommerce.Infrastructure.Models;
namespace SimplCommerce.Module.Core.Models
{
public class CustomerGroup : EntityBase
{
public CustomerGroup()
{
CreatedOn = DateTimeOffset.UtcNow;
LatestUpdatedOn = DateTimeOffset.UtcNow;
}
[Required(ErrorMessage = "The {0} field is required.")]
[StringLength(450)]
public string Name { get; set; }
public string Description { get; set; }
public bool IsActive { get; set; }
public bool IsDeleted { get; set; }
public DateTimeOffset CreatedOn { get; set; }
public DateTimeOffset LatestUpdatedOn { get; set; }
public IList<CustomerGroupUser> Users { get; set; } = new List<CustomerGroupUser>();
}
}