mirror of
https://github.com/bitwarden/server
synced 2025-12-18 09:13:19 +00:00
Create PlayData table and services
Shift from seeded data tracking that is all server-side to play ids and x-play-id headers that are appended from the clients to track entities added by tests.
This commit is contained in:
19
src/Infrastructure.EntityFramework/Models/PlayData.cs
Normal file
19
src/Infrastructure.EntityFramework/Models/PlayData.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
#nullable enable
|
||||
|
||||
using AutoMapper;
|
||||
|
||||
namespace Bit.Infrastructure.EntityFramework.Models;
|
||||
|
||||
public class PlayData : Core.Entities.PlayData
|
||||
{
|
||||
public virtual User? User { get; set; }
|
||||
public virtual AdminConsole.Models.Organization? Organization { get; set; }
|
||||
}
|
||||
|
||||
public class PlayDataMapperProfile : Profile
|
||||
{
|
||||
public PlayDataMapperProfile()
|
||||
{
|
||||
CreateMap<Core.Entities.PlayData, PlayData>().ReverseMap();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user