mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
[PM-107] Remove fingerprint phase 2 (#2809)
* [PM-131] Remove fingerprint (#2759) * [PM-107][PM-131] Remove fingerprint property from auth request * [PM-107][PM-131] Remove fingerprint property from comparer * [PM-132] Drop fingerprint phrase (#2803) * [PM-132] Added migrations to remove fingerprint phrase from db * [PM-132] Remove fp from stored procedures
This commit is contained in:
parent
39f884ddcc
commit
bf4e039911
@ -107,8 +107,7 @@ public class AuthRequestsController : Controller
|
|||||||
AccessCode = model.AccessCode,
|
AccessCode = model.AccessCode,
|
||||||
PublicKey = model.PublicKey,
|
PublicKey = model.PublicKey,
|
||||||
UserId = user.Id,
|
UserId = user.Id,
|
||||||
Type = model.Type.Value,
|
Type = model.Type.Value
|
||||||
RequestFingerprint = model.FingerprintPhrase
|
|
||||||
};
|
};
|
||||||
authRequest = await _authRequestRepository.CreateAsync(authRequest);
|
authRequest = await _authRequestRepository.CreateAsync(authRequest);
|
||||||
await _pushNotificationService.PushAuthRequestAsync(authRequest);
|
await _pushNotificationService.PushAuthRequestAsync(authRequest);
|
||||||
|
@ -17,7 +17,6 @@ public class AuthRequestCreateRequestModel
|
|||||||
public string AccessCode { get; set; }
|
public string AccessCode { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
public AuthRequestType? Type { get; set; }
|
public AuthRequestType? Type { get; set; }
|
||||||
public string FingerprintPhrase { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AuthRequestUpdateRequestModel
|
public class AuthRequestUpdateRequestModel
|
||||||
|
@ -20,7 +20,6 @@ public class AuthRequestResponseModel : ResponseModel
|
|||||||
RequestDeviceType = authRequest.RequestDeviceType.GetType().GetMember(authRequest.RequestDeviceType.ToString())
|
RequestDeviceType = authRequest.RequestDeviceType.GetType().GetMember(authRequest.RequestDeviceType.ToString())
|
||||||
.FirstOrDefault()?.GetCustomAttribute<DisplayAttribute>()?.GetName();
|
.FirstOrDefault()?.GetCustomAttribute<DisplayAttribute>()?.GetName();
|
||||||
RequestIpAddress = authRequest.RequestIpAddress;
|
RequestIpAddress = authRequest.RequestIpAddress;
|
||||||
RequestFingerprint = authRequest.RequestFingerprint;
|
|
||||||
Key = authRequest.Key;
|
Key = authRequest.Key;
|
||||||
MasterPasswordHash = authRequest.MasterPasswordHash;
|
MasterPasswordHash = authRequest.MasterPasswordHash;
|
||||||
CreationDate = authRequest.CreationDate;
|
CreationDate = authRequest.CreationDate;
|
||||||
@ -33,7 +32,6 @@ public class AuthRequestResponseModel : ResponseModel
|
|||||||
public string PublicKey { get; set; }
|
public string PublicKey { get; set; }
|
||||||
public string RequestDeviceType { get; set; }
|
public string RequestDeviceType { get; set; }
|
||||||
public string RequestIpAddress { get; set; }
|
public string RequestIpAddress { get; set; }
|
||||||
public string RequestFingerprint { get; set; }
|
|
||||||
public string Key { get; set; }
|
public string Key { get; set; }
|
||||||
public string MasterPasswordHash { get; set; }
|
public string MasterPasswordHash { get; set; }
|
||||||
public DateTime CreationDate { get; set; }
|
public DateTime CreationDate { get; set; }
|
||||||
|
@ -13,7 +13,6 @@ public class AuthRequest : ITableObject<Guid>
|
|||||||
public Enums.DeviceType RequestDeviceType { get; set; }
|
public Enums.DeviceType RequestDeviceType { get; set; }
|
||||||
[MaxLength(50)]
|
[MaxLength(50)]
|
||||||
public string RequestIpAddress { get; set; }
|
public string RequestIpAddress { get; set; }
|
||||||
public string RequestFingerprint { get; set; }
|
|
||||||
public Guid? ResponseDeviceId { get; set; }
|
public Guid? ResponseDeviceId { get; set; }
|
||||||
[MaxLength(25)]
|
[MaxLength(25)]
|
||||||
public string AccessCode { get; set; }
|
public string AccessCode { get; set; }
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
@RequestDeviceIdentifier NVARCHAR(50),
|
@RequestDeviceIdentifier NVARCHAR(50),
|
||||||
@RequestDeviceType TINYINT,
|
@RequestDeviceType TINYINT,
|
||||||
@RequestIpAddress VARCHAR(50),
|
@RequestIpAddress VARCHAR(50),
|
||||||
@RequestFingerprint VARCHAR(MAX),
|
|
||||||
@ResponseDeviceId UNIQUEIDENTIFIER,
|
@ResponseDeviceId UNIQUEIDENTIFIER,
|
||||||
@AccessCode VARCHAR(25),
|
@AccessCode VARCHAR(25),
|
||||||
@PublicKey VARCHAR(MAX),
|
@PublicKey VARCHAR(MAX),
|
||||||
@ -27,7 +26,6 @@ BEGIN
|
|||||||
[RequestDeviceIdentifier],
|
[RequestDeviceIdentifier],
|
||||||
[RequestDeviceType],
|
[RequestDeviceType],
|
||||||
[RequestIpAddress],
|
[RequestIpAddress],
|
||||||
[RequestFingerprint],
|
|
||||||
[ResponseDeviceId],
|
[ResponseDeviceId],
|
||||||
[AccessCode],
|
[AccessCode],
|
||||||
[PublicKey],
|
[PublicKey],
|
||||||
@ -46,7 +44,6 @@ BEGIN
|
|||||||
@RequestDeviceIdentifier,
|
@RequestDeviceIdentifier,
|
||||||
@RequestDeviceType,
|
@RequestDeviceType,
|
||||||
@RequestIpAddress,
|
@RequestIpAddress,
|
||||||
@RequestFingerprint,
|
|
||||||
@ResponseDeviceId,
|
@ResponseDeviceId,
|
||||||
@AccessCode,
|
@AccessCode,
|
||||||
@PublicKey,
|
@PublicKey,
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
@RequestDeviceIdentifier NVARCHAR(50),
|
@RequestDeviceIdentifier NVARCHAR(50),
|
||||||
@RequestDeviceType SMALLINT,
|
@RequestDeviceType SMALLINT,
|
||||||
@RequestIpAddress VARCHAR(50),
|
@RequestIpAddress VARCHAR(50),
|
||||||
@RequestFingerprint VARCHAR(MAX),
|
|
||||||
@ResponseDeviceId UNIQUEIDENTIFIER,
|
@ResponseDeviceId UNIQUEIDENTIFIER,
|
||||||
@AccessCode VARCHAR(25),
|
@AccessCode VARCHAR(25),
|
||||||
@PublicKey VARCHAR(MAX),
|
@PublicKey VARCHAR(MAX),
|
||||||
@ -27,7 +26,6 @@ BEGIN
|
|||||||
[RequestDeviceIdentifier] = @RequestDeviceIdentifier,
|
[RequestDeviceIdentifier] = @RequestDeviceIdentifier,
|
||||||
[RequestDeviceType] = @RequestDeviceType,
|
[RequestDeviceType] = @RequestDeviceType,
|
||||||
[RequestIpAddress] = @RequestIpAddress,
|
[RequestIpAddress] = @RequestIpAddress,
|
||||||
[RequestFingerprint] = @RequestFingerprint,
|
|
||||||
[ResponseDeviceId] = @ResponseDeviceId,
|
[ResponseDeviceId] = @ResponseDeviceId,
|
||||||
[AccessCode] = @AccessCode,
|
[AccessCode] = @AccessCode,
|
||||||
[PublicKey] = @PublicKey,
|
[PublicKey] = @PublicKey,
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
[RequestDeviceIdentifier] NVARCHAR(50) NOT NULL,
|
[RequestDeviceIdentifier] NVARCHAR(50) NOT NULL,
|
||||||
[RequestDeviceType] SMALLINT NOT NULL,
|
[RequestDeviceType] SMALLINT NOT NULL,
|
||||||
[RequestIpAddress] VARCHAR(50) NOT NULL,
|
[RequestIpAddress] VARCHAR(50) NOT NULL,
|
||||||
[RequestFingerprint] VARCHAR(MAX) NOT NULL,
|
|
||||||
[ResponseDeviceId] UNIQUEIDENTIFIER NULL,
|
[ResponseDeviceId] UNIQUEIDENTIFIER NULL,
|
||||||
[AccessCode] VARCHAR(25) NOT NULL,
|
[AccessCode] VARCHAR(25) NOT NULL,
|
||||||
[PublicKey] VARCHAR(MAX) NOT NULL,
|
[PublicKey] VARCHAR(MAX) NOT NULL,
|
||||||
|
@ -0,0 +1,140 @@
|
|||||||
|
-- Description: Remove RequestFingerprint column from AuthRequest table and recreate view and stored procedures without it.
|
||||||
|
IF COL_LENGTH('[dbo].[AuthRequest]', 'RequestFingerprint') IS NOT NULL
|
||||||
|
BEGIN
|
||||||
|
ALTER TABLE
|
||||||
|
[dbo].[AuthRequest]
|
||||||
|
DROP COLUMN
|
||||||
|
[RequestFingerprint]
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
-- Drop and recreate view
|
||||||
|
IF EXISTS(SELECT * FROM sys.views WHERE [Name] = 'AuthRequestView')
|
||||||
|
BEGIN
|
||||||
|
DROP VIEW [dbo].[AuthRequestView]
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
CREATE VIEW [dbo].[AuthRequestView]
|
||||||
|
AS
|
||||||
|
SELECT
|
||||||
|
*
|
||||||
|
FROM
|
||||||
|
[dbo].[AuthRequest]
|
||||||
|
GO
|
||||||
|
|
||||||
|
--Drop existing SPROC
|
||||||
|
IF OBJECT_ID('[dbo].[AuthRequest_Update]') IS NOT NULL
|
||||||
|
BEGIN
|
||||||
|
DROP PROCEDURE [dbo].[AuthRequest_Update]
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
--Create SPROC without RequestFingerprint column
|
||||||
|
CREATE PROCEDURE [dbo].[AuthRequest_Update]
|
||||||
|
@Id UNIQUEIDENTIFIER OUTPUT,
|
||||||
|
@UserId UNIQUEIDENTIFIER,
|
||||||
|
@Type SMALLINT,
|
||||||
|
@RequestDeviceIdentifier NVARCHAR(50),
|
||||||
|
@RequestDeviceType SMALLINT,
|
||||||
|
@RequestIpAddress VARCHAR(50),
|
||||||
|
@ResponseDeviceId UNIQUEIDENTIFIER,
|
||||||
|
@AccessCode VARCHAR(25),
|
||||||
|
@PublicKey VARCHAR(MAX),
|
||||||
|
@Key VARCHAR(MAX),
|
||||||
|
@MasterPasswordHash VARCHAR(MAX),
|
||||||
|
@Approved BIT,
|
||||||
|
@CreationDate DATETIME2 (7),
|
||||||
|
@ResponseDate DATETIME2 (7),
|
||||||
|
@AuthenticationDate DATETIME2 (7)
|
||||||
|
AS
|
||||||
|
BEGIN
|
||||||
|
SET NOCOUNT ON
|
||||||
|
|
||||||
|
UPDATE
|
||||||
|
[dbo].[AuthRequest]
|
||||||
|
SET
|
||||||
|
[UserId] = @UserId,
|
||||||
|
[Type] = @Type,
|
||||||
|
[RequestDeviceIdentifier] = @RequestDeviceIdentifier,
|
||||||
|
[RequestDeviceType] = @RequestDeviceType,
|
||||||
|
[RequestIpAddress] = @RequestIpAddress,
|
||||||
|
[ResponseDeviceId] = @ResponseDeviceId,
|
||||||
|
[AccessCode] = @AccessCode,
|
||||||
|
[PublicKey] = @PublicKey,
|
||||||
|
[Key] = @Key,
|
||||||
|
[MasterPasswordHash] = @MasterPasswordHash,
|
||||||
|
[Approved] = @Approved,
|
||||||
|
[CreationDate] = @CreationDate,
|
||||||
|
[ResponseDate] = @ResponseDate,
|
||||||
|
[AuthenticationDate] = @AuthenticationDate
|
||||||
|
WHERE
|
||||||
|
[Id] = @Id
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
--Drop existing SPROC
|
||||||
|
IF OBJECT_ID('[dbo].[AuthRequest_Create]') IS NOT NULL
|
||||||
|
BEGIN
|
||||||
|
DROP PROCEDURE [dbo].[AuthRequest_Create]
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
--Create SPROC without RequestFingerprint column
|
||||||
|
CREATE PROCEDURE [dbo].[AuthRequest_Create]
|
||||||
|
@Id UNIQUEIDENTIFIER OUTPUT,
|
||||||
|
@UserId UNIQUEIDENTIFIER,
|
||||||
|
@Type TINYINT,
|
||||||
|
@RequestDeviceIdentifier NVARCHAR(50),
|
||||||
|
@RequestDeviceType TINYINT,
|
||||||
|
@RequestIpAddress VARCHAR(50),
|
||||||
|
@ResponseDeviceId UNIQUEIDENTIFIER,
|
||||||
|
@AccessCode VARCHAR(25),
|
||||||
|
@PublicKey VARCHAR(MAX),
|
||||||
|
@Key VARCHAR(MAX),
|
||||||
|
@MasterPasswordHash VARCHAR(MAX),
|
||||||
|
@Approved BIT,
|
||||||
|
@CreationDate DATETIME2(7),
|
||||||
|
@ResponseDate DATETIME2(7),
|
||||||
|
@AuthenticationDate DATETIME2(7)
|
||||||
|
AS
|
||||||
|
BEGIN
|
||||||
|
SET NOCOUNT ON
|
||||||
|
|
||||||
|
INSERT INTO [dbo].[AuthRequest]
|
||||||
|
(
|
||||||
|
[Id],
|
||||||
|
[UserId],
|
||||||
|
[Type],
|
||||||
|
[RequestDeviceIdentifier],
|
||||||
|
[RequestDeviceType],
|
||||||
|
[RequestIpAddress],
|
||||||
|
[ResponseDeviceId],
|
||||||
|
[AccessCode],
|
||||||
|
[PublicKey],
|
||||||
|
[Key],
|
||||||
|
[MasterPasswordHash],
|
||||||
|
[Approved],
|
||||||
|
[CreationDate],
|
||||||
|
[ResponseDate],
|
||||||
|
[AuthenticationDate]
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
(
|
||||||
|
@Id,
|
||||||
|
@UserId,
|
||||||
|
@Type,
|
||||||
|
@RequestDeviceIdentifier,
|
||||||
|
@RequestDeviceType,
|
||||||
|
@RequestIpAddress,
|
||||||
|
@ResponseDeviceId,
|
||||||
|
@AccessCode,
|
||||||
|
@PublicKey,
|
||||||
|
@Key,
|
||||||
|
@MasterPasswordHash,
|
||||||
|
@Approved,
|
||||||
|
@CreationDate,
|
||||||
|
@ResponseDate,
|
||||||
|
@AuthenticationDate
|
||||||
|
)
|
||||||
|
END
|
2198
util/PostgresMigrations/Migrations/20230315121250_AuthRequestRemoveFingerprintPhrase.Designer.cs
generated
Normal file
2198
util/PostgresMigrations/Migrations/20230315121250_AuthRequestRemoveFingerprintPhrase.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,24 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Bit.PostgresMigrations.Migrations;
|
||||||
|
|
||||||
|
public partial class AuthRequestRemoveFingerprintPhrase : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "RequestFingerprint",
|
||||||
|
table: "AuthRequest");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "RequestFingerprint",
|
||||||
|
table: "AuthRequest",
|
||||||
|
type: "text",
|
||||||
|
nullable: true);
|
||||||
|
}
|
||||||
|
}
|
@ -57,9 +57,6 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Property<byte>("RequestDeviceType")
|
b.Property<byte>("RequestDeviceType")
|
||||||
.HasColumnType("smallint");
|
.HasColumnType("smallint");
|
||||||
|
|
||||||
b.Property<string>("RequestFingerprint")
|
|
||||||
.HasColumnType("text");
|
|
||||||
|
|
||||||
b.Property<string>("RequestIpAddress")
|
b.Property<string>("RequestIpAddress")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(50)
|
||||||
.HasColumnType("character varying(50)");
|
.HasColumnType("character varying(50)");
|
||||||
@ -85,53 +82,6 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.ToTable("AuthRequest", (string)null);
|
b.ToTable("AuthRequest", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Cipher", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<string>("Attachments")
|
|
||||||
.HasColumnType("text");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationDate")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<string>("Data")
|
|
||||||
.HasColumnType("text");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("DeletedDate")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<string>("Favorites")
|
|
||||||
.HasColumnType("text");
|
|
||||||
|
|
||||||
b.Property<string>("Folders")
|
|
||||||
.HasColumnType("text");
|
|
||||||
|
|
||||||
b.Property<Guid?>("OrganizationId")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<byte?>("Reprompt")
|
|
||||||
.HasColumnType("smallint");
|
|
||||||
|
|
||||||
b.Property<DateTime>("RevisionDate")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<byte>("Type")
|
|
||||||
.HasColumnType("smallint");
|
|
||||||
|
|
||||||
b.Property<Guid?>("UserId")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("OrganizationId");
|
|
||||||
|
|
||||||
b.HasIndex("UserId");
|
|
||||||
|
|
||||||
b.ToTable("Cipher", (string)null);
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@ -373,30 +323,6 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.ToTable("Event", (string)null);
|
b.ToTable("Event", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Folder", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationDate")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<string>("Name")
|
|
||||||
.HasColumnType("text");
|
|
||||||
|
|
||||||
b.Property<DateTime>("RevisionDate")
|
|
||||||
.HasColumnType("timestamp with time zone");
|
|
||||||
|
|
||||||
b.Property<Guid>("UserId")
|
|
||||||
.HasColumnType("uuid");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("UserId");
|
|
||||||
|
|
||||||
b.ToTable("Folder", (string)null);
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Grant", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Grant", b =>
|
||||||
{
|
{
|
||||||
b.Property<string>("Key")
|
b.Property<string>("Key")
|
||||||
@ -1524,6 +1450,77 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.ToTable("ServiceAccount", (string)null);
|
b.ToTable("ServiceAccount", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Vault.Models.Cipher", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<string>("Attachments")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationDate")
|
||||||
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<string>("Data")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletedDate")
|
||||||
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<string>("Favorites")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<string>("Folders")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<Guid?>("OrganizationId")
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<byte?>("Reprompt")
|
||||||
|
.HasColumnType("smallint");
|
||||||
|
|
||||||
|
b.Property<DateTime>("RevisionDate")
|
||||||
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<byte>("Type")
|
||||||
|
.HasColumnType("smallint");
|
||||||
|
|
||||||
|
b.Property<Guid?>("UserId")
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("OrganizationId");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("Cipher", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Vault.Models.Folder", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationDate")
|
||||||
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasColumnType("text");
|
||||||
|
|
||||||
|
b.Property<DateTime>("RevisionDate")
|
||||||
|
.HasColumnType("timestamp with time zone");
|
||||||
|
|
||||||
|
b.Property<Guid>("UserId")
|
||||||
|
.HasColumnType("uuid");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("Folder", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("ProjectSecret", b =>
|
modelBuilder.Entity("ProjectSecret", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ProjectsId")
|
b.Property<Guid>("ProjectsId")
|
||||||
@ -1660,25 +1657,10 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Navigation("User");
|
b.Navigation("User");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Cipher", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
|
||||||
.WithMany("Ciphers")
|
|
||||||
.HasForeignKey("OrganizationId");
|
|
||||||
|
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.User", "User")
|
|
||||||
.WithMany("Ciphers")
|
|
||||||
.HasForeignKey("UserId");
|
|
||||||
|
|
||||||
b.Navigation("Organization");
|
|
||||||
|
|
||||||
b.Navigation("User");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
||||||
.WithMany()
|
.WithMany("Collections")
|
||||||
.HasForeignKey("OrganizationId")
|
.HasForeignKey("OrganizationId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
@ -1688,7 +1670,7 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.CollectionCipher", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.CollectionCipher", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Cipher", "Cipher")
|
b.HasOne("Bit.Infrastructure.EntityFramework.Vault.Models.Cipher", "Cipher")
|
||||||
.WithMany("CollectionCiphers")
|
.WithMany("CollectionCiphers")
|
||||||
.HasForeignKey("CipherId")
|
.HasForeignKey("CipherId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
@ -1771,17 +1753,6 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Navigation("Grantor");
|
b.Navigation("Grantor");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Folder", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.User", "User")
|
|
||||||
.WithMany("Folders")
|
|
||||||
.HasForeignKey("UserId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("User");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Group", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Group", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
||||||
@ -2024,6 +1995,32 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Navigation("Organization");
|
b.Navigation("Organization");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Vault.Models.Cipher", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
||||||
|
.WithMany("Ciphers")
|
||||||
|
.HasForeignKey("OrganizationId");
|
||||||
|
|
||||||
|
b.HasOne("Bit.Infrastructure.EntityFramework.Models.User", "User")
|
||||||
|
.WithMany("Ciphers")
|
||||||
|
.HasForeignKey("UserId");
|
||||||
|
|
||||||
|
b.Navigation("Organization");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Vault.Models.Folder", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Bit.Infrastructure.EntityFramework.Models.User", "User")
|
||||||
|
.WithMany("Folders")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("ProjectSecret", b =>
|
modelBuilder.Entity("ProjectSecret", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.SecretsManager.Models.Project", null)
|
b.HasOne("Bit.Infrastructure.EntityFramework.SecretsManager.Models.Project", null)
|
||||||
@ -2114,11 +2111,6 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
b.Navigation("OrganizationUser");
|
b.Navigation("OrganizationUser");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Cipher", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("CollectionCiphers");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("CollectionCiphers");
|
b.Navigation("CollectionCiphers");
|
||||||
@ -2139,6 +2131,8 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
|
|
||||||
b.Navigation("Ciphers");
|
b.Navigation("Ciphers");
|
||||||
|
|
||||||
|
b.Navigation("Collections");
|
||||||
|
|
||||||
b.Navigation("Connections");
|
b.Navigation("Connections");
|
||||||
|
|
||||||
b.Navigation("Domains");
|
b.Navigation("Domains");
|
||||||
@ -2191,6 +2185,11 @@ namespace Bit.PostgresMigrations.Migrations
|
|||||||
|
|
||||||
b.Navigation("UserAccessPolicies");
|
b.Navigation("UserAccessPolicies");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Vault.Models.Cipher", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("CollectionCiphers");
|
||||||
|
});
|
||||||
#pragma warning restore 612, 618
|
#pragma warning restore 612, 618
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2185
util/SqliteMigrations/Migrations/20230315121314_AuthRequestRemoveFingerprintPhrase.Designer.cs
generated
Normal file
2185
util/SqliteMigrations/Migrations/20230315121314_AuthRequestRemoveFingerprintPhrase.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,24 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Bit.SqliteMigrations.Migrations;
|
||||||
|
|
||||||
|
public partial class AuthRequestRemoveFingerprintPhrase : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "RequestFingerprint",
|
||||||
|
table: "AuthRequest");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "RequestFingerprint",
|
||||||
|
table: "AuthRequest",
|
||||||
|
type: "TEXT",
|
||||||
|
nullable: true);
|
||||||
|
}
|
||||||
|
}
|
@ -51,9 +51,6 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Property<byte>("RequestDeviceType")
|
b.Property<byte>("RequestDeviceType")
|
||||||
.HasColumnType("INTEGER");
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
b.Property<string>("RequestFingerprint")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("RequestIpAddress")
|
b.Property<string>("RequestIpAddress")
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(50)
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
@ -79,53 +76,6 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.ToTable("AuthRequest", (string)null);
|
b.ToTable("AuthRequest", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Cipher", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Attachments")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationDate")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Data")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime?>("DeletedDate")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Favorites")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Folders")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<Guid?>("OrganizationId")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<byte?>("Reprompt")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<DateTime>("RevisionDate")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<byte>("Type")
|
|
||||||
.HasColumnType("INTEGER");
|
|
||||||
|
|
||||||
b.Property<Guid?>("UserId")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("OrganizationId");
|
|
||||||
|
|
||||||
b.HasIndex("UserId");
|
|
||||||
|
|
||||||
b.ToTable("Cipher", (string)null);
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
@ -367,30 +317,6 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.ToTable("Event", (string)null);
|
b.ToTable("Event", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Folder", b =>
|
|
||||||
{
|
|
||||||
b.Property<Guid>("Id")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("CreationDate")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<string>("Name")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<DateTime>("RevisionDate")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.Property<Guid>("UserId")
|
|
||||||
.HasColumnType("TEXT");
|
|
||||||
|
|
||||||
b.HasKey("Id");
|
|
||||||
|
|
||||||
b.HasIndex("UserId");
|
|
||||||
|
|
||||||
b.ToTable("Folder", (string)null);
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Grant", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Grant", b =>
|
||||||
{
|
{
|
||||||
b.Property<string>("Key")
|
b.Property<string>("Key")
|
||||||
@ -1511,6 +1437,77 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.ToTable("ServiceAccount", (string)null);
|
b.ToTable("ServiceAccount", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Vault.Models.Cipher", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Attachments")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationDate")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Data")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletedDate")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Favorites")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Folders")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<Guid?>("OrganizationId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<byte?>("Reprompt")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("RevisionDate")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<byte>("Type")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<Guid?>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("OrganizationId");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("Cipher", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Vault.Models.Folder", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationDate")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime>("RevisionDate")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<Guid>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("Folder", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("ProjectSecret", b =>
|
modelBuilder.Entity("ProjectSecret", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("ProjectsId")
|
b.Property<Guid>("ProjectsId")
|
||||||
@ -1647,21 +1644,6 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Navigation("User");
|
b.Navigation("User");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Cipher", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
|
||||||
.WithMany("Ciphers")
|
|
||||||
.HasForeignKey("OrganizationId");
|
|
||||||
|
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.User", "User")
|
|
||||||
.WithMany("Ciphers")
|
|
||||||
.HasForeignKey("UserId");
|
|
||||||
|
|
||||||
b.Navigation("Organization");
|
|
||||||
|
|
||||||
b.Navigation("User");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
||||||
@ -1675,7 +1657,7 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.CollectionCipher", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.CollectionCipher", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Cipher", "Cipher")
|
b.HasOne("Bit.Infrastructure.EntityFramework.Vault.Models.Cipher", "Cipher")
|
||||||
.WithMany("CollectionCiphers")
|
.WithMany("CollectionCiphers")
|
||||||
.HasForeignKey("CipherId")
|
.HasForeignKey("CipherId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
@ -1758,17 +1740,6 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Navigation("Grantor");
|
b.Navigation("Grantor");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Folder", b =>
|
|
||||||
{
|
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.User", "User")
|
|
||||||
.WithMany("Folders")
|
|
||||||
.HasForeignKey("UserId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("User");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Group", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Group", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
||||||
@ -2011,6 +1982,32 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Navigation("Organization");
|
b.Navigation("Organization");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Vault.Models.Cipher", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Organization", "Organization")
|
||||||
|
.WithMany("Ciphers")
|
||||||
|
.HasForeignKey("OrganizationId");
|
||||||
|
|
||||||
|
b.HasOne("Bit.Infrastructure.EntityFramework.Models.User", "User")
|
||||||
|
.WithMany("Ciphers")
|
||||||
|
.HasForeignKey("UserId");
|
||||||
|
|
||||||
|
b.Navigation("Organization");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Vault.Models.Folder", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Bit.Infrastructure.EntityFramework.Models.User", "User")
|
||||||
|
.WithMany("Folders")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("ProjectSecret", b =>
|
modelBuilder.Entity("ProjectSecret", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("Bit.Infrastructure.EntityFramework.SecretsManager.Models.Project", null)
|
b.HasOne("Bit.Infrastructure.EntityFramework.SecretsManager.Models.Project", null)
|
||||||
@ -2101,11 +2098,6 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
b.Navigation("OrganizationUser");
|
b.Navigation("OrganizationUser");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Cipher", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("CollectionCiphers");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Collection", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("CollectionCiphers");
|
b.Navigation("CollectionCiphers");
|
||||||
@ -2180,6 +2172,11 @@ namespace Bit.SqliteMigrations.Migrations
|
|||||||
|
|
||||||
b.Navigation("UserAccessPolicies");
|
b.Navigation("UserAccessPolicies");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Vault.Models.Cipher", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("CollectionCiphers");
|
||||||
|
});
|
||||||
#pragma warning restore 612, 618
|
#pragma warning restore 612, 618
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user