You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1652 lines
138 KiB
1652 lines
138 KiB
USE [master]
|
|
GO
|
|
/****** Object: Database [ABP] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE DATABASE [ABP]
|
|
CONTAINMENT = NONE
|
|
ON PRIMARY
|
|
( NAME = N'ABP', FILENAME = N'D:\SQL\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\ABP.mdf' , SIZE = 77331968KB , MAXSIZE = UNLIMITED, FILEGROWTH = 102400KB )
|
|
LOG ON
|
|
( NAME = N'ABP_log', FILENAME = N'D:\SQL\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\ABP_log.ldf' , SIZE = 103488KB , MAXSIZE = 2048GB , FILEGROWTH = 102400KB )
|
|
GO
|
|
ALTER DATABASE [ABP] SET COMPATIBILITY_LEVEL = 110
|
|
GO
|
|
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
|
|
begin
|
|
EXEC [ABP].[dbo].[sp_fulltext_database] @action = 'enable'
|
|
end
|
|
GO
|
|
ALTER DATABASE [ABP] SET ANSI_NULL_DEFAULT OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET ANSI_NULLS OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET ANSI_PADDING OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET ANSI_WARNINGS OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET ARITHABORT OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET AUTO_CLOSE OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET AUTO_SHRINK OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET AUTO_UPDATE_STATISTICS ON
|
|
GO
|
|
ALTER DATABASE [ABP] SET CURSOR_CLOSE_ON_COMMIT OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET CURSOR_DEFAULT GLOBAL
|
|
GO
|
|
ALTER DATABASE [ABP] SET CONCAT_NULL_YIELDS_NULL OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET NUMERIC_ROUNDABORT OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET QUOTED_IDENTIFIER OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET RECURSIVE_TRIGGERS OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET DISABLE_BROKER
|
|
GO
|
|
ALTER DATABASE [ABP] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET DATE_CORRELATION_OPTIMIZATION OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET TRUSTWORTHY OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET ALLOW_SNAPSHOT_ISOLATION OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET PARAMETERIZATION SIMPLE
|
|
GO
|
|
ALTER DATABASE [ABP] SET READ_COMMITTED_SNAPSHOT ON
|
|
GO
|
|
ALTER DATABASE [ABP] SET HONOR_BROKER_PRIORITY OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET RECOVERY SIMPLE
|
|
GO
|
|
ALTER DATABASE [ABP] SET MULTI_USER
|
|
GO
|
|
ALTER DATABASE [ABP] SET PAGE_VERIFY CHECKSUM
|
|
GO
|
|
ALTER DATABASE [ABP] SET DB_CHAINING OFF
|
|
GO
|
|
ALTER DATABASE [ABP] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )
|
|
GO
|
|
ALTER DATABASE [ABP] SET TARGET_RECOVERY_TIME = 0 SECONDS
|
|
GO
|
|
ALTER DATABASE [ABP] SET DELAYED_DURABILITY = DISABLED
|
|
GO
|
|
EXEC sys.sp_db_vardecimal_storage_format N'ABP', N'ON'
|
|
GO
|
|
ALTER DATABASE [ABP] SET QUERY_STORE = OFF
|
|
GO
|
|
USE [ABP]
|
|
GO
|
|
ALTER DATABASE SCOPED CONFIGURATION SET LEGACY_CARDINALITY_ESTIMATION = OFF;
|
|
GO
|
|
ALTER DATABASE SCOPED CONFIGURATION SET MAXDOP = 0;
|
|
GO
|
|
ALTER DATABASE SCOPED CONFIGURATION SET PARAMETER_SNIFFING = ON;
|
|
GO
|
|
ALTER DATABASE SCOPED CONFIGURATION SET QUERY_OPTIMIZER_HOTFIXES = OFF;
|
|
GO
|
|
USE [ABP]
|
|
GO
|
|
/****** Object: Table [dbo].[__EFMigrationsHistory] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[__EFMigrationsHistory](
|
|
[MigrationId] [nvarchar](150) NOT NULL,
|
|
[ProductVersion] [nvarchar](32) NOT NULL,
|
|
CONSTRAINT [PK___EFMigrationsHistory] PRIMARY KEY CLUSTERED
|
|
(
|
|
[MigrationId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpAuditLogActions] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpAuditLogActions](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[AuditLogId] [uniqueidentifier] NOT NULL,
|
|
[ServiceName] [nvarchar](256) NULL,
|
|
[MethodName] [nvarchar](128) NULL,
|
|
[Parameters] [nvarchar](2000) NULL,
|
|
[ExecutionTime] [datetime2](7) NOT NULL,
|
|
[ExecutionDuration] [int] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
CONSTRAINT [PK_AbpAuditLogActions] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpAuditLogs] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpAuditLogs](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[ApplicationName] [nvarchar](96) NULL,
|
|
[UserId] [uniqueidentifier] NULL,
|
|
[UserName] [nvarchar](256) NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[TenantName] [nvarchar](max) NULL,
|
|
[ImpersonatorUserId] [uniqueidentifier] NULL,
|
|
[ImpersonatorTenantId] [uniqueidentifier] NULL,
|
|
[ExecutionTime] [datetime2](7) NOT NULL,
|
|
[ExecutionDuration] [int] NOT NULL,
|
|
[ClientIpAddress] [nvarchar](64) NULL,
|
|
[ClientName] [nvarchar](128) NULL,
|
|
[ClientId] [nvarchar](64) NULL,
|
|
[CorrelationId] [nvarchar](64) NULL,
|
|
[BrowserInfo] [nvarchar](512) NULL,
|
|
[HttpMethod] [nvarchar](16) NULL,
|
|
[Url] [nvarchar](256) NULL,
|
|
[Exceptions] [nvarchar](4000) NULL,
|
|
[Comments] [nvarchar](256) NULL,
|
|
[HttpStatusCode] [int] NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
CONSTRAINT [PK_AbpAuditLogs] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpClaimTypes] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpClaimTypes](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[Name] [nvarchar](256) NOT NULL,
|
|
[Required] [bit] NOT NULL,
|
|
[IsStatic] [bit] NOT NULL,
|
|
[Regex] [nvarchar](512) NULL,
|
|
[RegexDescription] [nvarchar](128) NULL,
|
|
[Description] [nvarchar](256) NULL,
|
|
[ValueType] [int] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
CONSTRAINT [PK_AbpClaimTypes] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpEntityChanges] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpEntityChanges](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[AuditLogId] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[ChangeTime] [datetime2](7) NOT NULL,
|
|
[ChangeType] [tinyint] NOT NULL,
|
|
[EntityTenantId] [uniqueidentifier] NULL,
|
|
[EntityId] [nvarchar](128) NOT NULL,
|
|
[EntityTypeFullName] [nvarchar](128) NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
CONSTRAINT [PK_AbpEntityChanges] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpEntityPropertyChanges] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpEntityPropertyChanges](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[EntityChangeId] [uniqueidentifier] NOT NULL,
|
|
[NewValue] [nvarchar](512) NULL,
|
|
[OriginalValue] [nvarchar](512) NULL,
|
|
[PropertyName] [nvarchar](128) NOT NULL,
|
|
[PropertyTypeFullName] [nvarchar](64) NOT NULL,
|
|
CONSTRAINT [PK_AbpEntityPropertyChanges] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpLinkUsers] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpLinkUsers](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[SourceUserId] [uniqueidentifier] NOT NULL,
|
|
[SourceTenantId] [uniqueidentifier] NULL,
|
|
[TargetUserId] [uniqueidentifier] NOT NULL,
|
|
[TargetTenantId] [uniqueidentifier] NULL,
|
|
CONSTRAINT [PK_AbpLinkUsers] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpOrganizationUnitRoles] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpOrganizationUnitRoles](
|
|
[RoleId] [uniqueidentifier] NOT NULL,
|
|
[OrganizationUnitId] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
CONSTRAINT [PK_AbpOrganizationUnitRoles] PRIMARY KEY CLUSTERED
|
|
(
|
|
[OrganizationUnitId] ASC,
|
|
[RoleId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpOrganizationUnits] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpOrganizationUnits](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[ParentId] [uniqueidentifier] NULL,
|
|
[Code] [nvarchar](95) NOT NULL,
|
|
[DisplayName] [nvarchar](128) NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
[LastModificationTime] [datetime2](7) NULL,
|
|
[LastModifierId] [uniqueidentifier] NULL,
|
|
[IsDeleted] [bit] NOT NULL,
|
|
[DeleterId] [uniqueidentifier] NULL,
|
|
[DeletionTime] [datetime2](7) NULL,
|
|
CONSTRAINT [PK_AbpOrganizationUnits] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpPermissionGrants] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpPermissionGrants](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[Name] [nvarchar](128) NOT NULL,
|
|
[ProviderName] [nvarchar](64) NOT NULL,
|
|
[ProviderKey] [nvarchar](64) NOT NULL,
|
|
CONSTRAINT [PK_AbpPermissionGrants] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpRoleClaims] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpRoleClaims](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[RoleId] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[ClaimType] [nvarchar](256) NOT NULL,
|
|
[ClaimValue] [nvarchar](1024) NULL,
|
|
CONSTRAINT [PK_AbpRoleClaims] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpRoles] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpRoles](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[Name] [nvarchar](256) NOT NULL,
|
|
[NormalizedName] [nvarchar](256) NOT NULL,
|
|
[IsDefault] [bit] NOT NULL,
|
|
[IsStatic] [bit] NOT NULL,
|
|
[IsPublic] [bit] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
CONSTRAINT [PK_AbpRoles] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpSecurityLogs] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpSecurityLogs](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[ApplicationName] [nvarchar](96) NULL,
|
|
[Identity] [nvarchar](96) NULL,
|
|
[Action] [nvarchar](96) NULL,
|
|
[UserId] [uniqueidentifier] NULL,
|
|
[UserName] [nvarchar](256) NULL,
|
|
[TenantName] [nvarchar](64) NULL,
|
|
[ClientId] [nvarchar](64) NULL,
|
|
[CorrelationId] [nvarchar](64) NULL,
|
|
[ClientIpAddress] [nvarchar](64) NULL,
|
|
[BrowserInfo] [nvarchar](512) NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
CONSTRAINT [PK_AbpSecurityLogs] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpSettings] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpSettings](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[Name] [nvarchar](128) NOT NULL,
|
|
[Value] [nvarchar](2048) NOT NULL,
|
|
[ProviderName] [nvarchar](64) NULL,
|
|
[ProviderKey] [nvarchar](64) NULL,
|
|
CONSTRAINT [PK_AbpSettings] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpTenantConnectionStrings] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpTenantConnectionStrings](
|
|
[TenantId] [uniqueidentifier] NOT NULL,
|
|
[Name] [nvarchar](64) NOT NULL,
|
|
[Value] [nvarchar](1024) NOT NULL,
|
|
CONSTRAINT [PK_AbpTenantConnectionStrings] PRIMARY KEY CLUSTERED
|
|
(
|
|
[TenantId] ASC,
|
|
[Name] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpTenants] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpTenants](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[Name] [nvarchar](64) NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
[LastModificationTime] [datetime2](7) NULL,
|
|
[LastModifierId] [uniqueidentifier] NULL,
|
|
[IsDeleted] [bit] NOT NULL,
|
|
[DeleterId] [uniqueidentifier] NULL,
|
|
[DeletionTime] [datetime2](7) NULL,
|
|
CONSTRAINT [PK_AbpTenants] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpUserClaims] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpUserClaims](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[UserId] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[ClaimType] [nvarchar](256) NOT NULL,
|
|
[ClaimValue] [nvarchar](1024) NULL,
|
|
CONSTRAINT [PK_AbpUserClaims] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpUserLogins] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpUserLogins](
|
|
[UserId] [uniqueidentifier] NOT NULL,
|
|
[LoginProvider] [nvarchar](64) NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[ProviderKey] [nvarchar](196) NOT NULL,
|
|
[ProviderDisplayName] [nvarchar](128) NULL,
|
|
CONSTRAINT [PK_AbpUserLogins] PRIMARY KEY CLUSTERED
|
|
(
|
|
[UserId] ASC,
|
|
[LoginProvider] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpUserOrganizationUnits] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpUserOrganizationUnits](
|
|
[UserId] [uniqueidentifier] NOT NULL,
|
|
[OrganizationUnitId] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
CONSTRAINT [PK_AbpUserOrganizationUnits] PRIMARY KEY CLUSTERED
|
|
(
|
|
[OrganizationUnitId] ASC,
|
|
[UserId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpUserRoles] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpUserRoles](
|
|
[UserId] [uniqueidentifier] NOT NULL,
|
|
[RoleId] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
CONSTRAINT [PK_AbpUserRoles] PRIMARY KEY CLUSTERED
|
|
(
|
|
[UserId] ASC,
|
|
[RoleId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpUsers] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpUsers](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[UserName] [nvarchar](256) NOT NULL,
|
|
[NormalizedUserName] [nvarchar](256) NOT NULL,
|
|
[Name] [nvarchar](64) NULL,
|
|
[Surname] [nvarchar](64) NULL,
|
|
[Email] [nvarchar](256) NOT NULL,
|
|
[NormalizedEmail] [nvarchar](256) NOT NULL,
|
|
[EmailConfirmed] [bit] NOT NULL,
|
|
[PasswordHash] [nvarchar](256) NULL,
|
|
[SecurityStamp] [nvarchar](256) NOT NULL,
|
|
[IsExternal] [bit] NOT NULL,
|
|
[PhoneNumber] [nvarchar](16) NULL,
|
|
[PhoneNumberConfirmed] [bit] NOT NULL,
|
|
[TwoFactorEnabled] [bit] NOT NULL,
|
|
[LockoutEnd] [datetimeoffset](7) NULL,
|
|
[LockoutEnabled] [bit] NOT NULL,
|
|
[AccessFailedCount] [int] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
[LastModificationTime] [datetime2](7) NULL,
|
|
[LastModifierId] [uniqueidentifier] NULL,
|
|
[IsDeleted] [bit] NOT NULL,
|
|
[DeleterId] [uniqueidentifier] NULL,
|
|
[DeletionTime] [datetime2](7) NULL,
|
|
CONSTRAINT [PK_AbpUsers] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[AbpUserTokens] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[AbpUserTokens](
|
|
[UserId] [uniqueidentifier] NOT NULL,
|
|
[LoginProvider] [nvarchar](64) NOT NULL,
|
|
[Name] [nvarchar](128) NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
[Value] [nvarchar](max) NULL,
|
|
CONSTRAINT [PK_AbpUserTokens] PRIMARY KEY CLUSTERED
|
|
(
|
|
[UserId] ASC,
|
|
[LoginProvider] ASC,
|
|
[Name] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[base_branch_role] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[base_branch_role](
|
|
[RoleId] [uniqueidentifier] NOT NULL,
|
|
[BranchId] [uniqueidentifier] NOT NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
CONSTRAINT [PK_base_branch_role] PRIMARY KEY CLUSTERED
|
|
(
|
|
[BranchId] ASC,
|
|
[RoleId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[base_branches] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[base_branches](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[CategoryId] [smallint] NOT NULL,
|
|
[Pid] [uniqueidentifier] NULL,
|
|
[Name] [nvarchar](50) NOT NULL,
|
|
[FullName] [nvarchar](128) NOT NULL,
|
|
[Sort] [int] NOT NULL,
|
|
[Enabled] [bit] NOT NULL,
|
|
[IsDeleted] [bit] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
[LastModificationTime] [datetime2](7) NULL,
|
|
[LastModifierId] [uniqueidentifier] NULL,
|
|
[CascadeId] [nvarchar](max) NULL,
|
|
[Leaf] [bit] NOT NULL,
|
|
[TenantId] [uniqueidentifier] NULL,
|
|
CONSTRAINT [PK_base_branches] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[base_user_branch_role] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[base_user_branch_role](
|
|
[UserBranchId] [uniqueidentifier] NOT NULL,
|
|
[Id] [int] IDENTITY(1,1) NOT NULL,
|
|
[RoleId] [uniqueidentifier] NOT NULL,
|
|
CONSTRAINT [PK_base_user_branch_role] PRIMARY KEY CLUSTERED
|
|
(
|
|
[UserBranchId] ASC,
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[base_user_branches] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[base_user_branches](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[UserId] [uniqueidentifier] NOT NULL,
|
|
[BranchId] [uniqueidentifier] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
[LastModificationTime] [datetime2](7) NULL,
|
|
[LastModifierId] [uniqueidentifier] NULL,
|
|
CONSTRAINT [PK_base_user_branches] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerApiResourceClaims] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerApiResourceClaims](
|
|
[Type] [nvarchar](200) NOT NULL,
|
|
[ApiResourceId] [uniqueidentifier] NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerApiResourceClaims] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ApiResourceId] ASC,
|
|
[Type] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerApiResourceProperties] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerApiResourceProperties](
|
|
[ApiResourceId] [uniqueidentifier] NOT NULL,
|
|
[Key] [nvarchar](250) NOT NULL,
|
|
[Value] [nvarchar](2000) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerApiResourceProperties] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ApiResourceId] ASC,
|
|
[Key] ASC,
|
|
[Value] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerApiResources] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerApiResources](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
[LastModificationTime] [datetime2](7) NULL,
|
|
[LastModifierId] [uniqueidentifier] NULL,
|
|
[IsDeleted] [bit] NOT NULL,
|
|
[DeleterId] [uniqueidentifier] NULL,
|
|
[DeletionTime] [datetime2](7) NULL,
|
|
[Name] [nvarchar](200) NOT NULL,
|
|
[DisplayName] [nvarchar](200) NULL,
|
|
[Description] [nvarchar](1000) NULL,
|
|
[Enabled] [bit] NOT NULL,
|
|
[AllowedAccessTokenSigningAlgorithms] [nvarchar](100) NULL,
|
|
[ShowInDiscoveryDocument] [bit] NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerApiResources] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerApiResourceScopes] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerApiResourceScopes](
|
|
[ApiResourceId] [uniqueidentifier] NOT NULL,
|
|
[Scope] [nvarchar](200) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerApiResourceScopes] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ApiResourceId] ASC,
|
|
[Scope] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerApiResourceSecrets] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerApiResourceSecrets](
|
|
[Type] [nvarchar](250) NOT NULL,
|
|
[Value] [nvarchar](4000) NOT NULL,
|
|
[ApiResourceId] [uniqueidentifier] NOT NULL,
|
|
[Description] [nvarchar](1000) NULL,
|
|
[Expiration] [datetime2](7) NULL,
|
|
CONSTRAINT [PK_IdentityServerApiResourceSecrets] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ApiResourceId] ASC,
|
|
[Type] ASC,
|
|
[Value] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerApiScopeClaims] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerApiScopeClaims](
|
|
[Type] [nvarchar](200) NOT NULL,
|
|
[ApiScopeId] [uniqueidentifier] NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerApiScopeClaims] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ApiScopeId] ASC,
|
|
[Type] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerApiScopeProperties] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerApiScopeProperties](
|
|
[ApiScopeId] [uniqueidentifier] NOT NULL,
|
|
[Key] [nvarchar](250) NOT NULL,
|
|
[Value] [nvarchar](2000) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerApiScopeProperties] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ApiScopeId] ASC,
|
|
[Key] ASC,
|
|
[Value] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerApiScopes] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerApiScopes](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[Name] [nvarchar](200) NOT NULL,
|
|
[DisplayName] [nvarchar](200) NULL,
|
|
[Description] [nvarchar](1000) NULL,
|
|
[Required] [bit] NOT NULL,
|
|
[Emphasize] [bit] NOT NULL,
|
|
[ShowInDiscoveryDocument] [bit] NOT NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
[DeleterId] [uniqueidentifier] NULL,
|
|
[DeletionTime] [datetime2](7) NULL,
|
|
[Enabled] [bit] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[IsDeleted] [bit] NOT NULL,
|
|
[LastModificationTime] [datetime2](7) NULL,
|
|
[LastModifierId] [uniqueidentifier] NULL,
|
|
CONSTRAINT [PK_IdentityServerApiScopes] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerClientClaims] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerClientClaims](
|
|
[ClientId] [uniqueidentifier] NOT NULL,
|
|
[Type] [nvarchar](250) NOT NULL,
|
|
[Value] [nvarchar](250) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerClientClaims] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ClientId] ASC,
|
|
[Type] ASC,
|
|
[Value] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerClientCorsOrigins] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerClientCorsOrigins](
|
|
[ClientId] [uniqueidentifier] NOT NULL,
|
|
[Origin] [nvarchar](150) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerClientCorsOrigins] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ClientId] ASC,
|
|
[Origin] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerClientGrantTypes] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerClientGrantTypes](
|
|
[ClientId] [uniqueidentifier] NOT NULL,
|
|
[GrantType] [nvarchar](250) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerClientGrantTypes] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ClientId] ASC,
|
|
[GrantType] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerClientIdPRestrictions] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerClientIdPRestrictions](
|
|
[ClientId] [uniqueidentifier] NOT NULL,
|
|
[Provider] [nvarchar](200) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerClientIdPRestrictions] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ClientId] ASC,
|
|
[Provider] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerClientPostLogoutRedirectUris] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerClientPostLogoutRedirectUris](
|
|
[ClientId] [uniqueidentifier] NOT NULL,
|
|
[PostLogoutRedirectUri] [nvarchar](2000) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerClientPostLogoutRedirectUris] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ClientId] ASC,
|
|
[PostLogoutRedirectUri] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerClientProperties] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerClientProperties](
|
|
[ClientId] [uniqueidentifier] NOT NULL,
|
|
[Key] [nvarchar](250) NOT NULL,
|
|
[Value] [nvarchar](2000) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerClientProperties] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ClientId] ASC,
|
|
[Key] ASC,
|
|
[Value] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerClientRedirectUris] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerClientRedirectUris](
|
|
[ClientId] [uniqueidentifier] NOT NULL,
|
|
[RedirectUri] [nvarchar](2000) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerClientRedirectUris] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ClientId] ASC,
|
|
[RedirectUri] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerClients] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerClients](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
[LastModificationTime] [datetime2](7) NULL,
|
|
[LastModifierId] [uniqueidentifier] NULL,
|
|
[IsDeleted] [bit] NOT NULL,
|
|
[DeleterId] [uniqueidentifier] NULL,
|
|
[DeletionTime] [datetime2](7) NULL,
|
|
[ClientId] [nvarchar](200) NOT NULL,
|
|
[ClientName] [nvarchar](200) NULL,
|
|
[Description] [nvarchar](1000) NULL,
|
|
[ClientUri] [nvarchar](2000) NULL,
|
|
[LogoUri] [nvarchar](2000) NULL,
|
|
[Enabled] [bit] NOT NULL,
|
|
[ProtocolType] [nvarchar](200) NOT NULL,
|
|
[RequireClientSecret] [bit] NOT NULL,
|
|
[RequireConsent] [bit] NOT NULL,
|
|
[AllowRememberConsent] [bit] NOT NULL,
|
|
[AlwaysIncludeUserClaimsInIdToken] [bit] NOT NULL,
|
|
[RequirePkce] [bit] NOT NULL,
|
|
[AllowPlainTextPkce] [bit] NOT NULL,
|
|
[AllowAccessTokensViaBrowser] [bit] NOT NULL,
|
|
[FrontChannelLogoutUri] [nvarchar](2000) NULL,
|
|
[FrontChannelLogoutSessionRequired] [bit] NOT NULL,
|
|
[BackChannelLogoutUri] [nvarchar](2000) NULL,
|
|
[BackChannelLogoutSessionRequired] [bit] NOT NULL,
|
|
[AllowOfflineAccess] [bit] NOT NULL,
|
|
[IdentityTokenLifetime] [int] NOT NULL,
|
|
[AccessTokenLifetime] [int] NOT NULL,
|
|
[AuthorizationCodeLifetime] [int] NOT NULL,
|
|
[ConsentLifetime] [int] NULL,
|
|
[AbsoluteRefreshTokenLifetime] [int] NOT NULL,
|
|
[SlidingRefreshTokenLifetime] [int] NOT NULL,
|
|
[RefreshTokenUsage] [int] NOT NULL,
|
|
[UpdateAccessTokenClaimsOnRefresh] [bit] NOT NULL,
|
|
[RefreshTokenExpiration] [int] NOT NULL,
|
|
[AccessTokenType] [int] NOT NULL,
|
|
[EnableLocalLogin] [bit] NOT NULL,
|
|
[IncludeJwtId] [bit] NOT NULL,
|
|
[AlwaysSendClientClaims] [bit] NOT NULL,
|
|
[ClientClaimsPrefix] [nvarchar](200) NULL,
|
|
[PairWiseSubjectSalt] [nvarchar](200) NULL,
|
|
[UserSsoLifetime] [int] NULL,
|
|
[UserCodeType] [nvarchar](100) NULL,
|
|
[DeviceCodeLifetime] [int] NOT NULL,
|
|
[AllowedIdentityTokenSigningAlgorithms] [nvarchar](100) NULL,
|
|
[RequireRequestObject] [bit] NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerClients] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerClientScopes] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerClientScopes](
|
|
[ClientId] [uniqueidentifier] NOT NULL,
|
|
[Scope] [nvarchar](200) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerClientScopes] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ClientId] ASC,
|
|
[Scope] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerClientSecrets] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerClientSecrets](
|
|
[Type] [nvarchar](250) NOT NULL,
|
|
[Value] [nvarchar](4000) NOT NULL,
|
|
[ClientId] [uniqueidentifier] NOT NULL,
|
|
[Description] [nvarchar](2000) NULL,
|
|
[Expiration] [datetime2](7) NULL,
|
|
CONSTRAINT [PK_IdentityServerClientSecrets] PRIMARY KEY CLUSTERED
|
|
(
|
|
[ClientId] ASC,
|
|
[Type] ASC,
|
|
[Value] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerDeviceFlowCodes] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerDeviceFlowCodes](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
[DeviceCode] [nvarchar](200) NOT NULL,
|
|
[UserCode] [nvarchar](200) NOT NULL,
|
|
[SubjectId] [nvarchar](200) NULL,
|
|
[ClientId] [nvarchar](200) NOT NULL,
|
|
[Expiration] [datetime2](7) NOT NULL,
|
|
[Data] [nvarchar](max) NOT NULL,
|
|
[Description] [nvarchar](200) NULL,
|
|
[SessionId] [nvarchar](100) NULL,
|
|
CONSTRAINT [PK_IdentityServerDeviceFlowCodes] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerIdentityResourceClaims] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerIdentityResourceClaims](
|
|
[Type] [nvarchar](200) NOT NULL,
|
|
[IdentityResourceId] [uniqueidentifier] NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerIdentityResourceClaims] PRIMARY KEY CLUSTERED
|
|
(
|
|
[IdentityResourceId] ASC,
|
|
[Type] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerIdentityResourceProperties] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerIdentityResourceProperties](
|
|
[IdentityResourceId] [uniqueidentifier] NOT NULL,
|
|
[Key] [nvarchar](250) NOT NULL,
|
|
[Value] [nvarchar](2000) NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerIdentityResourceProperties] PRIMARY KEY CLUSTERED
|
|
(
|
|
[IdentityResourceId] ASC,
|
|
[Key] ASC,
|
|
[Value] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerIdentityResources] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerIdentityResources](
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[CreatorId] [uniqueidentifier] NULL,
|
|
[LastModificationTime] [datetime2](7) NULL,
|
|
[LastModifierId] [uniqueidentifier] NULL,
|
|
[IsDeleted] [bit] NOT NULL,
|
|
[DeleterId] [uniqueidentifier] NULL,
|
|
[DeletionTime] [datetime2](7) NULL,
|
|
[Name] [nvarchar](200) NOT NULL,
|
|
[DisplayName] [nvarchar](200) NULL,
|
|
[Description] [nvarchar](1000) NULL,
|
|
[Enabled] [bit] NOT NULL,
|
|
[Required] [bit] NOT NULL,
|
|
[Emphasize] [bit] NOT NULL,
|
|
[ShowInDiscoveryDocument] [bit] NOT NULL,
|
|
CONSTRAINT [PK_IdentityServerIdentityResources] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[IdentityServerPersistedGrants] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[IdentityServerPersistedGrants](
|
|
[Key] [nvarchar](200) NOT NULL,
|
|
[Id] [uniqueidentifier] NOT NULL,
|
|
[ExtraProperties] [nvarchar](max) NULL,
|
|
[ConcurrencyStamp] [nvarchar](40) NULL,
|
|
[Type] [nvarchar](50) NOT NULL,
|
|
[SubjectId] [nvarchar](200) NULL,
|
|
[ClientId] [nvarchar](200) NOT NULL,
|
|
[CreationTime] [datetime2](7) NOT NULL,
|
|
[Expiration] [datetime2](7) NULL,
|
|
[Data] [nvarchar](max) NOT NULL,
|
|
[ConsumedTime] [datetime2](7) NULL,
|
|
[Description] [nvarchar](200) NULL,
|
|
[SessionId] [nvarchar](100) NULL,
|
|
CONSTRAINT [PK_IdentityServerPersistedGrants] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Key] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Table [dbo].[Logs] Script Date: 2023/7/12 15:27:16 ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[Logs](
|
|
[Id] [int] IDENTITY(1,1) NOT NULL,
|
|
[Message] [nvarchar](max) NULL,
|
|
[MessageTemplate] [nvarchar](max) NULL,
|
|
[Level] [nvarchar](max) NULL,
|
|
[TimeStamp] [datetime] NULL,
|
|
[Exception] [nvarchar](max) NULL,
|
|
[Properties] [nvarchar](max) NULL,
|
|
CONSTRAINT [PK_Logs] PRIMARY KEY CLUSTERED
|
|
(
|
|
[Id] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpAuditLogActions_AuditLogId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpAuditLogActions_AuditLogId] ON [dbo].[AbpAuditLogActions]
|
|
(
|
|
[AuditLogId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime] ON [dbo].[AbpAuditLogActions]
|
|
(
|
|
[TenantId] ASC,
|
|
[ServiceName] ASC,
|
|
[MethodName] ASC,
|
|
[ExecutionTime] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpAuditLogs_TenantId_ExecutionTime] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpAuditLogs_TenantId_ExecutionTime] ON [dbo].[AbpAuditLogs]
|
|
(
|
|
[TenantId] ASC,
|
|
[ExecutionTime] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpAuditLogs_TenantId_UserId_ExecutionTime] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpAuditLogs_TenantId_UserId_ExecutionTime] ON [dbo].[AbpAuditLogs]
|
|
(
|
|
[TenantId] ASC,
|
|
[UserId] ASC,
|
|
[ExecutionTime] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpEntityChanges_AuditLogId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpEntityChanges_AuditLogId] ON [dbo].[AbpEntityChanges]
|
|
(
|
|
[AuditLogId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId] ON [dbo].[AbpEntityChanges]
|
|
(
|
|
[TenantId] ASC,
|
|
[EntityTypeFullName] ASC,
|
|
[EntityId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpEntityPropertyChanges_EntityChangeId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpEntityPropertyChanges_EntityChangeId] ON [dbo].[AbpEntityPropertyChanges]
|
|
(
|
|
[EntityChangeId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE UNIQUE NONCLUSTERED INDEX [IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId] ON [dbo].[AbpLinkUsers]
|
|
(
|
|
[SourceUserId] ASC,
|
|
[SourceTenantId] ASC,
|
|
[TargetUserId] ASC,
|
|
[TargetTenantId] ASC
|
|
)
|
|
WHERE ([SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL)
|
|
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId] ON [dbo].[AbpOrganizationUnitRoles]
|
|
(
|
|
[RoleId] ASC,
|
|
[OrganizationUnitId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpOrganizationUnits_Code] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpOrganizationUnits_Code] ON [dbo].[AbpOrganizationUnits]
|
|
(
|
|
[Code] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpOrganizationUnits_ParentId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpOrganizationUnits_ParentId] ON [dbo].[AbpOrganizationUnits]
|
|
(
|
|
[ParentId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpPermissionGrants_Name_ProviderName_ProviderKey] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpPermissionGrants_Name_ProviderName_ProviderKey] ON [dbo].[AbpPermissionGrants]
|
|
(
|
|
[Name] ASC,
|
|
[ProviderName] ASC,
|
|
[ProviderKey] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpRoleClaims_RoleId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpRoleClaims_RoleId] ON [dbo].[AbpRoleClaims]
|
|
(
|
|
[RoleId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpRoles_NormalizedName] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpRoles_NormalizedName] ON [dbo].[AbpRoles]
|
|
(
|
|
[NormalizedName] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpSecurityLogs_TenantId_Action] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpSecurityLogs_TenantId_Action] ON [dbo].[AbpSecurityLogs]
|
|
(
|
|
[TenantId] ASC,
|
|
[Action] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpSecurityLogs_TenantId_ApplicationName] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpSecurityLogs_TenantId_ApplicationName] ON [dbo].[AbpSecurityLogs]
|
|
(
|
|
[TenantId] ASC,
|
|
[ApplicationName] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpSecurityLogs_TenantId_Identity] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpSecurityLogs_TenantId_Identity] ON [dbo].[AbpSecurityLogs]
|
|
(
|
|
[TenantId] ASC,
|
|
[Identity] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpSecurityLogs_TenantId_UserId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpSecurityLogs_TenantId_UserId] ON [dbo].[AbpSecurityLogs]
|
|
(
|
|
[TenantId] ASC,
|
|
[UserId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpSettings_Name_ProviderName_ProviderKey] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpSettings_Name_ProviderName_ProviderKey] ON [dbo].[AbpSettings]
|
|
(
|
|
[Name] ASC,
|
|
[ProviderName] ASC,
|
|
[ProviderKey] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpTenants_Name] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpTenants_Name] ON [dbo].[AbpTenants]
|
|
(
|
|
[Name] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpUserClaims_UserId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpUserClaims_UserId] ON [dbo].[AbpUserClaims]
|
|
(
|
|
[UserId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpUserLogins_LoginProvider_ProviderKey] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpUserLogins_LoginProvider_ProviderKey] ON [dbo].[AbpUserLogins]
|
|
(
|
|
[LoginProvider] ASC,
|
|
[ProviderKey] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId] ON [dbo].[AbpUserOrganizationUnits]
|
|
(
|
|
[UserId] ASC,
|
|
[OrganizationUnitId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_AbpUserRoles_RoleId_UserId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpUserRoles_RoleId_UserId] ON [dbo].[AbpUserRoles]
|
|
(
|
|
[RoleId] ASC,
|
|
[UserId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpUsers_Email] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpUsers_Email] ON [dbo].[AbpUsers]
|
|
(
|
|
[Email] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpUsers_NormalizedEmail] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpUsers_NormalizedEmail] ON [dbo].[AbpUsers]
|
|
(
|
|
[NormalizedEmail] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpUsers_NormalizedUserName] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpUsers_NormalizedUserName] ON [dbo].[AbpUsers]
|
|
(
|
|
[NormalizedUserName] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_AbpUsers_UserName] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_AbpUsers_UserName] ON [dbo].[AbpUsers]
|
|
(
|
|
[UserName] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_base_branches_Pid] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_base_branches_Pid] ON [dbo].[base_branches]
|
|
(
|
|
[Pid] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_IdentityServerClients_ClientId] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_IdentityServerClients_ClientId] ON [dbo].[IdentityServerClients]
|
|
(
|
|
[ClientId] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_IdentityServerDeviceFlowCodes_DeviceCode] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE UNIQUE NONCLUSTERED INDEX [IX_IdentityServerDeviceFlowCodes_DeviceCode] ON [dbo].[IdentityServerDeviceFlowCodes]
|
|
(
|
|
[DeviceCode] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_IdentityServerDeviceFlowCodes_Expiration] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_IdentityServerDeviceFlowCodes_Expiration] ON [dbo].[IdentityServerDeviceFlowCodes]
|
|
(
|
|
[Expiration] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_IdentityServerDeviceFlowCodes_UserCode] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_IdentityServerDeviceFlowCodes_UserCode] ON [dbo].[IdentityServerDeviceFlowCodes]
|
|
(
|
|
[UserCode] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
/****** Object: Index [IX_IdentityServerPersistedGrants_Expiration] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_IdentityServerPersistedGrants_Expiration] ON [dbo].[IdentityServerPersistedGrants]
|
|
(
|
|
[Expiration] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_IdentityServerPersistedGrants_SubjectId_ClientId_Type] Script Date: 2023/7/12 15:27:16 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_IdentityServerPersistedGrants_SubjectId_ClientId_Type] ON [dbo].[IdentityServerPersistedGrants]
|
|
(
|
|
[SubjectId] ASC,
|
|
[ClientId] ASC,
|
|
[Type] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/****** Object: Index [IX_IdentityServerPersistedGrants_SubjectId_SessionId_Type] Script Date: 2023/7/12 15:27:17 ******/
|
|
CREATE NONCLUSTERED INDEX [IX_IdentityServerPersistedGrants_SubjectId_SessionId_Type] ON [dbo].[IdentityServerPersistedGrants]
|
|
(
|
|
[SubjectId] ASC,
|
|
[SessionId] ASC,
|
|
[Type] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpOrganizationUnits] ADD DEFAULT (CONVERT([bit],(0))) FOR [IsDeleted]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpTenants] ADD DEFAULT (CONVERT([bit],(0))) FOR [IsDeleted]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUsers] ADD DEFAULT (CONVERT([bit],(0))) FOR [EmailConfirmed]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUsers] ADD DEFAULT (CONVERT([bit],(0))) FOR [IsExternal]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUsers] ADD DEFAULT (CONVERT([bit],(0))) FOR [PhoneNumberConfirmed]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUsers] ADD DEFAULT (CONVERT([bit],(0))) FOR [TwoFactorEnabled]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUsers] ADD DEFAULT (CONVERT([bit],(0))) FOR [LockoutEnabled]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUsers] ADD DEFAULT ((0)) FOR [AccessFailedCount]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUsers] ADD DEFAULT (CONVERT([bit],(0))) FOR [IsDeleted]
|
|
GO
|
|
ALTER TABLE [dbo].[base_branches] ADD DEFAULT (CONVERT([bit],(0))) FOR [Enabled]
|
|
GO
|
|
ALTER TABLE [dbo].[base_branches] ADD DEFAULT (CONVERT([bit],(0))) FOR [IsDeleted]
|
|
GO
|
|
ALTER TABLE [dbo].[base_branches] ADD DEFAULT (CONVERT([bit],(0))) FOR [Leaf]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiResources] ADD DEFAULT (CONVERT([bit],(0))) FOR [IsDeleted]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiResources] ADD DEFAULT (CONVERT([bit],(0))) FOR [ShowInDiscoveryDocument]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiScopes] ADD DEFAULT ('0001-01-01T00:00:00.0000000') FOR [CreationTime]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiScopes] ADD DEFAULT (CONVERT([bit],(0))) FOR [Enabled]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiScopes] ADD DEFAULT (CONVERT([bit],(0))) FOR [IsDeleted]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClients] ADD DEFAULT (CONVERT([bit],(0))) FOR [IsDeleted]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClients] ADD DEFAULT (CONVERT([bit],(0))) FOR [RequireRequestObject]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerIdentityResources] ADD DEFAULT (CONVERT([bit],(0))) FOR [IsDeleted]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpAuditLogActions] WITH CHECK ADD CONSTRAINT [FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId] FOREIGN KEY([AuditLogId])
|
|
REFERENCES [dbo].[AbpAuditLogs] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpAuditLogActions] CHECK CONSTRAINT [FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpEntityChanges] WITH CHECK ADD CONSTRAINT [FK_AbpEntityChanges_AbpAuditLogs_AuditLogId] FOREIGN KEY([AuditLogId])
|
|
REFERENCES [dbo].[AbpAuditLogs] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpEntityChanges] CHECK CONSTRAINT [FK_AbpEntityChanges_AbpAuditLogs_AuditLogId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpEntityPropertyChanges] WITH CHECK ADD CONSTRAINT [FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId] FOREIGN KEY([EntityChangeId])
|
|
REFERENCES [dbo].[AbpEntityChanges] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpEntityPropertyChanges] CHECK CONSTRAINT [FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpOrganizationUnitRoles] WITH CHECK ADD CONSTRAINT [FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId] FOREIGN KEY([OrganizationUnitId])
|
|
REFERENCES [dbo].[AbpOrganizationUnits] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpOrganizationUnitRoles] CHECK CONSTRAINT [FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpOrganizationUnitRoles] WITH CHECK ADD CONSTRAINT [FK_AbpOrganizationUnitRoles_AbpRoles_RoleId] FOREIGN KEY([RoleId])
|
|
REFERENCES [dbo].[AbpRoles] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpOrganizationUnitRoles] CHECK CONSTRAINT [FK_AbpOrganizationUnitRoles_AbpRoles_RoleId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpOrganizationUnits] WITH CHECK ADD CONSTRAINT [FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId] FOREIGN KEY([ParentId])
|
|
REFERENCES [dbo].[AbpOrganizationUnits] ([Id])
|
|
GO
|
|
ALTER TABLE [dbo].[AbpOrganizationUnits] CHECK CONSTRAINT [FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpRoleClaims] WITH CHECK ADD CONSTRAINT [FK_AbpRoleClaims_AbpRoles_RoleId] FOREIGN KEY([RoleId])
|
|
REFERENCES [dbo].[AbpRoles] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpRoleClaims] CHECK CONSTRAINT [FK_AbpRoleClaims_AbpRoles_RoleId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpTenantConnectionStrings] WITH CHECK ADD CONSTRAINT [FK_AbpTenantConnectionStrings_AbpTenants_TenantId] FOREIGN KEY([TenantId])
|
|
REFERENCES [dbo].[AbpTenants] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpTenantConnectionStrings] CHECK CONSTRAINT [FK_AbpTenantConnectionStrings_AbpTenants_TenantId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserClaims] WITH CHECK ADD CONSTRAINT [FK_AbpUserClaims_AbpUsers_UserId] FOREIGN KEY([UserId])
|
|
REFERENCES [dbo].[AbpUsers] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserClaims] CHECK CONSTRAINT [FK_AbpUserClaims_AbpUsers_UserId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserLogins] WITH CHECK ADD CONSTRAINT [FK_AbpUserLogins_AbpUsers_UserId] FOREIGN KEY([UserId])
|
|
REFERENCES [dbo].[AbpUsers] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserLogins] CHECK CONSTRAINT [FK_AbpUserLogins_AbpUsers_UserId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserOrganizationUnits] WITH CHECK ADD CONSTRAINT [FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId] FOREIGN KEY([OrganizationUnitId])
|
|
REFERENCES [dbo].[AbpOrganizationUnits] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserOrganizationUnits] CHECK CONSTRAINT [FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserOrganizationUnits] WITH CHECK ADD CONSTRAINT [FK_AbpUserOrganizationUnits_AbpUsers_UserId] FOREIGN KEY([UserId])
|
|
REFERENCES [dbo].[AbpUsers] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserOrganizationUnits] CHECK CONSTRAINT [FK_AbpUserOrganizationUnits_AbpUsers_UserId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserRoles] WITH CHECK ADD CONSTRAINT [FK_AbpUserRoles_AbpRoles_RoleId] FOREIGN KEY([RoleId])
|
|
REFERENCES [dbo].[AbpRoles] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserRoles] CHECK CONSTRAINT [FK_AbpUserRoles_AbpRoles_RoleId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserRoles] WITH CHECK ADD CONSTRAINT [FK_AbpUserRoles_AbpUsers_UserId] FOREIGN KEY([UserId])
|
|
REFERENCES [dbo].[AbpUsers] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserRoles] CHECK CONSTRAINT [FK_AbpUserRoles_AbpUsers_UserId]
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserTokens] WITH CHECK ADD CONSTRAINT [FK_AbpUserTokens_AbpUsers_UserId] FOREIGN KEY([UserId])
|
|
REFERENCES [dbo].[AbpUsers] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[AbpUserTokens] CHECK CONSTRAINT [FK_AbpUserTokens_AbpUsers_UserId]
|
|
GO
|
|
ALTER TABLE [dbo].[base_branch_role] WITH CHECK ADD CONSTRAINT [FK_base_branch_role_base_branches_BranchId] FOREIGN KEY([BranchId])
|
|
REFERENCES [dbo].[base_branches] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[base_branch_role] CHECK CONSTRAINT [FK_base_branch_role_base_branches_BranchId]
|
|
GO
|
|
ALTER TABLE [dbo].[base_user_branch_role] WITH CHECK ADD CONSTRAINT [FK_base_user_branch_role_base_user_branches_UserBranchId] FOREIGN KEY([UserBranchId])
|
|
REFERENCES [dbo].[base_user_branches] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[base_user_branch_role] CHECK CONSTRAINT [FK_base_user_branch_role_base_user_branches_UserBranchId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiResourceClaims] WITH CHECK ADD CONSTRAINT [FK_IdentityServerApiResourceClaims_IdentityServerApiResources_ApiResourceId] FOREIGN KEY([ApiResourceId])
|
|
REFERENCES [dbo].[IdentityServerApiResources] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiResourceClaims] CHECK CONSTRAINT [FK_IdentityServerApiResourceClaims_IdentityServerApiResources_ApiResourceId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiResourceProperties] WITH CHECK ADD CONSTRAINT [FK_IdentityServerApiResourceProperties_IdentityServerApiResources_ApiResourceId] FOREIGN KEY([ApiResourceId])
|
|
REFERENCES [dbo].[IdentityServerApiResources] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiResourceProperties] CHECK CONSTRAINT [FK_IdentityServerApiResourceProperties_IdentityServerApiResources_ApiResourceId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiResourceScopes] WITH CHECK ADD CONSTRAINT [FK_IdentityServerApiResourceScopes_IdentityServerApiResources_ApiResourceId] FOREIGN KEY([ApiResourceId])
|
|
REFERENCES [dbo].[IdentityServerApiResources] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiResourceScopes] CHECK CONSTRAINT [FK_IdentityServerApiResourceScopes_IdentityServerApiResources_ApiResourceId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiResourceSecrets] WITH CHECK ADD CONSTRAINT [FK_IdentityServerApiResourceSecrets_IdentityServerApiResources_ApiResourceId] FOREIGN KEY([ApiResourceId])
|
|
REFERENCES [dbo].[IdentityServerApiResources] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiResourceSecrets] CHECK CONSTRAINT [FK_IdentityServerApiResourceSecrets_IdentityServerApiResources_ApiResourceId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiScopeClaims] WITH CHECK ADD CONSTRAINT [FK_IdentityServerApiScopeClaims_IdentityServerApiScopes_ApiScopeId] FOREIGN KEY([ApiScopeId])
|
|
REFERENCES [dbo].[IdentityServerApiScopes] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiScopeClaims] CHECK CONSTRAINT [FK_IdentityServerApiScopeClaims_IdentityServerApiScopes_ApiScopeId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiScopeProperties] WITH CHECK ADD CONSTRAINT [FK_IdentityServerApiScopeProperties_IdentityServerApiScopes_ApiScopeId] FOREIGN KEY([ApiScopeId])
|
|
REFERENCES [dbo].[IdentityServerApiScopes] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerApiScopeProperties] CHECK CONSTRAINT [FK_IdentityServerApiScopeProperties_IdentityServerApiScopes_ApiScopeId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientClaims] WITH CHECK ADD CONSTRAINT [FK_IdentityServerClientClaims_IdentityServerClients_ClientId] FOREIGN KEY([ClientId])
|
|
REFERENCES [dbo].[IdentityServerClients] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientClaims] CHECK CONSTRAINT [FK_IdentityServerClientClaims_IdentityServerClients_ClientId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientCorsOrigins] WITH CHECK ADD CONSTRAINT [FK_IdentityServerClientCorsOrigins_IdentityServerClients_ClientId] FOREIGN KEY([ClientId])
|
|
REFERENCES [dbo].[IdentityServerClients] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientCorsOrigins] CHECK CONSTRAINT [FK_IdentityServerClientCorsOrigins_IdentityServerClients_ClientId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientGrantTypes] WITH CHECK ADD CONSTRAINT [FK_IdentityServerClientGrantTypes_IdentityServerClients_ClientId] FOREIGN KEY([ClientId])
|
|
REFERENCES [dbo].[IdentityServerClients] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientGrantTypes] CHECK CONSTRAINT [FK_IdentityServerClientGrantTypes_IdentityServerClients_ClientId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientIdPRestrictions] WITH CHECK ADD CONSTRAINT [FK_IdentityServerClientIdPRestrictions_IdentityServerClients_ClientId] FOREIGN KEY([ClientId])
|
|
REFERENCES [dbo].[IdentityServerClients] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientIdPRestrictions] CHECK CONSTRAINT [FK_IdentityServerClientIdPRestrictions_IdentityServerClients_ClientId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientPostLogoutRedirectUris] WITH CHECK ADD CONSTRAINT [FK_IdentityServerClientPostLogoutRedirectUris_IdentityServerClients_ClientId] FOREIGN KEY([ClientId])
|
|
REFERENCES [dbo].[IdentityServerClients] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientPostLogoutRedirectUris] CHECK CONSTRAINT [FK_IdentityServerClientPostLogoutRedirectUris_IdentityServerClients_ClientId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientProperties] WITH CHECK ADD CONSTRAINT [FK_IdentityServerClientProperties_IdentityServerClients_ClientId] FOREIGN KEY([ClientId])
|
|
REFERENCES [dbo].[IdentityServerClients] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientProperties] CHECK CONSTRAINT [FK_IdentityServerClientProperties_IdentityServerClients_ClientId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientRedirectUris] WITH CHECK ADD CONSTRAINT [FK_IdentityServerClientRedirectUris_IdentityServerClients_ClientId] FOREIGN KEY([ClientId])
|
|
REFERENCES [dbo].[IdentityServerClients] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientRedirectUris] CHECK CONSTRAINT [FK_IdentityServerClientRedirectUris_IdentityServerClients_ClientId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientScopes] WITH CHECK ADD CONSTRAINT [FK_IdentityServerClientScopes_IdentityServerClients_ClientId] FOREIGN KEY([ClientId])
|
|
REFERENCES [dbo].[IdentityServerClients] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientScopes] CHECK CONSTRAINT [FK_IdentityServerClientScopes_IdentityServerClients_ClientId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientSecrets] WITH CHECK ADD CONSTRAINT [FK_IdentityServerClientSecrets_IdentityServerClients_ClientId] FOREIGN KEY([ClientId])
|
|
REFERENCES [dbo].[IdentityServerClients] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerClientSecrets] CHECK CONSTRAINT [FK_IdentityServerClientSecrets_IdentityServerClients_ClientId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerIdentityResourceClaims] WITH CHECK ADD CONSTRAINT [FK_IdentityServerIdentityResourceClaims_IdentityServerIdentityResources_IdentityResourceId] FOREIGN KEY([IdentityResourceId])
|
|
REFERENCES [dbo].[IdentityServerIdentityResources] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerIdentityResourceClaims] CHECK CONSTRAINT [FK_IdentityServerIdentityResourceClaims_IdentityServerIdentityResources_IdentityResourceId]
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerIdentityResourceProperties] WITH CHECK ADD CONSTRAINT [FK_IdentityServerIdentityResourceProperties_IdentityServerIdentityResources_IdentityResourceId] FOREIGN KEY([IdentityResourceId])
|
|
REFERENCES [dbo].[IdentityServerIdentityResources] ([Id])
|
|
ON DELETE CASCADE
|
|
GO
|
|
ALTER TABLE [dbo].[IdentityServerIdentityResourceProperties] CHECK CONSTRAINT [FK_IdentityServerIdentityResourceProperties_IdentityServerIdentityResources_IdentityResourceId]
|
|
GO
|
|
USE [master]
|
|
GO
|
|
ALTER DATABASE [ABP] SET READ_WRITE
|
|
GO
|
|
|