CREATE TABLE [dbo].[MilitaryCarrier]
(
[MilitaryCarrierID] [int] NOT NULL IDENTITY(1, 1),
[Name] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Contact] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[EMail] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[FederalIDNumber] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DunsNumber] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SCACNumber] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[BranchFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryCarrier] ADD CONSTRAINT [PK_MilitaryCarrier] PRIMARY KEY CLUSTERED ([MilitaryCarrierID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_MilitaryCarrier_Name_SCACNumber] ON [dbo].[MilitaryCarrier] ([Name], [SCACNumber]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_MilitaryCarrier_SCACNumber_Name] ON [dbo].[MilitaryCarrier] ([SCACNumber], [Name]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryCarrier] ADD CONSTRAINT [FK_MilitaryCarrier_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
GRANT SELECT ON [dbo].[MilitaryCarrier] TO [MssExec]
GRANT INSERT ON [dbo].[MilitaryCarrier] TO [MssExec]
GRANT DELETE ON [dbo].[MilitaryCarrier] TO [MssExec]
GRANT UPDATE ON [dbo].[MilitaryCarrier] TO [MssExec]
GO