CREATE TABLE [dbo].[ServiceDetail]
(
[ServiceDetailID] [int] NOT NULL IDENTITY(1, 1),
[ServiceGroupFID] [int] NOT NULL,
[Description] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SortOrder] [int] NOT NULL CONSTRAINT [DF_ServiceDetail_SortOrder] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServiceDetail] ADD CONSTRAINT [PK_ServiceDetail] PRIMARY KEY NONCLUSTERED ([ServiceDetailID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServiceDetail] ADD CONSTRAINT [FK_ServiceDetail_ServiceGroup] FOREIGN KEY ([ServiceGroupFID]) REFERENCES [dbo].[ServiceGroup] ([ServiceGroupID]) ON DELETE CASCADE
GO
GRANT SELECT ON [dbo].[ServiceDetail] TO [MssExec]
GRANT INSERT ON [dbo].[ServiceDetail] TO [MssExec]
GRANT DELETE ON [dbo].[ServiceDetail] TO [MssExec]
GRANT UPDATE ON [dbo].[ServiceDetail] TO [MssExec]
GO