source:
FarmatikoData/Models/User.cs@
afefe75
Last change on this file since afefe75 was 8e74e2f, checked in by , 4 years ago | |
---|---|
|
|
File size: 541 bytes |
Rev | Line | |
---|---|---|
[d23bf72] | 1 | using FarmatikoData.Base; |
2 | using System; | |
3 | using System.Collections.Generic; | |
[8e74e2f] | 4 | using System.ComponentModel.DataAnnotations; |
[d23bf72] | 5 | using System.Text; |
6 | ||
7 | namespace FarmatikoData.Models | |
8 | { | |
9 | public class User : BaseEntity | |
10 | { | |
11 | public enum Role | |
12 | { | |
13 | Admin, | |
14 | PharmacyHead | |
15 | } | |
[8e74e2f] | 16 | [Required] |
[d23bf72] | 17 | public string Name { get; set; } |
[8e74e2f] | 18 | [Required] |
[d23bf72] | 19 | public string Email { get; set; } |
[8e74e2f] | 20 | [Required] |
[d23bf72] | 21 | public string Password { get; set; } |
22 | public Role UserRole { get; set; } | |
23 | } | |
24 | } |
Note:
See TracBrowser
for help on using the repository browser.