[dbo].[ThirdPartyApplication]
CREATE TABLE [dbo].[ThirdPartyApplication]
(
[ThirdPartyApplicationId] [int] NOT NULL IDENTITY(1, 1),
[MenuName] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Url] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AuthorizationUrl] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ClientId] [varchar] (1000) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ClientSecret] [varchar] (1000) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[XmlSystemDataTypeMapFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ThirdPartyApplication] ADD CONSTRAINT [PK_ThirdPartyApplication] PRIMARY KEY CLUSTERED ([ThirdPartyApplicationId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ThirdPartyApplication] ADD CONSTRAINT [FK_ThirdPartyApplication_XmlSystemDataTypeMap] FOREIGN KEY ([XmlSystemDataTypeMapFID]) REFERENCES [dbo].[XmlSystemDataTypeMap] ([XmlSystemDataTypeMapID])
GO
GRANT SELECT ON [dbo].[ThirdPartyApplication] TO [MssExec]
GRANT INSERT ON [dbo].[ThirdPartyApplication] TO [MssExec]
GRANT DELETE ON [dbo].[ThirdPartyApplication] TO [MssExec]
GRANT UPDATE ON [dbo].[ThirdPartyApplication] TO [MssExec]
GO