Tables [dbo].[ReductionTemplateRevenueGroupMap]
Properties
PropertyValue
HeapYes
Row Count (~)18
Created4:49:42 PM Tuesday, June 19, 2012
Last Modified11:13:41 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ReductionTemplateRevenueGroupMap: ReductionTemplateRevenueGroupMapIDReductionTemplateRevenueGroupMapIDint4
No
1 - 1
Foreign Keys FK_ReductionTemplateRevenueGroupMap_ReductionTemplateHeader: [dbo].[ReductionTemplateHeader].ReductionTemplateHeaderFIDIndexes IX_ReductionTemplateRevenueGroupMap_HeaderRevenueGroup: ReductionTemplateHeaderFID\RevenueGroupFIDReductionTemplateHeaderFIDint4
No
Foreign Keys FK_ReductionTemplateRevenueGroupMap_RevenueGroup: [dbo].[RevGroups].RevenueGroupFIDIndexes IX_ReductionTemplateRevenueGroupMap_HeaderRevenueGroup: ReductionTemplateHeaderFID\RevenueGroupFIDRevenueGroupFIDint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_ReductionTemplateRevenueGroupMap: ReductionTemplateRevenueGroupMapIDPK_ReductionTemplateRevenueGroupMapReductionTemplateRevenueGroupMapID
Yes
IX_ReductionTemplateRevenueGroupMap_HeaderRevenueGroupReductionTemplateHeaderFID, RevenueGroupFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_ReductionTemplateRevenueGroupMap_ReductionTemplateHeaderReductionTemplateHeaderFID->[dbo].[ReductionTemplateHeader].[ReductionTemplateID]
FK_ReductionTemplateRevenueGroupMap_RevenueGroupRevenueGroupFID->[dbo].[RevGroups].[RGPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ReductionTemplateRevenueGroupMap]
(
[ReductionTemplateRevenueGroupMapID] [int] NOT NULL IDENTITY(1, 1),
[ReductionTemplateHeaderFID] [int] NOT NULL,
[RevenueGroupFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReductionTemplateRevenueGroupMap] ADD CONSTRAINT [PK_ReductionTemplateRevenueGroupMap] PRIMARY KEY NONCLUSTERED  ([ReductionTemplateRevenueGroupMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReductionTemplateRevenueGroupMap] ADD CONSTRAINT [IX_ReductionTemplateRevenueGroupMap_HeaderRevenueGroup] UNIQUE NONCLUSTERED  ([ReductionTemplateHeaderFID], [RevenueGroupFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReductionTemplateRevenueGroupMap] ADD CONSTRAINT [FK_ReductionTemplateRevenueGroupMap_ReductionTemplateHeader] FOREIGN KEY ([ReductionTemplateHeaderFID]) REFERENCES [dbo].[ReductionTemplateHeader] ([ReductionTemplateID])
GO
ALTER TABLE [dbo].[ReductionTemplateRevenueGroupMap] ADD CONSTRAINT [FK_ReductionTemplateRevenueGroupMap_RevenueGroup] FOREIGN KEY ([RevenueGroupFID]) REFERENCES [dbo].[RevGroups] ([RGPriKey])
GO
GRANT SELECT ON  [dbo].[ReductionTemplateRevenueGroupMap] TO [MssExec]
GRANT INSERT ON  [dbo].[ReductionTemplateRevenueGroupMap] TO [MssExec]
GRANT DELETE ON  [dbo].[ReductionTemplateRevenueGroupMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[ReductionTemplateRevenueGroupMap] TO [MssExec]
GO
Uses