
[dbo].[MilitaryAllocationHeader]
CREATE TABLE [dbo].[MilitaryAllocationHeader]
(
[MilitaryAllocationHeaderID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DateBasisFID] [int] NOT NULL,
[DefaultAgreement] [bit] NOT NULL CONSTRAINT [DF_MilitaryAllocationHeader_DefaultAgreement] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryAllocationHeader] ADD CONSTRAINT [CK_MilitaryAllocationHeader_DefaultAgreement] CHECK (((0)=[dbo].[MilitaryAllocationHeaderDefaultAgreement]([MilitaryAllocationHeaderID],[DefaultAgreement])))
GO
ALTER TABLE [dbo].[MilitaryAllocationHeader] ADD CONSTRAINT [PK_MilitaryAllocationHeader] PRIMARY KEY CLUSTERED ([MilitaryAllocationHeaderID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryAllocationHeader] ADD CONSTRAINT [FK_MilitaryAllocationHeader_DateBasis] FOREIGN KEY ([DateBasisFID]) REFERENCES [dbo].[DateBasis] ([DateBasisID])
GO
GRANT SELECT ON [dbo].[MilitaryAllocationHeader] TO [MssExec]
GRANT INSERT ON [dbo].[MilitaryAllocationHeader] TO [MssExec]
GRANT DELETE ON [dbo].[MilitaryAllocationHeader] TO [MssExec]
GRANT UPDATE ON [dbo].[MilitaryAllocationHeader] TO [MssExec]
GO