@@ -7,6 +7,7 @@ namespace Tracker.Core.Data.Entities;
77/// <summary>
88/// Entity class representing data for table 'Audit'.
99/// </summary>
10+ [ System . ComponentModel . DataAnnotations . Schema . Table ( "Audit" , Schema = "dbo" ) ]
1011public partial class Audit : IHaveIdentifier
1112{
1213 /// <summary>
@@ -25,6 +26,8 @@ public Audit()
2526 /// <value>
2627 /// The property value representing column 'Id'.
2728 /// </value>
29+ [ System . ComponentModel . DataAnnotations . Key ( ) ]
30+ [ System . ComponentModel . DataAnnotations . Schema . Column ( "Id" , TypeName = "uniqueidentifier" ) ]
2831 public Guid Id { get ; set ; }
2932
3033 /// <summary>
@@ -33,6 +36,7 @@ public Audit()
3336 /// <value>
3437 /// The property value representing column 'Date'.
3538 /// </value>
39+ [ System . ComponentModel . DataAnnotations . Schema . Column ( "Date" , TypeName = "datetime" ) ]
3640 public DateTime Date { get ; set ; }
3741
3842 /// <summary>
@@ -41,6 +45,7 @@ public Audit()
4145 /// <value>
4246 /// The property value representing column 'UserId'.
4347 /// </value>
48+ [ System . ComponentModel . DataAnnotations . Schema . Column ( "UserId" , TypeName = "uniqueidentifier" ) ]
4449 public Guid ? UserId { get ; set ; }
4550
4651 /// <summary>
@@ -49,6 +54,7 @@ public Audit()
4954 /// <value>
5055 /// The property value representing column 'TaskId'.
5156 /// </value>
57+ [ System . ComponentModel . DataAnnotations . Schema . Column ( "TaskId" , TypeName = "uniqueidentifier" ) ]
5258 public Guid ? TaskId { get ; set ; }
5359
5460 /// <summary>
@@ -57,6 +63,7 @@ public Audit()
5763 /// <value>
5864 /// The property value representing column 'Content'.
5965 /// </value>
66+ [ System . ComponentModel . DataAnnotations . Schema . Column ( "Content" , TypeName = "nvarchar(max)" ) ]
6067 public string Content { get ; set ; } = null ! ;
6168
6269 /// <summary>
@@ -65,6 +72,7 @@ public Audit()
6572 /// <value>
6673 /// The property value representing column 'Username'.
6774 /// </value>
75+ [ System . ComponentModel . DataAnnotations . Schema . Column ( "Username" , TypeName = "nvarchar(50)" ) ]
6876 public string Username { get ; set ; } = null ! ;
6977
7078 /// <summary>
@@ -73,6 +81,7 @@ public Audit()
7381 /// <value>
7482 /// The property value representing column 'Created'.
7583 /// </value>
84+ [ System . ComponentModel . DataAnnotations . Schema . Column ( "Created" , TypeName = "datetimeoffset" ) ]
7685 public DateTimeOffset Created { get ; set ; }
7786
7887 /// <summary>
@@ -81,6 +90,7 @@ public Audit()
8190 /// <value>
8291 /// The property value representing column 'CreatedBy'.
8392 /// </value>
93+ [ System . ComponentModel . DataAnnotations . Schema . Column ( "CreatedBy" , TypeName = "nvarchar(100)" ) ]
8494 public string ? CreatedBy { get ; set ; }
8595
8696 /// <summary>
@@ -89,6 +99,7 @@ public Audit()
8999 /// <value>
90100 /// The property value representing column 'Updated'.
91101 /// </value>
102+ [ System . ComponentModel . DataAnnotations . Schema . Column ( "Updated" , TypeName = "datetimeoffset" ) ]
92103 public DateTimeOffset Updated { get ; set ; }
93104
94105 /// <summary>
@@ -97,6 +108,7 @@ public Audit()
97108 /// <value>
98109 /// The property value representing column 'UpdatedBy'.
99110 /// </value>
111+ [ System . ComponentModel . DataAnnotations . Schema . Column ( "UpdatedBy" , TypeName = "nvarchar(100)" ) ]
100112 public string ? UpdatedBy { get ; set ; }
101113
102114 /// <summary>
@@ -105,6 +117,9 @@ public Audit()
105117 /// <value>
106118 /// The property value representing column 'RowVersion'.
107119 /// </value>
120+ [ System . ComponentModel . DataAnnotations . ConcurrencyCheck ( ) ]
121+ [ System . ComponentModel . DataAnnotations . Schema . Column ( "RowVersion" , TypeName = "rowversion" ) ]
122+ [ System . ComponentModel . DataAnnotations . Schema . DatabaseGenerated ( System . ComponentModel . DataAnnotations . Schema . DatabaseGeneratedOption . Computed ) ]
108123 public Byte [ ] RowVersion { get ; set ; } = null ! ;
109124
110125 #endregion
0 commit comments