Skip to content

Commit

Permalink
remove the Metadata field
Browse files Browse the repository at this point in the history
  • Loading branch information
nixhantb committed Jan 22, 2025
1 parent d939fd3 commit 02753a9
Show file tree
Hide file tree
Showing 7 changed files with 1,114 additions and 129 deletions.
8 changes: 1 addition & 7 deletions Server/JobLeet.WebApi/JobLeet.Api/Models/BaseModel.cs
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();
}
}

This file was deleted.

9 changes: 5 additions & 4 deletions Server/JobLeet.WebApi/JobLeet.Core/Entities/BaseEntity.cs
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 Server/JobLeet.WebApi/JobLeet.Core/Entities/Common/V1/MetaData.cs

This file was deleted.

Loading

0 comments on commit 02753a9

Please sign in to comment.