Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE [dbo].[tblAS0002](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [ShortName] [nvarchar](40) NOT NULL,
- [NUMBER] [nvarchar](20) NOT NULL,
- [Name1] [nvarchar](60) NULL,
- [Name2] [nvarchar](60) NULL,
- [Name3] [nvarchar](60) NULL,
- [Department] [nvarchar](60) NULL,
- [FUNCTION] [nvarchar](60) NULL,
- [NameSalutation] [nvarchar](30) NULL,
- [NameTitle] [nvarchar](30) NULL,
- [NameFirst] [nvarchar](30) NULL,
- [NameLast] [nvarchar](50) NULL,
- [Country] [nvarchar](3) NULL,
- [State] [nvarchar](3) NULL,
- [ZipCode] [nvarchar](10) NULL,
- [City] [nvarchar](40) NULL,
- [Street] [nvarchar](40) NULL,
- [POBoxZipCode] [nvarchar](10) NULL,
- [POBoxCity] [nvarchar](40) NULL,
- [POBox] [nvarchar](40) NULL,
- [Salutation] [nvarchar](80) NULL,
- [CommPhoneOffice] [nvarchar](25) NULL,
- [CommPhoneCentral] [nvarchar](25) NULL,
- [CommPhoneMobil] [nvarchar](25) NULL,
- [CommFaxOffice] [nvarchar](25) NULL,
- [CommPhonePrivat] [nvarchar](25) NULL,
- [CommFaxPrivat] [nvarchar](25) NULL,
- [CommPhone1] [nvarchar](25) NULL,
- [CommPhone1Text] [nvarchar](20) NULL,
- [CommPhone2] [nvarchar](25) NULL,
- [CommPhone2Text] [nvarchar](20) NULL,
- [CommPhone3] [nvarchar](25) NULL,
- [CommPhone3Text] [nvarchar](20) NULL,
- [CommEMail1] [nvarchar](255) NULL,
- [CommEMail2] [nvarchar](255) NULL,
- [CommEMail3] [nvarchar](255) NULL,
- [CommInternet] [nvarchar](255) NULL,
- [NameSwap] [tinyint] NULL,
- [StopHierarchy] [tinyint] NULL,
- [IdParent] [INT] NULL,
- [IdUserCreate] [INT] NOT NULL,
- [TimeCreate] [datetime] NOT NULL,
- [IdUserModify] [INT] NULL,
- [TimeModify] [datetime] NULL,
- [SyncDate] [datetime] NULL,
- [UID] [uniqueidentifier] NOT NULL,
- [Street2] [nvarchar](40) NULL,
- [OptInEmail] [tinyint] NULL,
- [OptInPhone] [tinyint] NULL,
- [OptInLetter] [tinyint] NULL,
- [OptInSMS] [tinyint] NULL,
- [OptInFax] [tinyint] NULL,
- [DegreeOfLatitude] [FLOAT] NULL,
- [DegreeOfLongitude] [FLOAT] NULL,
- [CoordinateQuality] [INT] NULL
- 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].[tblAS0002_EX0006] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_EX0006](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [IdAddress] [INT] NOT NULL,
- [IdUserCreate] [INT] NOT NULL,
- [TimeCreate] [datetime] NOT NULL,
- [IdUserModify] [INT] NULL,
- [TimeModify] [datetime] NULL,
- [UID] [uniqueidentifier] NOT NULL
- 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].[tblAS0002_EX0007] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_EX0007](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [IdAddress] [INT] NOT NULL,
- [IdUserCreate] [INT] NOT NULL,
- [TimeCreate] [datetime] NOT NULL,
- [IdUserModify] [INT] NULL,
- [TimeModify] [datetime] NULL,
- [UID] [uniqueidentifier] NOT NULL
- 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].[tblAS0002_EX0008] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_EX0008](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [IdAddress] [INT] NOT NULL,
- [IdUserCreate] [INT] NOT NULL,
- [TimeCreate] [datetime] NOT NULL,
- [IdUserModify] [INT] NULL,
- [TimeModify] [datetime] NULL,
- [UID] [uniqueidentifier] NOT NULL
- 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].[tblAS0002_History] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_History](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [IdAddress] [INT] NULL,
- [IdProject] [INT] NULL,
- [IdTicket] [INT] NULL,
- [IdState] [INT] NULL,
- [IdStateNext] [INT] NULL,
- [TYPE] [INT] NOT NULL,
- [CommMedia] [INT] NOT NULL,
- [CommMediaInOut] [INT] NOT NULL,
- [STATUS] [INT] NOT NULL,
- [CallStatus] [INT] NOT NULL,
- [CallDuration] [INT] NOT NULL,
- [UsageCount] [INT] NOT NULL,
- [CommunicationNumber] [nvarchar](60) NULL,
- [IdUser] [INT] NULL,
- [TIME] [datetime] NOT NULL,
- [TimeExpiration] [datetime] NULL,
- [File] [nvarchar](255) NULL,
- [Text] [nvarchar](2048) NULL,
- [IdUserCreate] [INT] NOT NULL,
- [TimeCreate] [datetime] NOT NULL,
- [IdUserModify] [INT] NULL,
- [TimeModify] [datetime] NULL,
- [UID] [uniqueidentifier] NOT NULL,
- [IdCost] [INT] NULL,
- [CostIntern] [FLOAT] NOT NULL,
- [CostExtern] [FLOAT] NOT NULL,
- [TransitionType] [INT] NOT NULL,
- [TotalDuration] [INT] NOT NULL,
- [IdPhase] [INT] NULL
- 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].[tblAS0002_History_Links] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_History_Links](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [IdHistory] [INT] NOT NULL,
- [IdAddress] [INT] NULL,
- [IdUser] [INT] NULL,
- [UID] [uniqueidentifier] NOT NULL
- 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].[tblAS0002_PhoneIdx] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_PhoneIdx](
- [Id] [INT] NOT NULL,
- [Phonenumber] [nvarchar](60) NULL
- ) ON [PRIMARY]
- GO
- /****** Object: Table [dbo].[tblAS0002_PJ0002] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_PJ0002](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [IdAddress] [INT] NOT NULL,
- [IdState] [INT] NULL,
- [IdStateLast] [INT] NULL,
- [TimeTicket] [datetime] NOT NULL,
- [FollowUpPriority] [INT] NULL,
- [IdFollowUpUser] [INT] NULL,
- [IdLastOp] [INT] NULL,
- [UsageCount] [INT] NULL,
- [TotalDuration] [INT] NULL,
- [IdUserCreate] [INT] NOT NULL,
- [TimeCreate] [datetime] NOT NULL,
- [IdUserModify] [INT] NULL,
- [TimeModify] [datetime] NULL,
- [UID] [uniqueidentifier] NOT NULL,
- [TimeTicketIntervalStart] [datetime] NULL,
- [TimeTicketIntervalEnd] [datetime] NULL,
- [TimeTicketIntervalWeekday] [INT] NULL,
- [FollowUpCommField] [INT] NULL,
- [TicketDescription] [nvarchar](255) NULL
- 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].[tblAS0002_PJ0002_PhoneIdx] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_PJ0002_PhoneIdx](
- [Id] [INT] NOT NULL,
- [Phonenumber] [nvarchar](60) NULL
- ) ON [PRIMARY]
- GO
- /****** Object: Table [dbo].[tblAS0002_PJ0004] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_PJ0004](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [IdAddress] [INT] NOT NULL,
- [IdState] [INT] NULL,
- [IdStateLast] [INT] NULL,
- [TimeTicket] [datetime] NOT NULL,
- [FollowUpPriority] [INT] NULL,
- [IdFollowUpUser] [INT] NULL,
- [IdLastOp] [INT] NULL,
- [UsageCount] [INT] NULL,
- [TotalDuration] [INT] NULL,
- [IdUserCreate] [INT] NOT NULL,
- [TimeCreate] [datetime] NOT NULL,
- [IdUserModify] [INT] NULL,
- [TimeModify] [datetime] NULL,
- [UID] [uniqueidentifier] NOT NULL,
- [TimeTicketIntervalStart] [datetime] NULL,
- [TimeTicketIntervalEnd] [datetime] NULL,
- [TimeTicketIntervalWeekday] [INT] NULL,
- [FollowUpCommField] [INT] NULL,
- [TicketDescription] [nvarchar](255) NULL
- 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].[tblAS0002_PJ0004_PhoneIdx] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_PJ0004_PhoneIdx](
- [Id] [INT] NOT NULL,
- [Phonenumber] [nvarchar](60) NULL
- ) ON [PRIMARY]
- GO
- /****** Object: Table [dbo].[tblAS0002_PJ0006] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_PJ0006](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [IdAddress] [INT] NOT NULL,
- [IdState] [INT] NULL,
- [IdStateLast] [INT] NULL,
- [TimeTicket] [datetime] NOT NULL,
- [FollowUpPriority] [INT] NULL,
- [IdFollowUpUser] [INT] NULL,
- [IdLastOp] [INT] NULL,
- [UsageCount] [INT] NULL,
- [TotalDuration] [INT] NULL,
- [IdUserCreate] [INT] NOT NULL,
- [TimeCreate] [datetime] NOT NULL,
- [IdUserModify] [INT] NULL,
- [TimeModify] [datetime] NULL,
- [UID] [uniqueidentifier] NOT NULL,
- [TimeTicketIntervalStart] [datetime] NULL,
- [TimeTicketIntervalEnd] [datetime] NULL,
- [TimeTicketIntervalWeekday] [INT] NULL,
- [FollowUpCommField] [INT] NULL,
- [TicketDescription] [nvarchar](255) NULL
- 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].[tblAS0002_PJ0006_PhoneIdx] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_PJ0006_PhoneIdx](
- [Id] [INT] NOT NULL,
- [Phonenumber] [nvarchar](60) NULL
- ) ON [PRIMARY]
- GO
- /****** Object: Table [dbo].[tblAS0002_PJ0008] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_PJ0008](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [IdAddress] [INT] NOT NULL,
- [IdState] [INT] NULL,
- [IdStateLast] [INT] NULL,
- [TimeTicket] [datetime] NOT NULL,
- [FollowUpPriority] [INT] NULL,
- [IdFollowUpUser] [INT] NULL,
- [IdLastOp] [INT] NULL,
- [UsageCount] [INT] NULL,
- [TotalDuration] [INT] NULL,
- [IdUserCreate] [INT] NOT NULL,
- [TimeCreate] [datetime] NOT NULL,
- [IdUserModify] [INT] NULL,
- [TimeModify] [datetime] NULL,
- [UID] [uniqueidentifier] NOT NULL,
- [TimeTicketIntervalStart] [datetime] NULL,
- [TimeTicketIntervalEnd] [datetime] NULL,
- [TimeTicketIntervalWeekday] [INT] NULL,
- [FollowUpCommField] [INT] NULL,
- [TicketDescription] [nvarchar](255) NULL
- 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].[tblAS0002_PJ0008_PhoneIdx] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_PJ0008_PhoneIdx](
- [Id] [INT] NOT NULL,
- [Phonenumber] [nvarchar](60) NULL
- ) ON [PRIMARY]
- GO
- /****** Object: Table [dbo].[tblAS0002_PS] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_PS](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [IdCategory] [INT] NOT NULL,
- [IdValue] [INT] NOT NULL,
- [IdColumn] [INT] NOT NULL,
- [IdAddress] [INT] NULL,
- [IdProject] [INT] NULL,
- [IdTicket] [INT] NULL,
- [UID] [uniqueidentifier] NOT NULL
- 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].[tblAS0002_Rights] Script Date: 10.01.2020 12:55:32 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[tblAS0002_Rights](
- [Id] [INT] IDENTITY(1,1) NOT NULL,
- [IdAddress] [INT] NOT NULL,
- [IdUser] [INT] NOT NULL,
- [UID] [uniqueidentifier] NOT NULL,
- 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
- SET ANSI_PADDING ON
- GO
- /****** Object: Index [idxAS0002_000002] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_000002] ON [dbo].[tblAS0002]
- (
- [ShortName] ASC,
- [Id] 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 [idxAS0002_000003] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_000003] ON [dbo].[tblAS0002]
- (
- [NUMBER] ASC,
- [Id] 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 [idxAS0002_000013] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_000013] ON [dbo].[tblAS0002]
- (
- [Country] 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 [idxAS0002_000015] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_000015] ON [dbo].[tblAS0002]
- (
- [ZipCode] 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 [idxAS0002_EX0006_000902] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_EX0006_000902] ON [dbo].[tblAS0002_EX0006]
- (
- [IdAddress] 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 [idxAS0002_EX0006_000908] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_EX0006_000908] ON [dbo].[tblAS0002_EX0006]
- (
- [UID] 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 [idxAS0002_EX0007_000902] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_EX0007_000902] ON [dbo].[tblAS0002_EX0007]
- (
- [IdAddress] 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 [idxAS0002_EX0007_000908] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_EX0007_000908] ON [dbo].[tblAS0002_EX0007]
- (
- [UID] 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 [idxAS0002_EX0008_000902] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_EX0008_000902] ON [dbo].[tblAS0002_EX0008]
- (
- [IdAddress] 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 [idxAS0002_EX0008_000908] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_EX0008_000908] ON [dbo].[tblAS0002_EX0008]
- (
- [UID] 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 [idxAS0002_History_IdAddress] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_History_IdAddress] ON [dbo].[tblAS0002_History]
- (
- [IdAddress] 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 [idxAS0002_History_ProjectTicket] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_History_ProjectTicket] ON [dbo].[tblAS0002_History]
- (
- [IdProject] ASC,
- [IdTicket] 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 [idxAS0002_History_UserType] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_History_UserType] ON [dbo].[tblAS0002_History]
- (
- [IdUser] 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
- /****** Object: Index [idxAS0002_HA_Address] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_HA_Address] ON [dbo].[tblAS0002_History_Links]
- (
- [IdAddress] 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 [idxAS0002_HA_HistoryAddressUser] Script Date: 10.01.2020 12:55:32 ******/
- CREATE UNIQUE NONCLUSTERED INDEX [idxAS0002_HA_HistoryAddressUser] ON [dbo].[tblAS0002_History_Links]
- (
- [IdHistory] ASC,
- [IdAddress] ASC,
- [IdUser] 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 [idxAS0002_HA_User] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_HA_User] ON [dbo].[tblAS0002_History_Links]
- (
- [IdUser] 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 [idxAS0002_PhoneIdx_Id] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PhoneIdx_Id] ON [dbo].[tblAS0002_PhoneIdx]
- (
- [Id] 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 [idxAS0002_PhoneIdx_Phonenumber] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PhoneIdx_Phonenumber] ON [dbo].[tblAS0002_PhoneIdx]
- (
- [Phonenumber] 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 [idxAS0002_PJ0002_001002] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0002_001002] ON [dbo].[tblAS0002_PJ0002]
- (
- [IdAddress] 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 [idxAS0002_PJ0002_001008] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0002_001008] ON [dbo].[tblAS0002_PJ0002]
- (
- [IdLastOp] 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 [idxAS0002_PJ0002_001015] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0002_001015] ON [dbo].[tblAS0002_PJ0002]
- (
- [UID] 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 [idxAS0002_PJ0002_Project_StatePriorityTimeIds] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0002_Project_StatePriorityTimeIds] ON [dbo].[tblAS0002_PJ0002]
- (
- [IdState] ASC,
- [FollowUpPriority] ASC,
- [TimeTicket] ASC,
- [Id] ASC,
- [IdFollowUpUser] ASC,
- [IdAddress] 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 [idxAS0002_PJ0002_Project_StateTimeIds] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0002_Project_StateTimeIds] ON [dbo].[tblAS0002_PJ0002]
- (
- [IdState] ASC,
- [TimeTicket] ASC,
- [Id] ASC,
- [IdFollowUpUser] ASC,
- [FollowUpPriority] ASC,
- [IdAddress] 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 [idxAS0002_PJ0002_Project_TimeFollowUp] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0002_Project_TimeFollowUp] ON [dbo].[tblAS0002_PJ0002]
- (
- [TimeTicket] ASC,
- [IdFollowUpUser] ASC,
- [FollowUpPriority] 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 [idxAS0002_PJ0002_PhoneIdx_Id] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0002_PhoneIdx_Id] ON [dbo].[tblAS0002_PJ0002_PhoneIdx]
- (
- [Id] 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 [idxAS0002_PJ0002_PhoneIdx_Phonenumber] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0002_PhoneIdx_Phonenumber] ON [dbo].[tblAS0002_PJ0002_PhoneIdx]
- (
- [Phonenumber] 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 [idxAS0002_PJ0004_001002] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0004_001002] ON [dbo].[tblAS0002_PJ0004]
- (
- [IdAddress] 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 [idxAS0002_PJ0004_001008] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0004_001008] ON [dbo].[tblAS0002_PJ0004]
- (
- [IdLastOp] 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 [idxAS0002_PJ0004_001015] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0004_001015] ON [dbo].[tblAS0002_PJ0004]
- (
- [UID] 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 [idxAS0002_PJ0004_Project_StatePriorityTimeIds] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0004_Project_StatePriorityTimeIds] ON [dbo].[tblAS0002_PJ0004]
- (
- [IdState] ASC,
- [FollowUpPriority] ASC,
- [TimeTicket] ASC,
- [Id] ASC,
- [IdFollowUpUser] ASC,
- [IdAddress] 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 [idxAS0002_PJ0004_Project_StateTimeIds] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0004_Project_StateTimeIds] ON [dbo].[tblAS0002_PJ0004]
- (
- [IdState] ASC,
- [TimeTicket] ASC,
- [Id] ASC,
- [IdFollowUpUser] ASC,
- [FollowUpPriority] ASC,
- [IdAddress] 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 [idxAS0002_PJ0004_Project_TimeFollowUp] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0004_Project_TimeFollowUp] ON [dbo].[tblAS0002_PJ0004]
- (
- [TimeTicket] ASC,
- [IdFollowUpUser] ASC,
- [FollowUpPriority] 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 [idxAS0002_PJ0004_PhoneIdx_Id] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0004_PhoneIdx_Id] ON [dbo].[tblAS0002_PJ0004_PhoneIdx]
- (
- [Id] 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 [idxAS0002_PJ0004_PhoneIdx_Phonenumber] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0004_PhoneIdx_Phonenumber] ON [dbo].[tblAS0002_PJ0004_PhoneIdx]
- (
- [Phonenumber] 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 [idxAS0002_PJ0006_001002] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0006_001002] ON [dbo].[tblAS0002_PJ0006]
- (
- [IdAddress] 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 [idxAS0002_PJ0006_001008] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0006_001008] ON [dbo].[tblAS0002_PJ0006]
- (
- [IdLastOp] 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 [idxAS0002_PJ0006_001015] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0006_001015] ON [dbo].[tblAS0002_PJ0006]
- (
- [UID] 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 [idxAS0002_PJ0006_Project_StatePriorityTimeIds] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0006_Project_StatePriorityTimeIds] ON [dbo].[tblAS0002_PJ0006]
- (
- [IdState] ASC,
- [FollowUpPriority] ASC,
- [TimeTicket] ASC,
- [Id] ASC,
- [IdFollowUpUser] ASC,
- [IdAddress] 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 [idxAS0002_PJ0006_Project_StateTimeIds] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0006_Project_StateTimeIds] ON [dbo].[tblAS0002_PJ0006]
- (
- [IdState] ASC,
- [TimeTicket] ASC,
- [Id] ASC,
- [IdFollowUpUser] ASC,
- [FollowUpPriority] ASC,
- [IdAddress] 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 [idxAS0002_PJ0006_Project_TimeFollowUp] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0006_Project_TimeFollowUp] ON [dbo].[tblAS0002_PJ0006]
- (
- [TimeTicket] ASC,
- [IdFollowUpUser] ASC,
- [FollowUpPriority] 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 [idxAS0002_PJ0006_PhoneIdx_Id] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0006_PhoneIdx_Id] ON [dbo].[tblAS0002_PJ0006_PhoneIdx]
- (
- [Id] 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 [idxAS0002_PJ0006_PhoneIdx_Phonenumber] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0006_PhoneIdx_Phonenumber] ON [dbo].[tblAS0002_PJ0006_PhoneIdx]
- (
- [Phonenumber] 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 [idxAS0002_PJ0008_001002] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0008_001002] ON [dbo].[tblAS0002_PJ0008]
- (
- [IdAddress] 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 [idxAS0002_PJ0008_001008] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0008_001008] ON [dbo].[tblAS0002_PJ0008]
- (
- [IdLastOp] 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 [idxAS0002_PJ0008_001015] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0008_001015] ON [dbo].[tblAS0002_PJ0008]
- (
- [UID] 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 [idxAS0002_PJ0008_Project_StatePriorityTimeIds] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0008_Project_StatePriorityTimeIds] ON [dbo].[tblAS0002_PJ0008]
- (
- [IdState] ASC,
- [FollowUpPriority] ASC,
- [TimeTicket] ASC,
- [Id] ASC,
- [IdFollowUpUser] ASC,
- [IdAddress] 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 [idxAS0002_PJ0008_Project_StateTimeIds] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0008_Project_StateTimeIds] ON [dbo].[tblAS0002_PJ0008]
- (
- [IdState] ASC,
- [TimeTicket] ASC,
- [Id] ASC,
- [IdFollowUpUser] ASC,
- [FollowUpPriority] ASC,
- [IdAddress] 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 [idxAS0002_PJ0008_Project_TimeFollowUp] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0008_Project_TimeFollowUp] ON [dbo].[tblAS0002_PJ0008]
- (
- [TimeTicket] ASC,
- [IdFollowUpUser] ASC,
- [FollowUpPriority] 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 [idxAS0002_PJ0008_PhoneIdx_Id] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0008_PhoneIdx_Id] ON [dbo].[tblAS0002_PJ0008_PhoneIdx]
- (
- [Id] 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 [idxAS0002_PJ0008_PhoneIdx_Phonenumber] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PJ0008_PhoneIdx_Phonenumber] ON [dbo].[tblAS0002_PJ0008_PhoneIdx]
- (
- [Phonenumber] 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 [idxAS0002_PS_Category] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PS_Category] ON [dbo].[tblAS0002_PS]
- (
- [IdCategory] 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 [idxAS0002_PS_ColValAddrTicket] Script Date: 10.01.2020 12:55:32 ******/
- CREATE UNIQUE NONCLUSTERED INDEX [idxAS0002_PS_ColValAddrTicket] ON [dbo].[tblAS0002_PS]
- (
- [IdColumn] ASC,
- [IdValue] ASC,
- [IdAddress] ASC,
- [IdTicket] 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 [idxAS0002_PS_IdAddress] Script Date: 10.01.2020 12:55:32 ******/
- CREATE NONCLUSTERED INDEX [idxAS0002_PS_IdAddress] ON [dbo].[tblAS0002_PS]
- (
- [IdAddress] 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 [idxAS0002_Rights_AddressUser] Script Date: 10.01.2020 12:55:32 ******/
- CREATE UNIQUE NONCLUSTERED INDEX [idxAS0002_Rights_AddressUser] ON [dbo].[tblAS0002_Rights]
- (
- [IdAddress] ASC,
- [IdUser] 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
- ALTER TABLE [dbo].[tblAS0002] WITH CHECK ADD CONSTRAINT [FK_AS0002_IdParent] FOREIGN KEY([IdParent])
- REFERENCES [dbo].[tblAS0002] ([Id])
- GO
- ALTER TABLE [dbo].[tblAS0002] CHECK CONSTRAINT [FK_AS0002_IdParent]
- GO
- ALTER TABLE [dbo].[tblAS0002_EX0006] WITH CHECK ADD CONSTRAINT [FK_AS0002_EX0006_IdAddress] FOREIGN KEY([IdAddress])
- REFERENCES [dbo].[tblAS0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_EX0006] CHECK CONSTRAINT [FK_AS0002_EX0006_IdAddress]
- GO
- ALTER TABLE [dbo].[tblAS0002_EX0007] WITH CHECK ADD CONSTRAINT [FK_AS0002_EX0007_IdAddress] FOREIGN KEY([IdAddress])
- REFERENCES [dbo].[tblAS0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_EX0007] CHECK CONSTRAINT [FK_AS0002_EX0007_IdAddress]
- GO
- ALTER TABLE [dbo].[tblAS0002_EX0008] WITH CHECK ADD CONSTRAINT [FK_AS0002_EX0008_IdAddress] FOREIGN KEY([IdAddress])
- REFERENCES [dbo].[tblAS0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_EX0008] CHECK CONSTRAINT [FK_AS0002_EX0008_IdAddress]
- GO
- ALTER TABLE [dbo].[tblAS0002_History] WITH CHECK ADD CONSTRAINT [FK_AS0002_History_IdAddress] FOREIGN KEY([IdAddress])
- REFERENCES [dbo].[tblAS0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_History] CHECK CONSTRAINT [FK_AS0002_History_IdAddress]
- GO
- ALTER TABLE [dbo].[tblAS0002_History_Links] WITH CHECK ADD CONSTRAINT [FK_AS0002_History_Links_IdAddress] FOREIGN KEY([IdAddress])
- REFERENCES [dbo].[tblAS0002] ([Id])
- GO
- ALTER TABLE [dbo].[tblAS0002_History_Links] CHECK CONSTRAINT [FK_AS0002_History_Links_IdAddress]
- GO
- ALTER TABLE [dbo].[tblAS0002_History_Links] WITH CHECK ADD CONSTRAINT [FK_AS0002_History_Links_IdHistory] FOREIGN KEY([IdHistory])
- REFERENCES [dbo].[tblAS0002_History] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_History_Links] CHECK CONSTRAINT [FK_AS0002_History_Links_IdHistory]
- GO
- ALTER TABLE [dbo].[tblAS0002_PhoneIdx] WITH CHECK ADD FOREIGN KEY([Id])
- REFERENCES [dbo].[tblAS0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0002] WITH CHECK ADD CONSTRAINT [FK_AS0002_PJ0002_IdAddress] FOREIGN KEY([IdAddress])
- REFERENCES [dbo].[tblAS0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0002] CHECK CONSTRAINT [FK_AS0002_PJ0002_IdAddress]
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0002_PhoneIdx] WITH CHECK ADD FOREIGN KEY([Id])
- REFERENCES [dbo].[tblAS0002_PJ0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0004] WITH CHECK ADD CONSTRAINT [FK_AS0002_PJ0004_IdAddress] FOREIGN KEY([IdAddress])
- REFERENCES [dbo].[tblAS0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0004] CHECK CONSTRAINT [FK_AS0002_PJ0004_IdAddress]
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0004_PhoneIdx] WITH CHECK ADD FOREIGN KEY([Id])
- REFERENCES [dbo].[tblAS0002_PJ0004] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0006] WITH CHECK ADD CONSTRAINT [FK_AS0002_PJ0006_IdAddress] FOREIGN KEY([IdAddress])
- REFERENCES [dbo].[tblAS0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0006] CHECK CONSTRAINT [FK_AS0002_PJ0006_IdAddress]
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0006_PhoneIdx] WITH CHECK ADD FOREIGN KEY([Id])
- REFERENCES [dbo].[tblAS0002_PJ0006] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0008] WITH CHECK ADD CONSTRAINT [FK_AS0002_PJ0008_IdAddress] FOREIGN KEY([IdAddress])
- REFERENCES [dbo].[tblAS0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0008] CHECK CONSTRAINT [FK_AS0002_PJ0008_IdAddress]
- GO
- ALTER TABLE [dbo].[tblAS0002_PJ0008_PhoneIdx] WITH CHECK ADD FOREIGN KEY([Id])
- REFERENCES [dbo].[tblAS0002_PJ0008] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_PS] WITH CHECK ADD CONSTRAINT [FK_AS0002_PS_IdAddress] FOREIGN KEY([IdAddress])
- REFERENCES [dbo].[tblAS0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_PS] CHECK CONSTRAINT [FK_AS0002_PS_IdAddress]
- GO
- ALTER TABLE [dbo].[tblAS0002_Rights] WITH CHECK ADD CONSTRAINT [FK_AS0002_Rights_IdAddress] FOREIGN KEY([IdAddress])
- REFERENCES [dbo].[tblAS0002] ([Id])
- ON DELETE CASCADE
- GO
- ALTER TABLE [dbo].[tblAS0002_Rights] CHECK CONSTRAINT [FK_AS0002_Rights_IdAddress]
- GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement