CREATE TABLE [dbo].[AuthorityTypes]
(
[AuthPriKey] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[GLNumber] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[InterCompany] [bit] NULL CONSTRAINT [DF_AuthorityTypes_InterCompany] DEFAULT (0)
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AuthorityTypes] ADD CONSTRAINT [PK_AUTHORITYTYPES] PRIMARY KEY CLUSTERED ([AuthPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AuthorityTypes] ADD CONSTRAINT [IX_AuthorityTypes_Description] UNIQUE NONCLUSTERED ([Description]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[AuthorityTypes] TO [MssExec]
GRANT INSERT ON [dbo].[AuthorityTypes] TO [MssExec]
GRANT DELETE ON [dbo].[AuthorityTypes] TO [MssExec]
GRANT UPDATE ON [dbo].[AuthorityTypes] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Set to 1 if inter-company is active.', 'SCHEMA', N'dbo', 'TABLE', N'AuthorityTypes', 'COLUMN', N'InterCompany'
GO