text: 
  
  
  
  CREATE TABLE [Class2] (
  
  	 [primaryKey] UNIQUEIDENTIFIER  NOT NULL,
  
  	 [Field21] VARCHAR(255)  NULL,
  
  	 [Field22] VARCHAR(255)  NULL,
  
  	 [CreateTime] DATETIME  NULL,
  
  	 [Creator] VARCHAR(255)  NULL,
  
  	 [EditTime] DATETIME  NULL,
  
  	 [Editor] VARCHAR(255)  NULL,
  
  	 [Class1] UNIQUEIDENTIFIER  NULL,
  
  	 [Class4] UNIQUEIDENTIFIER  NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [Class1] (
  
  	 [primaryKey] UNIQUEIDENTIFIER  NOT NULL,
  
  	 [Field11] VARCHAR(255)  NULL,
  
  	 [Field12] VARCHAR(255)  NULL,
  
  	 [CreateTime] DATETIME  NULL,
  
  	 [Creator] VARCHAR(255)  NULL,
  
  	 [EditTime] DATETIME  NULL,
  
  	 [Editor] VARCHAR(255)  NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [Class4] (
  
  	 [primaryKey] UNIQUEIDENTIFIER  NOT NULL,
  
  	 [Field41] VARCHAR(255)  NULL,
  
  	 [Field42] VARCHAR(255)  NULL,
  
  	 [CreateTime] DATETIME  NULL,
  
  	 [Creator] VARCHAR(255)  NULL,
  
  	 [EditTime] DATETIME  NULL,
  
  	 [Editor] VARCHAR(255)  NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [Class3] (
  
  	 [primaryKey] UNIQUEIDENTIFIER  NOT NULL,
  
  	 [Field31] VARCHAR(255)  NULL,
  
  	 [Field32] VARCHAR(255)  NULL,
  
  	 [CreateTime] DATETIME  NULL,
  
  	 [Creator] VARCHAR(255)  NULL,
  
  	 [EditTime] DATETIME  NULL,
  
  	 [Editor] VARCHAR(255)  NULL,
  
  	 [Class2] UNIQUEIDENTIFIER  NOT NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [Audit] (
  
  	 [primaryKey] UNIQUEIDENTIFIER  NOT NULL,
  
  	 [UserName] NVARCHAR(1024)  NULL,
  
  	 [UserLogin] NVARCHAR(1024)  NULL,
  
  	 [ObjectType] NVARCHAR(1024)  NULL,
  
  	 [ObjectPrimaryKey] NVARCHAR(38)  NULL,
  
  	 [OperationTime] DATETIME  NOT NULL,
  
  	 [OperationType] VARCHAR(255)  NOT NULL,
  
  	 [ExecutionStatus] VARCHAR(10)  NOT NULL,
  
  	 [Source] VARCHAR(255)  NULL,
  
  	 [SerializedFields] NVARCHAR(MAX)  NULL,
  
  	 [HeadAuditEntity] UNIQUEIDENTIFIER  NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [STORMNETLOCKDATA] (
  
  	 [LockKey] VARCHAR(300)  NOT NULL,
  
  	 [UserName] VARCHAR(300)  NOT NULL,
  
  	 [LockDate] DATETIME  NULL,
  
  	 PRIMARY KEY ([LockKey]))
  
  
  CREATE TABLE [STORMSETTINGS] (
  
  	 [primaryKey] uniqueidentifier  NOT NULL,
  
  	 [Module] varchar(1000)  NULL,
  
  	 [Name] varchar(255)  NULL,
  
  	 [Value] text  NULL,
  
  	 [User] varchar(255)  NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [STORMAdvLimit] (
  
  	 [primaryKey] uniqueidentifier  NOT NULL,
  
  	 [User] varchar(255)  NULL,
  
  	 [Published] bit  NULL,
  
  	 [Module] varchar(255)  NULL,
  
  	 [Name] varchar(255)  NULL,
  
  	 [Value] text  NULL,
  
  	 [HotKeyData] int  NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [STORMFILTERSETTING] (
  
  	 [primaryKey] uniqueidentifier  NOT NULL,
  
  	 [Name] varchar(255)  NOT NULL,
  
  	 [DataObjectView] varchar(255)  NOT NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [STORMWEBSEARCH] (
  
  	 [primaryKey] uniqueidentifier  NOT NULL,
  
  	 [Name] varchar(255)  NOT NULL,
  
  	 [Order] INT  NOT NULL,
  
  	 [PresentView] varchar(255)  NOT NULL,
  
  	 [DetailedView] varchar(255)  NOT NULL,
  
  	 [FilterSetting_m0] uniqueidentifier  NOT NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [STORMFILTERDETAIL] (
  
  	 [primaryKey] uniqueidentifier  NOT NULL,
  
  	 [Caption] varchar(255)  NOT NULL,
  
  	 [DataObjectView] varchar(255)  NOT NULL,
  
  	 [ConnectMasterProp] varchar(255)  NOT NULL,
  
  	 [OwnerConnectProp] varchar(255)  NULL,
  
  	 [FilterSetting_m0] uniqueidentifier  NOT NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [STORMFILTERLOOKUP] (
  
  	 [primaryKey] uniqueidentifier  NOT NULL,
  
  	 [DataObjectType] varchar(255)  NOT NULL,
  
  	 [Container] varchar(255)  NULL,
  
  	 [ContainerTag] varchar(255)  NULL,
  
  	 [FieldsToView] varchar(255)  NULL,
  
  	 [FilterSetting_m0] uniqueidentifier  NOT NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [UserSetting] (
  
  	 [primaryKey] uniqueidentifier  NOT NULL,
  
  	 [AppName] varchar(256)  NULL,
  
  	 [UserName] varchar(512)  NULL,
  
  	 [UserGuid] uniqueidentifier  NULL,
  
  	 [ModuleName] varchar(1024)  NULL,
  
  	 [ModuleGuid] uniqueidentifier  NULL,
  
  	 [SettName] varchar(256)  NULL,
  
  	 [SettGuid] uniqueidentifier  NULL,
  
  	 [SettLastAccessTime] DATETIME  NULL,
  
  	 [StrVal] varchar(256)  NULL,
  
  	 [TxtVal] varchar(max)  NULL,
  
  	 [IntVal] int  NULL,
  
  	 [BoolVal] bit  NULL,
  
  	 [GuidVal] uniqueidentifier  NULL,
  
  	 [DecimalVal] decimal(20,10)  NULL,
  
  	 [DateTimeVal] DATETIME  NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  CREATE TABLE [ApplicationLog] (
  
  	 [primaryKey] uniqueidentifier  NOT NULL,
  
  	 [Category] varchar(64)  NULL,
  
  	 [EventId] INT  NULL,
  
  	 [Priority] INT  NULL,
  
  	 [Severity] varchar(32)  NULL,
  
  	 [Title] varchar(256)  NULL,
  
  	 [Timestamp] DATETIME  NULL,
  
  	 [MachineName] varchar(32)  NULL,
  
  	 [AppDomainName] varchar(512)  NULL,
  
  	 [ProcessId] varchar(256)  NULL,
  
  	 [ProcessName] varchar(512)  NULL,
  
  	 [ThreadName] varchar(512)  NULL,
  
  	 [Win32ThreadId] varchar(128)  NULL,
  
  	 [Message] varchar(2500)  NULL,
  
  	 [FormattedMessage] varchar(max)  NULL,
  
  	 PRIMARY KEY ([primaryKey]))
  
  
  
  
   ALTER TABLE [Audit] ADD CONSTRAINT [Audit_FAudit_0] FOREIGN KEY ([HeadAuditEntity]) REFERENCES [Audit]
  CREATE INDEX Audit_IHeadAuditEntity on [Audit] ([HeadAuditEntity])
  
   ALTER TABLE [STORMWEBSEARCH] ADD CONSTRAINT [STORMWEBSEARCH_FSTORMFILTERSETTING_0] FOREIGN KEY ([FilterSetting_m0]) REFERENCES [STORMFILTERSETTING]
  
   ALTER TABLE [STORMFILTERDETAIL] ADD CONSTRAINT [STORMFILTERDETAIL_FSTORMFILTERSETTING_0] FOREIGN KEY ([FilterSetting_m0]) REFERENCES [STORMFILTERSETTING]
  
   ALTER TABLE [STORMFILTERLOOKUP] ADD CONSTRAINT [STORMFILTERLOOKUP_FSTORMFILTERSETTING_0] FOREIGN KEY ([FilterSetting_m0]) REFERENCES [STORMFILTERSETTING]
  
  