mirror of
https://github.com/bitwarden/server
synced 2025-12-26 05:03:18 +00:00
* PM-28616 Add flag UsePhishingBlocker to dbo.Organization * PM-28616 updated as per comments from claude * PM-28616 updated ToLicense Method to copy the license file * PM-28616 allow phishing blocker to be imported via license files for self-hosted * PM-28616 updated PR comments - added more views to be refreshed * PM-28616 removed proeprty from constructor as it is not used anymore. We have moved to claims based properties
68 lines
1.4 KiB
Transact-SQL
68 lines
1.4 KiB
Transact-SQL
CREATE VIEW [dbo].[OrganizationView]
|
|
AS
|
|
SELECT
|
|
[Id],
|
|
[Identifier],
|
|
[Name],
|
|
[BusinessName],
|
|
[BusinessAddress1],
|
|
[BusinessAddress2],
|
|
[BusinessAddress3],
|
|
[BusinessCountry],
|
|
[BusinessTaxNumber],
|
|
[BillingEmail],
|
|
[Plan],
|
|
[PlanType],
|
|
[Seats],
|
|
[MaxCollections],
|
|
[UsePolicies],
|
|
[UseSso],
|
|
[UseGroups],
|
|
[UseDirectory],
|
|
[UseEvents],
|
|
[UseTotp],
|
|
[Use2fa],
|
|
[UseApi],
|
|
[UseResetPassword],
|
|
[SelfHost],
|
|
[UsersGetPremium],
|
|
[Storage],
|
|
COALESCE([MaxStorageGbIncreased], [MaxStorageGb]) AS [MaxStorageGb],
|
|
[Gateway],
|
|
[GatewayCustomerId],
|
|
[GatewaySubscriptionId],
|
|
[ReferenceData],
|
|
[Enabled],
|
|
[LicenseKey],
|
|
[PublicKey],
|
|
[PrivateKey],
|
|
[TwoFactorProviders],
|
|
[ExpirationDate],
|
|
[CreationDate],
|
|
[RevisionDate],
|
|
[OwnersNotifiedOfAutoscaling],
|
|
[MaxAutoscaleSeats],
|
|
[UseKeyConnector],
|
|
[UseScim],
|
|
[UseCustomPermissions],
|
|
[UseSecretsManager],
|
|
[Status],
|
|
[UsePasswordManager],
|
|
[SmSeats],
|
|
[SmServiceAccounts],
|
|
[MaxAutoscaleSmSeats],
|
|
[MaxAutoscaleSmServiceAccounts],
|
|
[SecretsManagerBeta],
|
|
[LimitCollectionCreation],
|
|
[LimitCollectionDeletion],
|
|
[LimitItemDeletion],
|
|
[AllowAdminAccessToAllCollectionItems],
|
|
[UseRiskInsights],
|
|
[UseOrganizationDomains],
|
|
[UseAdminSponsoredFamilies],
|
|
[SyncSeats],
|
|
[UseAutomaticUserConfirmation],
|
|
[UsePhishingBlocker]
|
|
FROM
|
|
[dbo].[Organization]
|