EnVisageOnline/Main-RMO/Database/Scripts/20150601/01_Create_User_Prefs_Tables...

23 lines
587 B
Transact-SQL

-- SA. Create User Preferences tables
USE [EnVisage]
GO
IF not EXISTS (SELECT * FROM sys.tables where name='UserPreferences')
begin
CREATE TABLE UserPreferences(
[Id] [uniqueidentifier] NOT NULL,
[UserId] [uniqueidentifier] NOT NULL,
[Url] [nvarchar](450) NOT NULL,
[Section] [nvarchar](100) NOT NULL,
[Data] [nvarchar](max) NULL,
CONSTRAINT [PK_UserPreferences] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
end
GO