-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
1,114 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using JobLeet.WebApi.JobLeet.Api.Models.Common.V1; | ||
|
||
namespace JobLeet.WebApi.JobLeet.Api.Models | ||
namespace JobLeet.WebApi.JobLeet.Api.Models | ||
{ | ||
public class BaseModel | ||
{ | ||
public int Id { get; set; } | ||
|
||
[NotMapped] | ||
public virtual MetaDataModel MetaData { get; set; } = new MetaDataModel(); | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
Server/JobLeet.WebApi/JobLeet.Api/Models/Common/V1/MetaDataModel.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using JobLeet.WebApi.JobLeet.Core.Entities.Common.V1; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
|
||
namespace JobLeet.WebApi.JobLeet.Core.Entities; | ||
|
||
public class BaseEntity | ||
{ | ||
public int Id { get; set; } | ||
|
||
[NotMapped] | ||
public virtual MetaData MetaData { get; set; } = new MetaData(); | ||
[Required] | ||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] | ||
public DateTime CreatedOn { get; set; } = DateTime.UtcNow; | ||
} |
13 changes: 0 additions & 13 deletions
13
Server/JobLeet.WebApi/JobLeet.Core/Entities/Common/V1/MetaData.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.