CREATE TABLE [dbo].[Buildings]
(
[BuildingID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CrossStreet] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ServiceEntrance] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SiteNote] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AddressLocationTypeFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Buildings] ADD CONSTRAINT [PK_Buildings] PRIMARY KEY CLUSTERED ([BuildingID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Buildings] ADD CONSTRAINT [FK_Buildings_AddressLocationType] FOREIGN KEY ([AddressLocationTypeFID]) REFERENCES [dbo].[AddressLocationType] ([AddressLocationTypeID])
GO
GRANT SELECT ON [dbo].[Buildings] TO [MssExec]
GRANT INSERT ON [dbo].[Buildings] TO [MssExec]
GRANT DELETE ON [dbo].[Buildings] TO [MssExec]
GRANT UPDATE ON [dbo].[Buildings] TO [MssExec]
GO