CREATE TABLE [dbo].[Stores]
(
[StoreID] [int] NOT NULL IDENTITY(1, 1),
[StoreName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[StoreNo] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[StoreLocation] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[StoreContact] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[RegManagerName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DockmanagerName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[StoreManagerName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[VisualManagerName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Elevator] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Escalator] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[UnionDriver] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[UnionLabor] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[UnionName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DockRestrictions] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Inactive] [smallint] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Stores] ADD CONSTRAINT [PK_Stores] PRIMARY KEY CLUSTERED ([StoreID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[Stores] TO [MssExec]
GRANT INSERT ON [dbo].[Stores] TO [MssExec]
GRANT DELETE ON [dbo].[Stores] TO [MssExec]
GRANT UPDATE ON [dbo].[Stores] TO [MssExec]
GO