Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ClientApp.BLL.Migrations
- {
- using System;
- using System.Data.Entity.Migrations;
- using System.Linq;
- using Bnsights.CoreLib.Model;
- using ClientApp.BLL.Model;
- using Bnsights.CoreLib.Migrations;
- using System.Collections.Generic;
- public partial class InitialCreate : Bnsights.CoreLib.Migrations.CustomMigration<ClientAppContext>
- {
- public override void Up()
- {
- CreateTable(
- "bbsf._BMigrationHistory",
- c => new
- {
- ID = c.Int(nullable: false),
- BBSF = c.String(),
- Client = c.String(),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.Achievement",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- BadgeID = c.Int(nullable: false),
- RewardTypeID = c.Int(nullable: false),
- RequiredAmount = c.Int(nullable: false),
- RewardingPoints = c.Int(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Badge", t => t.BadgeID)
- .ForeignKey("bbsf.LookupItem", t => t.RewardTypeID)
- .Index(t => t.BadgeID)
- .Index(t => t.RewardTypeID);
- CreateTable(
- "dbo.Badge",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- ImageID = c.Guid(nullable: false),
- Visible = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "bbsf.LookupItem",
- c => new
- {
- ID = c.Int(nullable: false),
- NameEN = c.String(nullable: false, maxLength: 100),
- NameAR = c.String(nullable: false, maxLength: 100),
- Manageable = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Value = c.String(maxLength: 500),
- SysName = c.String(nullable: false, maxLength: 100),
- LookupID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Discriminator = c.String(nullable: false, maxLength: 128),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.Lookup", t => t.LookupID)
- .Index(t => t.SysName, unique: true)
- .Index(t => t.LookupID);
- CreateTable(
- "dbo.IdeaFieldValue_Relation",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- IdeaFieldValueID = c.Int(nullable: false),
- ChallengeID = c.Int(),
- GoalID = c.Int(),
- AreaOfFocusID = c.Int(),
- InnvoationLabID = c.Int(),
- LookupItemID = c.Int(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.AreaOfFocus", t => t.AreaOfFocusID)
- .ForeignKey("dbo.Challenge", t => t.ChallengeID)
- .ForeignKey("dbo.Goal", t => t.GoalID)
- .ForeignKey("dbo.IdeaFieldValue", t => t.IdeaFieldValueID)
- .ForeignKey("dbo.InnovationLab", t => t.InnvoationLabID)
- .ForeignKey("bbsf.LookupItem", t => t.LookupItemID)
- .Index(t => t.IdeaFieldValueID)
- .Index(t => t.ChallengeID)
- .Index(t => t.GoalID)
- .Index(t => t.AreaOfFocusID)
- .Index(t => t.InnvoationLabID)
- .Index(t => t.LookupItemID);
- CreateTable(
- "dbo.AreaOfFocus",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- ImageID = c.Guid(nullable: false),
- TypeID = c.Int(nullable: false),
- Visible = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.TypeID)
- .Index(t => t.TypeID);
- CreateTable(
- "dbo.MindMap",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- JsonString = c.String(),
- ProjectID = c.Int(),
- IdeaID = c.Int(),
- GoalID = c.Int(),
- ChallengeID = c.Int(),
- FocuseID = c.Int(),
- LabID = c.Int(),
- UserID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.AreaOfFocus", t => t.FocuseID)
- .ForeignKey("dbo.Challenge", t => t.ChallengeID)
- .ForeignKey("dbo.Goal", t => t.GoalID)
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .ForeignKey("dbo.InnovationLab", t => t.LabID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .ForeignKey("dbo.Project", t => t.ProjectID)
- .Index(t => t.ProjectID)
- .Index(t => t.IdeaID)
- .Index(t => t.GoalID)
- .Index(t => t.ChallengeID)
- .Index(t => t.FocuseID)
- .Index(t => t.LabID)
- .Index(t => t.UserID);
- CreateTable(
- "dbo.Challenge",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- StartDate = c.DateTime(nullable: false),
- EndDate = c.DateTime(nullable: false),
- Visible = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- FileCorrelationID = c.Guid(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- ViewsCount = c.Int(nullable: false),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.Goal",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- Visible = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.Idea",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- ViewsCount = c.Int(nullable: false),
- OwnerID = c.Int(nullable: false),
- StatusItemID = c.Int(nullable: false),
- WFInstance = c.Int(),
- EvaluationCriteriaID = c.Int(),
- IsDeleted = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.EvaluationCriteria", t => t.EvaluationCriteriaID)
- .ForeignKey("bbsf.LookupItem", t => t.StatusItemID)
- .ForeignKey("bbsf.User", t => t.OwnerID)
- .Index(t => t.OwnerID)
- .Index(t => t.StatusItemID)
- .Index(t => t.EvaluationCriteriaID);
- CreateTable(
- "dbo.IdeaComment",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- IdeaID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- ParentCommentID = c.Int(),
- Value = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .ForeignKey("dbo.IdeaComment", t => t.ParentCommentID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.IdeaID)
- .Index(t => t.UserID)
- .Index(t => t.ParentCommentID);
- CreateTable(
- "dbo.IdeaCommentReport",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- ReportingComment = c.String(),
- IsDeleted = c.Boolean(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- IdeaCommentID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.IdeaComment", t => t.IdeaCommentID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.IdeaCommentID)
- .Index(t => t.UserID);
- CreateTable(
- "bbsf.User",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- OrganizationID = c.Int(nullable: false),
- Username = c.String(nullable: false, maxLength: 256, unicode: false),
- SamAccount = c.String(maxLength: 256, unicode: false),
- LanguageKey = c.String(maxLength: 2, unicode: false),
- OriginalImageFileID = c.Int(),
- LargeImageFileID = c.Int(),
- SmallImageFileID = c.Int(),
- PermissionSID = c.String(maxLength: 2000, unicode: false),
- PermissionSetSID = c.String(maxLength: 2000, unicode: false),
- NameEN = c.String(maxLength: 100),
- NameAR = c.String(maxLength: 100),
- TitleEN = c.String(maxLength: 100),
- TitleAR = c.String(maxLength: 100),
- GenderItemID = c.Int(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- RowVersion = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),
- IsOnline = c.Boolean(nullable: false),
- License = c.Binary(),
- ChatRoom_ID = c.Int(),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.File", t => t.LargeImageFileID)
- .ForeignKey("bbsf.Organization", t => t.OrganizationID)
- .ForeignKey("bbsf.File", t => t.OriginalImageFileID)
- .ForeignKey("bbsf.ChatRoom", t => t.ChatRoom_ID)
- .ForeignKey("bbsf.File", t => t.SmallImageFileID)
- .Index(t => t.OrganizationID)
- .Index(t => t.Username, unique: true)
- .Index(t => t.OriginalImageFileID)
- .Index(t => t.LargeImageFileID)
- .Index(t => t.SmallImageFileID)
- .Index(t => t.ChatRoom_ID);
- CreateTable(
- "bbsf.UserConnection",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- UserID = c.Int(nullable: false),
- ConnectionID = c.String(),
- Agent = c.String(),
- IPAddress = c.String(),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.UserID);
- CreateTable(
- "bbsf.File",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- ID_GUID = c.Guid(nullable: false),
- CorrelationID = c.Guid(),
- Name = c.String(nullable: false, maxLength: 150),
- ExtraParams = c.String(maxLength: 500),
- MimeType = c.String(nullable: false, maxLength: 127),
- ProviderName = c.String(nullable: false, maxLength: 100),
- SizeMB = c.Decimal(nullable: false, precision: 6, scale: 3),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .Index(t => t.ID_GUID, unique: true);
- CreateTable(
- "bbsf.Organization",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 100),
- NameAR = c.String(nullable: false, maxLength: 100),
- LogoFileID = c.Int(),
- DefaultLanguage = c.String(nullable: false, maxLength: 2),
- DefaultTimeZone = c.String(nullable: false, maxLength: 50),
- License = c.Binary(),
- DatabaseConnectionString = c.String(maxLength: 1024),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- RowVersion = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "bbsf.Permission",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(maxLength: 100),
- NameAR = c.String(maxLength: 100),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- SysName = c.String(nullable: false, maxLength: 100),
- RowVersion = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),
- OrganizationID = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.Organization", t => t.OrganizationID)
- .Index(t => t.SysName, unique: true)
- .Index(t => t.OrganizationID);
- CreateTable(
- "bbsf.PermissionSet",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(maxLength: 100),
- NameAR = c.String(maxLength: 100),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- ActiveDirectoryGroup = c.String(maxLength: 64, unicode: false),
- RowVersion = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),
- SysName = c.String(nullable: false, maxLength: 100),
- OrganizationID = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.Organization", t => t.OrganizationID)
- .Index(t => t.SysName, unique: true)
- .Index(t => t.OrganizationID);
- CreateTable(
- "bbsf.Provider",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- ProviderTypeItemID = c.Int(nullable: false),
- Name = c.String(maxLength: 100),
- Description = c.String(maxLength: 250),
- TypeFullName = c.String(nullable: false, maxLength: 256),
- IsDefault = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- RowVersion = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),
- OrganizationID = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.ProviderTypeItemID)
- .ForeignKey("bbsf.Organization", t => t.OrganizationID)
- .Index(t => t.ProviderTypeItemID)
- .Index(t => t.Name, unique: true)
- .Index(t => t.OrganizationID);
- CreateTable(
- "bbsf.Lookup",
- c => new
- {
- ID = c.Int(nullable: false),
- NameEN = c.String(nullable: false, maxLength: 100),
- NameAR = c.String(nullable: false, maxLength: 100),
- DescriptionEN = c.String(maxLength: 250),
- DescriptionAR = c.String(maxLength: 250),
- Manageable = c.Boolean(nullable: false),
- LookupGroupID = c.Int(),
- SysName = c.String(nullable: false, maxLength: 100),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupGroup", t => t.LookupGroupID)
- .Index(t => t.LookupGroupID)
- .Index(t => t.SysName, unique: true);
- CreateTable(
- "bbsf.LookupGroup",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 100),
- NameAR = c.String(nullable: false, maxLength: 100),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "bbsf.Template",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- CategoryItemID = c.Int(),
- NameEN = c.String(maxLength: 100),
- NameAR = c.String(maxLength: 100),
- DescriptionEN = c.String(maxLength: 250),
- DescriptionAR = c.String(maxLength: 250),
- IsEmail = c.Boolean(nullable: false),
- IsSms = c.Boolean(nullable: false),
- EnableIntensiveLogging = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- SysName = c.String(nullable: false, maxLength: 100),
- RowVersion = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),
- OrganizationID = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.CategoryItemID)
- .ForeignKey("bbsf.Organization", t => t.OrganizationID)
- .Index(t => t.CategoryItemID)
- .Index(t => t.SysName, unique: true)
- .Index(t => t.OrganizationID);
- CreateTable(
- "bbsf.TemplateInfo",
- c => new
- {
- ID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- EmailSubjectEN = c.String(maxLength: 70),
- EmailSubjectAR = c.String(maxLength: 70),
- EmailHtmlBodyTagAttributesEN = c.String(maxLength: 100),
- EmailHtmlBodyTagAttributesAR = c.String(maxLength: 100),
- EmailBodyEN = c.String(),
- EmailBodyAR = c.String(),
- LanguageModeItemID = c.Int(nullable: false),
- SmsEN = c.String(),
- SmsAR = c.String(),
- RowVersion = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),
- TemplateID = c.Int(nullable: false),
- EmailHeaderAndFooterTemplateID = c.Int(),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.EmailHeaderAndFooterTemplate", t => t.EmailHeaderAndFooterTemplateID)
- .ForeignKey("bbsf.LookupItem", t => t.LanguageModeItemID)
- .ForeignKey("bbsf.Template", t => t.TemplateID)
- .Index(t => t.LanguageModeItemID)
- .Index(t => t.TemplateID)
- .Index(t => t.EmailHeaderAndFooterTemplateID);
- CreateTable(
- "bbsf.EmailHeaderAndFooterTemplate",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 100),
- NameAR = c.String(nullable: false, maxLength: 100),
- HeaderEN = c.String(),
- HeaderAR = c.String(),
- FooterEN = c.String(),
- FooterAR = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- RowVersion = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "bbsf.ProviderAttribute",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- ProviderId = c.Int(nullable: false),
- Name = c.String(nullable: false, maxLength: 100),
- IsEncrypted = c.Boolean(nullable: false),
- Value = c.String(maxLength: 100),
- ValueEncrypted = c.Binary(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- RowVersion = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.Provider", t => t.ProviderId)
- .Index(t => t.ProviderId);
- CreateTable(
- "bbsf.ChatMessage",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- MessageText = c.String(nullable: false, maxLength: 1000),
- RoomID = c.Int(nullable: false),
- TypeID = c.Int(nullable: false),
- MessageTypeItemID = c.Int(nullable: false),
- OwnerID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.MessageTypeItemID)
- .ForeignKey("bbsf.User", t => t.OwnerID)
- .ForeignKey("bbsf.ChatRoom", t => t.RoomID)
- .Index(t => t.RoomID)
- .Index(t => t.MessageTypeItemID)
- .Index(t => t.OwnerID);
- CreateTable(
- "bbsf.ChatMessageAttachment",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- AttachmentTypeItemID = c.Int(nullable: false),
- MessageID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- ChatMessage_ID = c.Int(),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.AttachmentTypeItemID)
- .ForeignKey("bbsf.ChatMessage", t => t.ChatMessage_ID)
- .Index(t => t.AttachmentTypeItemID)
- .Index(t => t.ChatMessage_ID);
- CreateTable(
- "bbsf.ChatRoom",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- Title = c.String(nullable: false, maxLength: 255),
- OwnerID = c.Int(nullable: false),
- RoomTypeItemID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.RoomTypeItemID)
- .Index(t => t.RoomTypeItemID);
- CreateTable(
- "bbsf.ChatUnreadMessage",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- RoomID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- MessagesCount = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.ChatRoom", t => t.RoomID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.RoomID)
- .Index(t => t.UserID);
- CreateTable(
- "bbsf.UserInfo",
- c => new
- {
- ID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- Mobile = c.String(maxLength: 15, unicode: false),
- Email = c.String(nullable: false, maxLength: 256, unicode: false),
- Password = c.String(nullable: false, maxLength: 75, unicode: false),
- Token = c.String(nullable: false, maxLength: 25),
- Token_IsCompleted = c.Boolean(nullable: false),
- Token_CanExpire = c.Boolean(nullable: false),
- IsActive = c.Boolean(nullable: false),
- CanLogin = c.Boolean(nullable: false),
- IsLicensed = c.Boolean(nullable: false),
- FailedLoginCount = c.Short(nullable: false),
- FailedLoginAttempt = c.DateTime(),
- LastLogin = c.DateTime(),
- LastPasswordChangeDate = c.DateTime(),
- ActivationDate = c.DateTime(),
- DeactivationDate = c.DateTime(),
- RowVersion = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.UserID)
- .Index(t => t.Token, unique: true);
- CreateTable(
- "dbo.IdeaInteraction",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- IdeaID = c.Int(nullable: false),
- InteractionTypeItemID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- CommentID = c.Int(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.IdeaComment", t => t.CommentID)
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .ForeignKey("bbsf.LookupItem", t => t.InteractionTypeItemID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.IdeaID)
- .Index(t => t.InteractionTypeItemID)
- .Index(t => t.UserID)
- .Index(t => t.CommentID);
- CreateTable(
- "dbo.EvaluationCriteria",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- IsActive = c.Boolean(nullable: false),
- Visible = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.Criterion",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(nullable: false, maxLength: 255),
- Weight = c.Int(nullable: false),
- EvaluationCriteriaID = c.Int(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.EvaluationCriteria", t => t.EvaluationCriteriaID)
- .Index(t => t.EvaluationCriteriaID);
- CreateTable(
- "dbo.Idea_CriterionScore",
- c => new
- {
- IdeaID = c.Int(nullable: false),
- CriterionID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- Score = c.Decimal(nullable: false, precision: 18, scale: 2),
- })
- .PrimaryKey(t => new { t.IdeaID, t.CriterionID, t.UserID })
- .ForeignKey("dbo.Criterion", t => t.CriterionID)
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.IdeaID)
- .Index(t => t.CriterionID)
- .Index(t => t.UserID);
- CreateTable(
- "dbo.EvaluationPanel",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- IsActive = c.Boolean(nullable: false),
- Visible = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- EvaluationCriteriaID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.EvaluationCriteria", t => t.EvaluationCriteriaID)
- .Index(t => t.EvaluationCriteriaID);
- CreateTable(
- "dbo.EvaluationPanel_User",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- UserID = c.Int(nullable: false),
- EvaluationPanelID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.EvaluationPanel", t => t.EvaluationPanelID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.UserID)
- .Index(t => t.EvaluationPanelID);
- CreateTable(
- "dbo.Idea_Contributor",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- IdeaID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- ContributorTypeItemID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.ContributorTypeItemID)
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.IdeaID)
- .Index(t => t.UserID)
- .Index(t => t.ContributorTypeItemID);
- CreateTable(
- "dbo.IdeaFieldValue",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- IdeaID = c.Int(),
- IdeaFieldID = c.Int(nullable: false),
- Text = c.String(),
- DateTime = c.DateTime(),
- Longitude = c.String(maxLength: 100),
- Latitude = c.String(maxLength: 100),
- SingleSelectID = c.Int(),
- Boolean = c.Boolean(),
- FileOrImageID = c.Int(),
- FileCorrelationID = c.Guid(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.File", t => t.FileOrImageID)
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .ForeignKey("dbo.IdeaField", t => t.IdeaFieldID)
- .Index(t => t.IdeaID)
- .Index(t => t.IdeaFieldID)
- .Index(t => t.FileOrImageID);
- CreateTable(
- "dbo.IdeaField",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- Name = c.String(nullable: false, maxLength: 255),
- DataTypeItemID = c.Int(),
- WidthTypeItemID = c.Int(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- IsRequiredOnCreate = c.Boolean(nullable: false),
- IsRequiredOnEdit = c.Boolean(nullable: false),
- IsShowInCreate = c.Boolean(nullable: false),
- IsShowInDisplay = c.Boolean(nullable: false),
- IsDeleted = c.Boolean(nullable: false),
- IsShowToPublic = c.Boolean(nullable: false),
- LabelResourceKey = c.String(nullable: false, maxLength: 1024),
- IsHidden = c.Boolean(nullable: false),
- CanDelete = c.Boolean(nullable: false),
- MinLength = c.Int(),
- MaxLength = c.Int(),
- Rows = c.Int(),
- LangValidationItemID = c.Int(),
- HasSearch = c.Boolean(),
- ChooseMultipleData = c.Boolean(),
- AllowedExtensions = c.String(),
- MultiSelectLookupID = c.Int(),
- MaxFileCount = c.Int(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.DataTypeItemID)
- .ForeignKey("bbsf.LookupItem", t => t.LangValidationItemID)
- .ForeignKey("bbsf.Lookup", t => t.MultiSelectLookupID)
- .ForeignKey("bbsf.LookupItem", t => t.WidthTypeItemID)
- .Index(t => t.DataTypeItemID)
- .Index(t => t.WidthTypeItemID)
- .Index(t => t.LangValidationItemID)
- .Index(t => t.MultiSelectLookupID);
- CreateTable(
- "dbo.IdeaVersion_Correlation",
- c => new
- {
- IdeaID = c.Int(nullable: false),
- IdeaVersionID = c.Int(nullable: false),
- FileCorrelationID = c.Guid(nullable: false),
- })
- .PrimaryKey(t => new { t.IdeaID, t.IdeaVersionID })
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .ForeignKey("dbo.IdeaVersion", t => t.IdeaVersionID)
- .Index(t => t.IdeaID)
- .Index(t => t.IdeaVersionID);
- CreateTable(
- "dbo.IdeaVersion",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- IdeaID = c.Int(nullable: false),
- SerializedVersion = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .Index(t => t.IdeaID);
- CreateTable(
- "dbo.IdeaVersion_File",
- c => new
- {
- IdeaID = c.Int(nullable: false),
- IdeaVersionID = c.Int(nullable: false),
- FileID = c.Int(nullable: false),
- })
- .PrimaryKey(t => new { t.IdeaID, t.IdeaVersionID, t.FileID })
- .ForeignKey("bbsf.File", t => t.FileID)
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .ForeignKey("dbo.IdeaVersion", t => t.IdeaVersionID)
- .Index(t => t.IdeaID)
- .Index(t => t.IdeaVersionID)
- .Index(t => t.FileID);
- CreateTable(
- "dbo.Idea_RelatedIdea",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- IdeaID = c.Int(nullable: false),
- RelatedIdeaID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Idea_ID = c.Int(),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .ForeignKey("dbo.Idea", t => t.RelatedIdeaID)
- .ForeignKey("dbo.Idea", t => t.Idea_ID)
- .Index(t => t.IdeaID)
- .Index(t => t.RelatedIdeaID)
- .Index(t => t.Idea_ID);
- CreateTable(
- "dbo.Tag",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.Title",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- GoalID = c.Int(nullable: false),
- AreaOfFocusID = c.Int(nullable: false),
- ChallengeID = c.Int(nullable: false),
- ImageFileID = c.Guid(nullable: false),
- ImpactEN = c.String(nullable: false, maxLength: 255),
- ImpactAR = c.String(nullable: false, maxLength: 255),
- ResourcesEN = c.String(nullable: false, maxLength: 255),
- ResourcesAR = c.String(nullable: false, maxLength: 255),
- RisksAR = c.String(nullable: false, maxLength: 255),
- RisksEN = c.String(nullable: false, maxLength: 255),
- SourceEN = c.String(nullable: false, maxLength: 255),
- SourceAR = c.String(nullable: false, maxLength: 255),
- ImplementationPlanFileCorrelID = c.Guid(nullable: false),
- AttachmentCorrelID = c.Guid(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.AreaOfFocus", t => t.AreaOfFocusID)
- .ForeignKey("dbo.Challenge", t => t.ChallengeID)
- .ForeignKey("dbo.Goal", t => t.GoalID)
- .Index(t => t.GoalID)
- .Index(t => t.AreaOfFocusID)
- .Index(t => t.ChallengeID);
- CreateTable(
- "dbo.InnovationLab",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- StartDate = c.DateTime(nullable: false),
- EndDate = c.DateTime(nullable: false),
- Visible = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- OwnerID = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.User", t => t.OwnerID)
- .Index(t => t.OwnerID);
- CreateTable(
- "dbo.Agenda",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- InnovationLabID = c.Int(nullable: false),
- Date = c.DateTime(nullable: false),
- StartTime = c.DateTime(nullable: false),
- EndTime = c.DateTime(nullable: false),
- LocationEN = c.String(nullable: false, maxLength: 500),
- LocationAR = c.String(nullable: false, maxLength: 500),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.InnovationLab", t => t.InnovationLabID)
- .Index(t => t.InnovationLabID);
- CreateTable(
- "dbo.Team",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- InnovationLabID = c.Int(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.InnovationLab", t => t.InnovationLabID)
- .Index(t => t.InnovationLabID);
- CreateTable(
- "dbo.Team_User",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- UserID = c.Int(nullable: false),
- TeamID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Team", t => t.TeamID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.UserID)
- .Index(t => t.TeamID);
- CreateTable(
- "dbo.Project",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- StartDate = c.DateTime(nullable: false),
- EndDate = c.DateTime(),
- ManagerID = c.Int(nullable: false),
- IdeaID = c.Int(),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .ForeignKey("bbsf.User", t => t.ManagerID)
- .Index(t => t.ManagerID)
- .Index(t => t.IdeaID);
- CreateTable(
- "dbo.Deliverable",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- IsDeleted = c.Boolean(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- ProjectID = c.Int(nullable: false),
- FileID = c.Int(nullable: false),
- FileCorrelationID = c.Guid(),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.File", t => t.FileID)
- .ForeignKey("dbo.Project", t => t.ProjectID)
- .Index(t => t.ProjectID)
- .Index(t => t.FileID);
- CreateTable(
- "dbo.Folder",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- Name = c.String(nullable: false, maxLength: 256),
- ParentFolderID = c.Int(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- CorrelationID = c.Guid(),
- ProjectID = c.Int(),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Folder", t => t.ParentFolderID)
- .ForeignKey("dbo.Project", t => t.ProjectID)
- .Index(t => t.ParentFolderID)
- .Index(t => t.ProjectID);
- CreateTable(
- "dbo.Issue",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- ActionEN = c.String(),
- ActionAR = c.String(),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- IsDeleted = c.Boolean(nullable: false),
- ProjectID = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Project", t => t.ProjectID)
- .Index(t => t.ProjectID);
- CreateTable(
- "dbo.Project_Member",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- ProjectID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Project", t => t.ProjectID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.ProjectID)
- .Index(t => t.UserID);
- CreateTable(
- "dbo.Milestone",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- IsDeleted = c.Boolean(nullable: false),
- Weight = c.Int(),
- ProjectID = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Project", t => t.ProjectID)
- .Index(t => t.ProjectID);
- CreateTable(
- "dbo.ProjectTask",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- IsDeleted = c.Boolean(nullable: false),
- StartDate = c.DateTime(nullable: false),
- EndDate = c.DateTime(),
- ParentTaskID = c.Int(),
- MileStoneID = c.Int(),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Milestone", t => t.MileStoneID)
- .ForeignKey("dbo.ProjectTask", t => t.ParentTaskID)
- .Index(t => t.ParentTaskID)
- .Index(t => t.MileStoneID);
- CreateTable(
- "dbo.Risk",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- ActionEN = c.String(),
- ActionAR = c.String(),
- IdentificationDate = c.DateTime(nullable: false),
- IsDeleted = c.Boolean(nullable: false),
- ProjectID = c.Int(nullable: false),
- StatusItemID = c.Int(nullable: false),
- ImpactItemID = c.Int(nullable: false),
- ProbabilityItemID = c.Int(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.ImpactItemID)
- .ForeignKey("bbsf.LookupItem", t => t.ProbabilityItemID)
- .ForeignKey("dbo.Project", t => t.ProjectID)
- .ForeignKey("bbsf.LookupItem", t => t.StatusItemID)
- .Index(t => t.ProjectID)
- .Index(t => t.StatusItemID)
- .Index(t => t.ImpactItemID)
- .Index(t => t.ProbabilityItemID);
- CreateTable(
- "dbo.Activity",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IncludeFiles = c.Boolean(nullable: false),
- CreateEvent = c.Boolean(nullable: false),
- FilesCorrelationID = c.Guid(),
- StageID = c.Int(),
- StatusItemID = c.Int(nullable: false),
- ActivityTemplateID = c.Int(),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.ActivityTemplate", t => t.ActivityTemplateID)
- .ForeignKey("dbo.Stage", t => t.StageID)
- .ForeignKey("bbsf.LookupItem", t => t.StatusItemID)
- .Index(t => t.StageID)
- .Index(t => t.StatusItemID)
- .Index(t => t.ActivityTemplateID);
- CreateTable(
- "dbo.ActivityTemplate",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.ActivityComment",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- Comment = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- ActivityID = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Activity", t => t.ActivityID)
- .Index(t => t.ActivityID);
- CreateTable(
- "dbo.Stage",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- Number = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- AnalysisID = c.Int(),
- PlaningID = c.Int(),
- MonitoringID = c.Int(),
- StageTemplateID = c.Int(),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.IMOAnalysis", t => t.AnalysisID)
- .ForeignKey("dbo.IMOMonitoring", t => t.MonitoringID)
- .ForeignKey("dbo.IMOPlanning", t => t.PlaningID)
- .ForeignKey("dbo.StageTemplate", t => t.StageTemplateID)
- .Index(t => t.AnalysisID)
- .Index(t => t.PlaningID)
- .Index(t => t.MonitoringID)
- .Index(t => t.StageTemplateID);
- CreateTable(
- "dbo.IMOAnalysis",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- Number = c.Int(nullable: false),
- Active = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.IMOMonitoring",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Number = c.Int(nullable: false),
- Active = c.Boolean(nullable: false),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.IMOPlanning",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Number = c.Int(nullable: false),
- Active = c.Boolean(nullable: false),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.StageTemplate",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "bbsf.WorkflowActivity",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- SysName = c.String(nullable: false, maxLength: 100),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- WorkflowVersionID = c.Int(nullable: false),
- ActivityTypeItemID = c.Int(nullable: false),
- TaskCorrelationTypeItemID = c.Int(),
- TemplateID = c.Int(),
- StopOnError = c.Boolean(nullable: false),
- TaskNameEN = c.String(maxLength: 255),
- TaskNameAR = c.String(maxLength: 255),
- TaskDescriptionEN = c.String(maxLength: 255),
- TaskDescriptionAR = c.String(maxLength: 255),
- TaskURL = c.String(maxLength: 2083),
- CanCompleteFromTME = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.ActivityTypeItemID)
- .ForeignKey("bbsf.Template", t => t.TemplateID)
- .ForeignKey("bbsf.WorkflowVersion", t => t.WorkflowVersionID)
- .Index(t => t.SysName)
- .Index(t => t.WorkflowVersionID)
- .Index(t => t.ActivityTypeItemID)
- .Index(t => t.TemplateID);
- CreateTable(
- "bbsf.WorkflowActivityVariable",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- ActivityID = c.Int(nullable: false),
- VariableID = c.Int(nullable: false),
- IsMandatory = c.Boolean(nullable: false),
- IsEnabled = c.Boolean(nullable: false),
- IsVisible = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.WorkflowActivity", t => t.ActivityID)
- .ForeignKey("bbsf.WorkflowVariable", t => t.VariableID)
- .Index(t => t.ActivityID)
- .Index(t => t.VariableID);
- CreateTable(
- "bbsf.WorkflowLogVariable",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- LogID = c.Int(nullable: false),
- ActivityVariableID = c.Int(nullable: false),
- Value_Text = c.String(maxLength: 2500),
- Value_Number = c.Double(),
- Value_Boolean = c.Boolean(),
- Value_Date = c.DateTime(),
- Value_Guid = c.Guid(),
- Value_VariableLookupID = c.Long(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.WorkflowActivityVariable", t => t.ActivityVariableID)
- .ForeignKey("bbsf.WorkflowLog", t => t.LogID)
- .Index(t => t.LogID)
- .Index(t => t.ActivityVariableID);
- CreateTable(
- "bbsf.WorkflowLog",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- InstanceID = c.Int(nullable: false),
- WorkflowVersionID = c.Int(nullable: false),
- ActivityID = c.Int(nullable: false),
- ActivityOutcomeID = c.Int(),
- CompletedByUserID = c.Int(nullable: false),
- CompletedOn = c.DateTime(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.WorkflowActivity", t => t.ActivityID)
- .ForeignKey("bbsf.WorkflowActivityOutcome", t => t.ActivityOutcomeID)
- .ForeignKey("bbsf.User", t => t.CompletedByUserID)
- .ForeignKey("bbsf.WorkflowInstance", t => t.InstanceID)
- .ForeignKey("bbsf.WorkflowVersion", t => t.WorkflowVersionID)
- .Index(t => t.InstanceID)
- .Index(t => t.WorkflowVersionID)
- .Index(t => t.ActivityID)
- .Index(t => t.ActivityOutcomeID)
- .Index(t => t.CompletedByUserID);
- CreateTable(
- "bbsf.WorkflowActivityOutcome",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- SysName = c.String(nullable: false, maxLength: 100),
- ActivityID = c.Int(nullable: false),
- NextActivityID = c.Int(),
- CanAddComment = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.WorkflowActivity", t => t.NextActivityID)
- .ForeignKey("bbsf.WorkflowActivity", t => t.ActivityID)
- .Index(t => t.SysName)
- .Index(t => t.ActivityID)
- .Index(t => t.NextActivityID);
- CreateTable(
- "bbsf.WorkflowInstance",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- SysName = c.String(nullable: false, maxLength: 255),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- WorkflowVersionID = c.Int(nullable: false),
- CurrentActivityID = c.Int(nullable: false),
- StartedByUserID = c.Int(nullable: false),
- InstanceStatusItemID = c.Int(nullable: false),
- AssociatedObjectID = c.String(nullable: false, maxLength: 255),
- StartDate = c.DateTime(nullable: false),
- EndDate = c.DateTime(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.WorkflowActivity", t => t.CurrentActivityID)
- .ForeignKey("bbsf.LookupItem", t => t.InstanceStatusItemID)
- .ForeignKey("bbsf.User", t => t.StartedByUserID)
- .ForeignKey("bbsf.WorkflowVersion", t => t.WorkflowVersionID)
- .Index(t => t.WorkflowVersionID)
- .Index(t => t.CurrentActivityID)
- .Index(t => t.StartedByUserID)
- .Index(t => t.InstanceStatusItemID);
- CreateTable(
- "bbsf.WorkflowError",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- InstanceID = c.Int(nullable: false),
- ActivityID = c.Int(nullable: false),
- Message = c.String(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.WorkflowActivity", t => t.ActivityID)
- .ForeignKey("bbsf.WorkflowInstance", t => t.InstanceID)
- .Index(t => t.InstanceID)
- .Index(t => t.ActivityID);
- CreateTable(
- "bbsf.WorkflowInstanceComment",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- WorkflowInstanceID = c.Int(nullable: false),
- Text = c.String(nullable: false, maxLength: 255),
- ParentCommentID = c.Int(),
- UserID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.WorkflowInstance", t => t.WorkflowInstanceID)
- .ForeignKey("bbsf.WorkflowInstanceComment", t => t.ParentCommentID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.WorkflowInstanceID)
- .Index(t => t.ParentCommentID)
- .Index(t => t.UserID);
- CreateTable(
- "bbsf.WorkflowInstanceTask",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- WorkflowInstanceID = c.Int(nullable: false),
- ActivityID = c.Int(nullable: false),
- IsCompleted = c.Boolean(nullable: false),
- TaskCorrelationID = c.Guid(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.WorkflowActivity", t => t.ActivityID)
- .ForeignKey("bbsf.WorkflowInstance", t => t.WorkflowInstanceID)
- .Index(t => t.WorkflowInstanceID)
- .Index(t => t.ActivityID);
- CreateTable(
- "bbsf.TMETask",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(nullable: false, maxLength: 255),
- DescriptionAR = c.String(nullable: false, maxLength: 255),
- TaskURL = c.String(maxLength: 2083),
- TaskComment = c.String(maxLength: 500),
- CorrelationID = c.Guid(),
- IsAlive = c.Boolean(nullable: false),
- TaskTypeItemID = c.Int(nullable: false),
- WFInstanceTaskID = c.Int(),
- TaskStatusItemID = c.Int(nullable: false),
- TaskOutcomeItemID = c.Int(),
- AssociatedObjectID = c.String(),
- AssignedToUserID = c.Int(nullable: false),
- CompletionDate = c.DateTime(),
- PercentCompleted = c.Short(),
- CorrelationTypeItemID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.CorrelationTypeItemID)
- .ForeignKey("bbsf.WorkflowInstanceTask", t => t.WFInstanceTaskID)
- .ForeignKey("bbsf.LookupItem", t => t.TaskStatusItemID)
- .Index(t => t.WFInstanceTaskID)
- .Index(t => t.TaskStatusItemID)
- .Index(t => t.CorrelationTypeItemID);
- CreateTable(
- "bbsf.WorkflowInstanceVariable",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- InstanceID = c.Int(nullable: false),
- ActivityID = c.Int(),
- VariableID = c.Int(nullable: false),
- Value_Text = c.String(maxLength: 2500),
- Value_Number = c.Double(),
- Value_Boolean = c.Boolean(),
- Value_Date = c.DateTime(),
- Value_Guid = c.Guid(),
- Value_Identifier = c.String(),
- Value_VariableLookupID = c.Int(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.WorkflowActivity", t => t.ActivityID)
- .ForeignKey("bbsf.WorkflowInstance", t => t.InstanceID)
- .ForeignKey("bbsf.WorkflowVariable", t => t.VariableID)
- .Index(t => t.InstanceID)
- .Index(t => t.ActivityID)
- .Index(t => t.VariableID);
- CreateTable(
- "bbsf.WorkflowVariableLookup",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- Value = c.String(nullable: false, maxLength: 2000),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- VariableID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.WorkflowVariable", t => t.VariableID)
- .Index(t => t.VariableID);
- CreateTable(
- "bbsf.WorkflowVariable",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- SysName = c.String(nullable: false, maxLength: 100),
- WorkflowVersionID = c.Int(nullable: false),
- DataTypeItemID = c.Int(nullable: false),
- VariableTypeItemID = c.Int(nullable: false),
- IsConstant = c.Boolean(nullable: false),
- Value_Number = c.Double(),
- Value_Boolean = c.Boolean(),
- Value_Date = c.DateTime(),
- Value_VariableLookupID = c.Int(),
- Value_Identifier = c.String(maxLength: 100),
- Value_Text = c.String(maxLength: 2500),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.DataTypeItemID)
- .ForeignKey("bbsf.LookupItem", t => t.VariableTypeItemID)
- .ForeignKey("bbsf.WorkflowVersion", t => t.WorkflowVersionID)
- .Index(t => t.SysName)
- .Index(t => t.WorkflowVersionID)
- .Index(t => t.DataTypeItemID)
- .Index(t => t.VariableTypeItemID)
- .Index(t => t.Value_Identifier);
- CreateTable(
- "bbsf.WorkflowVersion",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- WorkflowID = c.Int(nullable: false),
- ChangeEN = c.String(nullable: false, maxLength: 255),
- ChangeAR = c.String(nullable: false, maxLength: 255),
- IsCurrent = c.Boolean(nullable: false),
- IsPublished = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.Workflow", t => t.WorkflowID)
- .Index(t => t.WorkflowID);
- CreateTable(
- "bbsf.Workflow",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- SysName = c.String(nullable: false, maxLength: 100),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(maxLength: 1000),
- DescriptionAR = c.String(maxLength: 1000),
- IsActive = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .Index(t => t.SysName, unique: true);
- CreateTable(
- "bbsf.Participant",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- ParticipantTypeItemID = c.Int(nullable: false),
- WorkflowActivityID = c.Int(),
- CorrelationID = c.Guid(nullable: false),
- PermissionSetID = c.Int(),
- UserID = c.Int(),
- WorkflowVariableID = c.Int(),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.WorkflowActivity", t => t.WorkflowActivityID)
- .ForeignKey("bbsf.LookupItem", t => t.ParticipantTypeItemID)
- .ForeignKey("bbsf.PermissionSet", t => t.PermissionSetID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .ForeignKey("bbsf.WorkflowVariable", t => t.WorkflowVariableID)
- .Index(t => t.ParticipantTypeItemID)
- .Index(t => t.WorkflowActivityID)
- .Index(t => t.PermissionSetID)
- .Index(t => t.UserID)
- .Index(t => t.WorkflowVariableID);
- CreateTable(
- "dbo.BrainstormingSession_Element",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- BrainstormingSessionID = c.Int(nullable: false),
- ElementID = c.Int(nullable: false),
- ToolID = c.Int(nullable: false),
- Value = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.BrainstormingSession", t => t.BrainstormingSessionID)
- .ForeignKey("dbo.Element", t => t.ElementID)
- .ForeignKey("dbo.Tool", t => t.ToolID)
- .Index(t => t.BrainstormingSessionID)
- .Index(t => t.ElementID)
- .Index(t => t.ToolID);
- CreateTable(
- "dbo.BrainstormingSession",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- ToolID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Tool", t => t.ToolID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.ToolID)
- .Index(t => t.UserID);
- CreateTable(
- "dbo.BrainstormingSession_ToolPerspectiveElement",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- BrainstormingSessionID = c.Int(nullable: false),
- ElementID = c.Int(nullable: false),
- ToolID = c.Int(nullable: false),
- ToolPerspectiveID = c.Int(nullable: false),
- Value = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.BrainstormingSession", t => t.BrainstormingSessionID)
- .ForeignKey("dbo.Element", t => t.ElementID)
- .ForeignKey("dbo.Tool", t => t.ToolID)
- .ForeignKey("dbo.ToolPerspective", t => t.ToolPerspectiveID)
- .Index(t => t.BrainstormingSessionID)
- .Index(t => t.ElementID)
- .Index(t => t.ToolID)
- .Index(t => t.ToolPerspectiveID);
- CreateTable(
- "dbo.Element",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- ToolID = c.Int(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Tool", t => t.ToolID)
- .Index(t => t.ToolID);
- CreateTable(
- "dbo.SessionInstance_Element",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- SessionInstanceID = c.Int(nullable: false),
- ElementID = c.Int(nullable: false),
- ToolID = c.Int(nullable: false),
- Value = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Element", t => t.ElementID)
- .ForeignKey("dbo.SessionInstance", t => t.SessionInstanceID)
- .ForeignKey("dbo.Tool", t => t.ToolID)
- .Index(t => t.SessionInstanceID)
- .Index(t => t.ElementID)
- .Index(t => t.ToolID);
- CreateTable(
- "dbo.SessionInstance",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- SessionID = c.Int(nullable: false),
- InnovationLabID = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.InnovationLab", t => t.InnovationLabID)
- .ForeignKey("dbo.Session", t => t.SessionID)
- .Index(t => t.SessionID)
- .Index(t => t.InnovationLabID);
- CreateTable(
- "dbo.Session",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- DisplayOrder = c.Int(nullable: false),
- CategoryTypeID = c.Int(),
- Visible = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.CategoryTypeID)
- .Index(t => t.CategoryTypeID);
- CreateTable(
- "dbo.Session_Tool",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- SessionID = c.Int(nullable: false),
- ToolID = c.Int(nullable: false),
- Hours = c.Int(nullable: false),
- Minutes = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Session", t => t.SessionID)
- .ForeignKey("dbo.Tool", t => t.ToolID)
- .Index(t => t.SessionID)
- .Index(t => t.ToolID);
- CreateTable(
- "dbo.Tool",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- HowToUseEN = c.String(nullable: false, maxLength: 1000),
- HowToUseAR = c.String(nullable: false, maxLength: 1000),
- CategoryTypeID = c.Int(nullable: false),
- SuggestedTimeItemID = c.Int(),
- LevelofDifficultyItemID = c.Int(),
- ToolTypeItemID = c.Int(),
- RowsCount = c.Int(nullable: false),
- ColumnsCount = c.Int(nullable: false),
- RequiredAmount = c.Int(nullable: false),
- RewardingPoints = c.Int(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- MaterialsNeededEN = c.String(maxLength: 512),
- MaterialsNeededAR = c.String(maxLength: 512),
- ParticipantsEN = c.String(maxLength: 1000),
- ParticipantsAR = c.String(maxLength: 1000),
- Visible = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.CategoryTypeID)
- .ForeignKey("bbsf.LookupItem", t => t.LevelofDifficultyItemID)
- .ForeignKey("bbsf.LookupItem", t => t.SuggestedTimeItemID)
- .ForeignKey("bbsf.LookupItem", t => t.ToolTypeItemID)
- .Index(t => t.CategoryTypeID)
- .Index(t => t.SuggestedTimeItemID)
- .Index(t => t.LevelofDifficultyItemID)
- .Index(t => t.ToolTypeItemID);
- CreateTable(
- "dbo.ToolPerspective",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- ToolID = c.Int(nullable: false),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- Visible = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Tool", t => t.ToolID)
- .Index(t => t.ToolID);
- CreateTable(
- "dbo.SessionInstance_ToolPerspectiveElement",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- SessionInstanceID = c.Int(nullable: false),
- ElementID = c.Int(nullable: false),
- ToolID = c.Int(nullable: false),
- ToolPerspectiveID = c.Int(nullable: false),
- Value = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Element", t => t.ElementID)
- .ForeignKey("dbo.SessionInstance", t => t.SessionInstanceID)
- .ForeignKey("dbo.Tool", t => t.ToolID)
- .ForeignKey("dbo.ToolPerspective", t => t.ToolPerspectiveID)
- .Index(t => t.SessionInstanceID)
- .Index(t => t.ElementID)
- .Index(t => t.ToolID)
- .Index(t => t.ToolPerspectiveID);
- CreateTable(
- "bbsf.BTimeZone",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 100),
- NameAR = c.String(nullable: false, maxLength: 100),
- DotNetId = c.String(nullable: false, maxLength: 50),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.CaseStudy",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- SummaryEN = c.String(nullable: false, maxLength: 255),
- SummaryAR = c.String(nullable: false, maxLength: 255),
- IdeaAR = c.String(nullable: false, maxLength: 255),
- IdeaEN = c.String(nullable: false, maxLength: 255),
- ResultAR = c.String(nullable: false, maxLength: 255),
- ResultsEN = c.String(nullable: false, maxLength: 255),
- FileID = c.Guid(),
- CategoryItemID = c.Int(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Visible = c.Boolean(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.CategoryItemID)
- .Index(t => t.CategoryItemID);
- CreateTable(
- "dbo.CaseStudyCommentReport",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- ReportingComment = c.String(),
- IsDeleted = c.Boolean(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CaseStudyCommentID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.CaseStudyComment", t => t.CaseStudyCommentID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.CaseStudyCommentID)
- .Index(t => t.UserID);
- CreateTable(
- "dbo.CaseStudyComment",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- CaseStudyID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- ParentCommentID = c.Int(),
- Value = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.CaseStudy", t => t.CaseStudyID)
- .ForeignKey("dbo.CaseStudyComment", t => t.ParentCommentID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.CaseStudyID)
- .Index(t => t.UserID)
- .Index(t => t.ParentCommentID);
- CreateTable(
- "dbo.ChallengeCommentReport",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- ReportingComment = c.String(),
- IsDeleted = c.Boolean(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- ChallengeCommentID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.ChallengeComment", t => t.ChallengeCommentID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.ChallengeCommentID)
- .Index(t => t.UserID);
- CreateTable(
- "dbo.ChallengeComment",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- ChallengeID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- ParentCommentID = c.Int(),
- Value = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- IsDeleted = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Challenge", t => t.ChallengeID)
- .ForeignKey("dbo.ChallengeComment", t => t.ParentCommentID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.ChallengeID)
- .Index(t => t.UserID)
- .Index(t => t.ParentCommentID);
- CreateTable(
- "dbo.Chapter",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- ModuleID = c.Int(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Module", t => t.ModuleID)
- .Index(t => t.ModuleID);
- CreateTable(
- "dbo.Module",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- objectiveEN = c.String(nullable: false, maxLength: 1000),
- objectiveAR = c.String(nullable: false, maxLength: 1000),
- ImageID = c.Guid(nullable: false),
- Visible = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.ModuleTopic",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- QuestionEN = c.String(nullable: false, maxLength: 1000),
- QuestionAR = c.String(nullable: false, maxLength: 1000),
- AnswerEN = c.String(nullable: false, maxLength: 1000),
- AnswerAR = c.String(nullable: false, maxLength: 1000),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- ChapterID = c.Int(nullable: false),
- Visible = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Chapter", t => t.ChapterID)
- .Index(t => t.ChapterID);
- CreateTable(
- "bbsf.Country",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 50),
- NameAR = c.String(nullable: false, maxLength: 50),
- Code = c.String(nullable: false, maxLength: 2),
- TelCode = c.String(nullable: false, maxLength: 4),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.DraftIdea",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- IdeaID = c.Int(nullable: false),
- IdeaFieldID = c.Int(),
- IdeaFieldValues = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "bbsf.FormsHubConnection",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- UserId = c.Int(nullable: false),
- ConnectionId = c.String(maxLength: 256),
- ObjectId = c.String(maxLength: 256),
- ObjectName = c.String(maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.User", t => t.UserId)
- .Index(t => t.UserId);
- CreateTable(
- "dbo.IdeaWFMapping",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- IdeaStatusID = c.Int(nullable: false),
- WFActivitySysName = c.String(),
- WFOutcomeSysName = c.String(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.IdeaStatusID)
- .Index(t => t.IdeaStatusID);
- CreateTable(
- "dbo.Invoice",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- Code = c.String(nullable: false, maxLength: 255),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- IsDeleted = c.Boolean(nullable: false),
- Ammount = c.Double(nullable: false),
- InvoiceStatusItemID = c.Int(nullable: false),
- InvoiceCurrencyItemID = c.Int(nullable: false),
- MilestoneID = c.Int(),
- ProjectID = c.Int(nullable: false),
- CorrelationID = c.Guid(),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.InvoiceCurrencyItemID)
- .ForeignKey("bbsf.LookupItem", t => t.InvoiceStatusItemID)
- .ForeignKey("dbo.Milestone", t => t.MilestoneID)
- .ForeignKey("dbo.Project", t => t.ProjectID)
- .Index(t => t.InvoiceStatusItemID)
- .Index(t => t.InvoiceCurrencyItemID)
- .Index(t => t.MilestoneID)
- .Index(t => t.ProjectID);
- CreateTable(
- "dbo.LibraryResource",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TitleEN = c.String(nullable: false, maxLength: 255),
- TitleAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- CategoryTypeID = c.Int(nullable: false),
- ImageID = c.Guid(nullable: false),
- FileID = c.Guid(nullable: false),
- Visible = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("bbsf.LookupItem", t => t.CategoryTypeID)
- .Index(t => t.CategoryTypeID);
- CreateTable(
- "dbo.Localization",
- c => new
- {
- pk = c.Int(nullable: false, identity: true),
- ResourceId = c.String(nullable: false, maxLength: 1024),
- Value = c.String(),
- LocaleId = c.String(maxLength: 10),
- ResourceSet = c.String(maxLength: 512),
- Type = c.String(maxLength: 512),
- BinFile = c.Binary(),
- TextFile = c.String(),
- Filename = c.String(maxLength: 128),
- Comment = c.String(maxLength: 512),
- ValueType = c.Int(nullable: false),
- Updated = c.DateTime(nullable: false),
- IsWentToProduction = c.Boolean(nullable: false),
- WentToProductionDate = c.DateTime(),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- })
- .PrimaryKey(t => t.pk);
- CreateTable(
- "dbo.NotificationClientUser",
- c => new
- {
- NotificationID = c.Int(nullable: false),
- ClientUserID = c.Int(nullable: false),
- Seen = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => new { t.NotificationID, t.ClientUserID })
- .ForeignKey("dbo.Notification", t => t.NotificationID)
- .ForeignKey("bbsf.User", t => t.ClientUserID)
- .Index(t => t.NotificationID)
- .Index(t => t.ClientUserID);
- CreateTable(
- "dbo.Notification",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- NotificationAR = c.String(),
- NotificationEN = c.String(),
- URL = c.String(),
- IdeaID = c.Int(),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.Idea", t => t.IdeaID)
- .Index(t => t.IdeaID);
- CreateTable(
- "dbo.SignalRConnection",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- UserId = c.Int(nullable: false),
- ConnectionId = c.String(),
- Agent = c.String(),
- IsOnline = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.TopicCategory",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- NameEN = c.String(nullable: false, maxLength: 255),
- NameAR = c.String(nullable: false, maxLength: 255),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- ImageGuidID = c.Guid(),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "dbo.Topic",
- c => new
- {
- ID = c.Int(nullable: false, identity: true),
- TopicEN = c.String(nullable: false, maxLength: 1000),
- TopicAR = c.String(nullable: false, maxLength: 1000),
- DescriptionEN = c.String(),
- DescriptionAR = c.String(),
- CategoryID = c.Int(nullable: false),
- Visible = c.Boolean(nullable: false),
- IsAdmin = c.Boolean(nullable: false),
- DisplayOrder = c.Int(nullable: false),
- Created = c.DateTime(nullable: false),
- Modified = c.DateTime(nullable: false),
- CreatedBy = c.String(nullable: false, maxLength: 256),
- ModifiedBy = c.String(nullable: false, maxLength: 256),
- })
- .PrimaryKey(t => t.ID)
- .ForeignKey("dbo.TopicCategory", t => t.CategoryID)
- .Index(t => t.CategoryID);
- CreateTable(
- "dbo.UserMenu",
- c => new
- {
- ID = c.Int(nullable: false),
- NameEN = c.String(),
- NameAR = c.String(),
- IconUrl = c.String(),
- Url = c.String(),
- ControllerFullName = c.String(),
- Order = c.Int(nullable: false),
- CssClass = c.String(),
- Visible = c.Boolean(nullable: false),
- })
- .PrimaryKey(t => t.ID);
- CreateTable(
- "bbsf.PermissionSet_Permission",
- c => new
- {
- PermissionSetID = c.Int(nullable: false),
- PermissionID = c.Int(nullable: false),
- })
- .PrimaryKey(t => new { t.PermissionSetID, t.PermissionID })
- .ForeignKey("bbsf.PermissionSet", t => t.PermissionSetID)
- .ForeignKey("bbsf.Permission", t => t.PermissionID)
- .Index(t => t.PermissionSetID)
- .Index(t => t.PermissionID);
- CreateTable(
- "bbsf.PermissionSet_User",
- c => new
- {
- PermissionSetID = c.Int(nullable: false),
- UserID = c.Int(nullable: false),
- })
- .PrimaryKey(t => new { t.PermissionSetID, t.UserID })
- .ForeignKey("bbsf.PermissionSet", t => t.PermissionSetID)
- .ForeignKey("bbsf.User", t => t.UserID)
- .Index(t => t.PermissionSetID)
- .Index(t => t.UserID);
- CreateTable(
- "bbsf.ChatMessage_SeenBy",
- c => new
- {
- UserID = c.Int(nullable: false),
- ChatMessageID = c.Int(nullable: false),
- })
- .PrimaryKey(t => new { t.UserID, t.ChatMessageID })
- .ForeignKey("bbsf.ChatMessage", t => t.UserID)
- .ForeignKey("bbsf.User", t => t.ChatMessageID)
- .Index(t => t.UserID)
- .Index(t => t.ChatMessageID);
- CreateTable(
- "dbo.TagIdea",
- c => new
- {
- Tag_ID = c.Int(nullable: false),
- Idea_ID = c.Int(nullable: false),
- })
- .PrimaryKey(t => new { t.Tag_ID, t.Idea_ID })
- .ForeignKey("dbo.Tag", t => t.Tag_ID)
- .ForeignKey("dbo.Idea", t => t.Idea_ID)
- .Index(t => t.Tag_ID)
- .Index(t => t.Idea_ID);
- CreateTable(
- "dbo.TitleTag",
- c => new
- {
- Title_ID = c.Int(nullable: false),
- Tag_ID = c.Int(nullable: false),
- })
- .PrimaryKey(t => new { t.Title_ID, t.Tag_ID })
- .ForeignKey("dbo.Title", t => t.Title_ID)
- .ForeignKey("dbo.Tag", t => t.Tag_ID)
- .Index(t => t.Title_ID)
- .Index(t => t.Tag_ID);
- CreateTable(
- "bbsf.WorkflowInstanceVariable_VariableLookup",
- c => new
- {
- VariableLookupID = c.Int(nullable: false),
- InstanceVariableID = c.Int(nullable: false),
- })
- .PrimaryKey(t => new { t.VariableLookupID, t.InstanceVariableID })
- .ForeignKey("bbsf.WorkflowInstanceVariable", t => t.VariableLookupID)
- .ForeignKey("bbsf.WorkflowVariableLookup", t => t.InstanceVariableID)
- .Index(t => t.VariableLookupID)
- .Index(t => t.InstanceVariableID);
- }
- public override void Down()
- {
- DropForeignKey("dbo.Topic", "CategoryID", "dbo.TopicCategory");
- DropForeignKey("dbo.NotificationClientUser", "ClientUserID", "bbsf.User");
- DropForeignKey("dbo.NotificationClientUser", "NotificationID", "dbo.Notification");
- DropForeignKey("dbo.Notification", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.LibraryResource", "CategoryTypeID", "bbsf.LookupItem");
- DropForeignKey("dbo.Invoice", "ProjectID", "dbo.Project");
- DropForeignKey("dbo.Invoice", "MilestoneID", "dbo.Milestone");
- DropForeignKey("dbo.Invoice", "InvoiceStatusItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.Invoice", "InvoiceCurrencyItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.IdeaWFMapping", "IdeaStatusID", "bbsf.LookupItem");
- DropForeignKey("bbsf.FormsHubConnection", "UserId", "bbsf.User");
- DropForeignKey("dbo.ModuleTopic", "ChapterID", "dbo.Chapter");
- DropForeignKey("dbo.Chapter", "ModuleID", "dbo.Module");
- DropForeignKey("dbo.ChallengeCommentReport", "UserID", "bbsf.User");
- DropForeignKey("dbo.ChallengeCommentReport", "ChallengeCommentID", "dbo.ChallengeComment");
- DropForeignKey("dbo.ChallengeComment", "UserID", "bbsf.User");
- DropForeignKey("dbo.ChallengeComment", "ParentCommentID", "dbo.ChallengeComment");
- DropForeignKey("dbo.ChallengeComment", "ChallengeID", "dbo.Challenge");
- DropForeignKey("dbo.CaseStudyCommentReport", "UserID", "bbsf.User");
- DropForeignKey("dbo.CaseStudyCommentReport", "CaseStudyCommentID", "dbo.CaseStudyComment");
- DropForeignKey("dbo.CaseStudyComment", "UserID", "bbsf.User");
- DropForeignKey("dbo.CaseStudyComment", "ParentCommentID", "dbo.CaseStudyComment");
- DropForeignKey("dbo.CaseStudyComment", "CaseStudyID", "dbo.CaseStudy");
- DropForeignKey("dbo.CaseStudy", "CategoryItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.BrainstormingSession_Element", "ToolID", "dbo.Tool");
- DropForeignKey("dbo.BrainstormingSession_Element", "ElementID", "dbo.Element");
- DropForeignKey("dbo.BrainstormingSession_Element", "BrainstormingSessionID", "dbo.BrainstormingSession");
- DropForeignKey("dbo.BrainstormingSession", "UserID", "bbsf.User");
- DropForeignKey("dbo.BrainstormingSession", "ToolID", "dbo.Tool");
- DropForeignKey("dbo.BrainstormingSession_ToolPerspectiveElement", "ToolPerspectiveID", "dbo.ToolPerspective");
- DropForeignKey("dbo.BrainstormingSession_ToolPerspectiveElement", "ToolID", "dbo.Tool");
- DropForeignKey("dbo.BrainstormingSession_ToolPerspectiveElement", "ElementID", "dbo.Element");
- DropForeignKey("dbo.Element", "ToolID", "dbo.Tool");
- DropForeignKey("dbo.SessionInstance_Element", "ToolID", "dbo.Tool");
- DropForeignKey("dbo.SessionInstance_Element", "SessionInstanceID", "dbo.SessionInstance");
- DropForeignKey("dbo.SessionInstance", "SessionID", "dbo.Session");
- DropForeignKey("dbo.Session_Tool", "ToolID", "dbo.Tool");
- DropForeignKey("dbo.Tool", "ToolTypeItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.Tool", "SuggestedTimeItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.ToolPerspective", "ToolID", "dbo.Tool");
- DropForeignKey("dbo.SessionInstance_ToolPerspectiveElement", "ToolPerspectiveID", "dbo.ToolPerspective");
- DropForeignKey("dbo.SessionInstance_ToolPerspectiveElement", "ToolID", "dbo.Tool");
- DropForeignKey("dbo.SessionInstance_ToolPerspectiveElement", "SessionInstanceID", "dbo.SessionInstance");
- DropForeignKey("dbo.SessionInstance_ToolPerspectiveElement", "ElementID", "dbo.Element");
- DropForeignKey("dbo.Tool", "LevelofDifficultyItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.Tool", "CategoryTypeID", "bbsf.LookupItem");
- DropForeignKey("dbo.Session_Tool", "SessionID", "dbo.Session");
- DropForeignKey("dbo.Session", "CategoryTypeID", "bbsf.LookupItem");
- DropForeignKey("dbo.SessionInstance", "InnovationLabID", "dbo.InnovationLab");
- DropForeignKey("dbo.SessionInstance_Element", "ElementID", "dbo.Element");
- DropForeignKey("dbo.BrainstormingSession_ToolPerspectiveElement", "BrainstormingSessionID", "dbo.BrainstormingSession");
- DropForeignKey("bbsf.WorkflowActivity", "WorkflowVersionID", "bbsf.WorkflowVersion");
- DropForeignKey("bbsf.WorkflowActivity", "TemplateID", "bbsf.Template");
- DropForeignKey("bbsf.Participant", "WorkflowVariableID", "bbsf.WorkflowVariable");
- DropForeignKey("bbsf.Participant", "UserID", "bbsf.User");
- DropForeignKey("bbsf.Participant", "PermissionSetID", "bbsf.PermissionSet");
- DropForeignKey("bbsf.Participant", "ParticipantTypeItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.Participant", "WorkflowActivityID", "bbsf.WorkflowActivity");
- DropForeignKey("bbsf.WorkflowActivityOutcome", "ActivityID", "bbsf.WorkflowActivity");
- DropForeignKey("bbsf.WorkflowActivityOutcome", "NextActivityID", "bbsf.WorkflowActivity");
- DropForeignKey("bbsf.WorkflowActivityVariable", "VariableID", "bbsf.WorkflowVariable");
- DropForeignKey("bbsf.WorkflowLogVariable", "LogID", "bbsf.WorkflowLog");
- DropForeignKey("bbsf.WorkflowLog", "WorkflowVersionID", "bbsf.WorkflowVersion");
- DropForeignKey("bbsf.WorkflowLog", "InstanceID", "bbsf.WorkflowInstance");
- DropForeignKey("bbsf.WorkflowInstance", "WorkflowVersionID", "bbsf.WorkflowVersion");
- DropForeignKey("bbsf.WorkflowInstance", "StartedByUserID", "bbsf.User");
- DropForeignKey("bbsf.WorkflowInstanceVariable", "VariableID", "bbsf.WorkflowVariable");
- DropForeignKey("bbsf.WorkflowInstanceVariable_VariableLookup", "InstanceVariableID", "bbsf.WorkflowVariableLookup");
- DropForeignKey("bbsf.WorkflowInstanceVariable_VariableLookup", "VariableLookupID", "bbsf.WorkflowInstanceVariable");
- DropForeignKey("bbsf.WorkflowVariableLookup", "VariableID", "bbsf.WorkflowVariable");
- DropForeignKey("bbsf.WorkflowVariable", "WorkflowVersionID", "bbsf.WorkflowVersion");
- DropForeignKey("bbsf.WorkflowVersion", "WorkflowID", "bbsf.Workflow");
- DropForeignKey("bbsf.WorkflowVariable", "VariableTypeItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.WorkflowVariable", "DataTypeItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.WorkflowInstanceVariable", "InstanceID", "bbsf.WorkflowInstance");
- DropForeignKey("bbsf.WorkflowInstanceVariable", "ActivityID", "bbsf.WorkflowActivity");
- DropForeignKey("bbsf.TMETask", "TaskStatusItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.TMETask", "WFInstanceTaskID", "bbsf.WorkflowInstanceTask");
- DropForeignKey("bbsf.TMETask", "CorrelationTypeItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.WorkflowInstanceTask", "WorkflowInstanceID", "bbsf.WorkflowInstance");
- DropForeignKey("bbsf.WorkflowInstanceTask", "ActivityID", "bbsf.WorkflowActivity");
- DropForeignKey("bbsf.WorkflowInstance", "InstanceStatusItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.WorkflowInstanceComment", "UserID", "bbsf.User");
- DropForeignKey("bbsf.WorkflowInstanceComment", "ParentCommentID", "bbsf.WorkflowInstanceComment");
- DropForeignKey("bbsf.WorkflowInstanceComment", "WorkflowInstanceID", "bbsf.WorkflowInstance");
- DropForeignKey("bbsf.WorkflowError", "InstanceID", "bbsf.WorkflowInstance");
- DropForeignKey("bbsf.WorkflowError", "ActivityID", "bbsf.WorkflowActivity");
- DropForeignKey("bbsf.WorkflowInstance", "CurrentActivityID", "bbsf.WorkflowActivity");
- DropForeignKey("bbsf.WorkflowLog", "CompletedByUserID", "bbsf.User");
- DropForeignKey("bbsf.WorkflowLog", "ActivityOutcomeID", "bbsf.WorkflowActivityOutcome");
- DropForeignKey("bbsf.WorkflowLog", "ActivityID", "bbsf.WorkflowActivity");
- DropForeignKey("bbsf.WorkflowLogVariable", "ActivityVariableID", "bbsf.WorkflowActivityVariable");
- DropForeignKey("bbsf.WorkflowActivityVariable", "ActivityID", "bbsf.WorkflowActivity");
- DropForeignKey("bbsf.WorkflowActivity", "ActivityTypeItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.Activity", "StatusItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.Activity", "StageID", "dbo.Stage");
- DropForeignKey("dbo.Stage", "StageTemplateID", "dbo.StageTemplate");
- DropForeignKey("dbo.Stage", "PlaningID", "dbo.IMOPlanning");
- DropForeignKey("dbo.Stage", "MonitoringID", "dbo.IMOMonitoring");
- DropForeignKey("dbo.Stage", "AnalysisID", "dbo.IMOAnalysis");
- DropForeignKey("dbo.ActivityComment", "ActivityID", "dbo.Activity");
- DropForeignKey("dbo.Activity", "ActivityTemplateID", "dbo.ActivityTemplate");
- DropForeignKey("dbo.Achievement", "RewardTypeID", "bbsf.LookupItem");
- DropForeignKey("dbo.IdeaFieldValue_Relation", "LookupItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.IdeaFieldValue_Relation", "InnvoationLabID", "dbo.InnovationLab");
- DropForeignKey("dbo.IdeaFieldValue_Relation", "IdeaFieldValueID", "dbo.IdeaFieldValue");
- DropForeignKey("dbo.IdeaFieldValue_Relation", "GoalID", "dbo.Goal");
- DropForeignKey("dbo.IdeaFieldValue_Relation", "ChallengeID", "dbo.Challenge");
- DropForeignKey("dbo.IdeaFieldValue_Relation", "AreaOfFocusID", "dbo.AreaOfFocus");
- DropForeignKey("dbo.AreaOfFocus", "TypeID", "bbsf.LookupItem");
- DropForeignKey("dbo.MindMap", "ProjectID", "dbo.Project");
- DropForeignKey("dbo.Project", "ManagerID", "bbsf.User");
- DropForeignKey("dbo.Risk", "StatusItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.Risk", "ProjectID", "dbo.Project");
- DropForeignKey("dbo.Risk", "ProbabilityItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.Risk", "ImpactItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.ProjectTask", "ParentTaskID", "dbo.ProjectTask");
- DropForeignKey("dbo.ProjectTask", "MileStoneID", "dbo.Milestone");
- DropForeignKey("dbo.Milestone", "ProjectID", "dbo.Project");
- DropForeignKey("dbo.Project_Member", "UserID", "bbsf.User");
- DropForeignKey("dbo.Project_Member", "ProjectID", "dbo.Project");
- DropForeignKey("dbo.Issue", "ProjectID", "dbo.Project");
- DropForeignKey("dbo.Project", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.Folder", "ProjectID", "dbo.Project");
- DropForeignKey("dbo.Folder", "ParentFolderID", "dbo.Folder");
- DropForeignKey("dbo.Deliverable", "ProjectID", "dbo.Project");
- DropForeignKey("dbo.Deliverable", "FileID", "bbsf.File");
- DropForeignKey("dbo.MindMap", "UserID", "bbsf.User");
- DropForeignKey("dbo.MindMap", "LabID", "dbo.InnovationLab");
- DropForeignKey("dbo.Team_User", "UserID", "bbsf.User");
- DropForeignKey("dbo.Team_User", "TeamID", "dbo.Team");
- DropForeignKey("dbo.Team", "InnovationLabID", "dbo.InnovationLab");
- DropForeignKey("dbo.InnovationLab", "OwnerID", "bbsf.User");
- DropForeignKey("dbo.Agenda", "InnovationLabID", "dbo.InnovationLab");
- DropForeignKey("dbo.MindMap", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.TitleTag", "Tag_ID", "dbo.Tag");
- DropForeignKey("dbo.TitleTag", "Title_ID", "dbo.Title");
- DropForeignKey("dbo.Title", "GoalID", "dbo.Goal");
- DropForeignKey("dbo.Title", "ChallengeID", "dbo.Challenge");
- DropForeignKey("dbo.Title", "AreaOfFocusID", "dbo.AreaOfFocus");
- DropForeignKey("dbo.TagIdea", "Idea_ID", "dbo.Idea");
- DropForeignKey("dbo.TagIdea", "Tag_ID", "dbo.Tag");
- DropForeignKey("dbo.Idea_RelatedIdea", "Idea_ID", "dbo.Idea");
- DropForeignKey("dbo.Idea_RelatedIdea", "RelatedIdeaID", "dbo.Idea");
- DropForeignKey("dbo.Idea_RelatedIdea", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.Idea", "OwnerID", "bbsf.User");
- DropForeignKey("dbo.IdeaVersion_Correlation", "IdeaVersionID", "dbo.IdeaVersion");
- DropForeignKey("dbo.IdeaVersion_File", "IdeaVersionID", "dbo.IdeaVersion");
- DropForeignKey("dbo.IdeaVersion_File", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.IdeaVersion_File", "FileID", "bbsf.File");
- DropForeignKey("dbo.IdeaVersion", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.IdeaVersion_Correlation", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.Idea", "StatusItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.IdeaFieldValue", "IdeaFieldID", "dbo.IdeaField");
- DropForeignKey("dbo.IdeaField", "WidthTypeItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.IdeaField", "MultiSelectLookupID", "bbsf.Lookup");
- DropForeignKey("dbo.IdeaField", "LangValidationItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.IdeaField", "DataTypeItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.IdeaFieldValue", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.IdeaFieldValue", "FileOrImageID", "bbsf.File");
- DropForeignKey("dbo.Idea_Contributor", "UserID", "bbsf.User");
- DropForeignKey("dbo.Idea_Contributor", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.Idea_Contributor", "ContributorTypeItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.Idea", "EvaluationCriteriaID", "dbo.EvaluationCriteria");
- DropForeignKey("dbo.EvaluationPanel_User", "UserID", "bbsf.User");
- DropForeignKey("dbo.EvaluationPanel_User", "EvaluationPanelID", "dbo.EvaluationPanel");
- DropForeignKey("dbo.EvaluationPanel", "EvaluationCriteriaID", "dbo.EvaluationCriteria");
- DropForeignKey("dbo.Idea_CriterionScore", "UserID", "bbsf.User");
- DropForeignKey("dbo.Idea_CriterionScore", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.Idea_CriterionScore", "CriterionID", "dbo.Criterion");
- DropForeignKey("dbo.Criterion", "EvaluationCriteriaID", "dbo.EvaluationCriteria");
- DropForeignKey("dbo.IdeaComment", "UserID", "bbsf.User");
- DropForeignKey("dbo.IdeaComment", "ParentCommentID", "dbo.IdeaComment");
- DropForeignKey("dbo.IdeaInteraction", "UserID", "bbsf.User");
- DropForeignKey("dbo.IdeaInteraction", "InteractionTypeItemID", "bbsf.LookupItem");
- DropForeignKey("dbo.IdeaInteraction", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.IdeaInteraction", "CommentID", "dbo.IdeaComment");
- DropForeignKey("dbo.IdeaComment", "IdeaID", "dbo.Idea");
- DropForeignKey("dbo.IdeaCommentReport", "UserID", "bbsf.User");
- DropForeignKey("bbsf.UserInfo", "UserID", "bbsf.User");
- DropForeignKey("bbsf.User", "SmallImageFileID", "bbsf.File");
- DropForeignKey("bbsf.ChatMessage_SeenBy", "ChatMessageID", "bbsf.User");
- DropForeignKey("bbsf.ChatMessage_SeenBy", "UserID", "bbsf.ChatMessage");
- DropForeignKey("bbsf.User", "ChatRoom_ID", "bbsf.ChatRoom");
- DropForeignKey("bbsf.ChatUnreadMessage", "UserID", "bbsf.User");
- DropForeignKey("bbsf.ChatUnreadMessage", "RoomID", "bbsf.ChatRoom");
- DropForeignKey("bbsf.ChatRoom", "RoomTypeItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.ChatMessage", "RoomID", "bbsf.ChatRoom");
- DropForeignKey("bbsf.ChatMessage", "OwnerID", "bbsf.User");
- DropForeignKey("bbsf.ChatMessage", "MessageTypeItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.ChatMessageAttachment", "ChatMessage_ID", "bbsf.ChatMessage");
- DropForeignKey("bbsf.ChatMessageAttachment", "AttachmentTypeItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.User", "OriginalImageFileID", "bbsf.File");
- DropForeignKey("bbsf.User", "OrganizationID", "bbsf.Organization");
- DropForeignKey("bbsf.ProviderAttribute", "ProviderId", "bbsf.Provider");
- DropForeignKey("bbsf.Provider", "OrganizationID", "bbsf.Organization");
- DropForeignKey("bbsf.Provider", "ProviderTypeItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.TemplateInfo", "TemplateID", "bbsf.Template");
- DropForeignKey("bbsf.TemplateInfo", "LanguageModeItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.TemplateInfo", "EmailHeaderAndFooterTemplateID", "bbsf.EmailHeaderAndFooterTemplate");
- DropForeignKey("bbsf.Template", "OrganizationID", "bbsf.Organization");
- DropForeignKey("bbsf.Template", "CategoryItemID", "bbsf.LookupItem");
- DropForeignKey("bbsf.LookupItem", "LookupID", "bbsf.Lookup");
- DropForeignKey("bbsf.Lookup", "LookupGroupID", "bbsf.LookupGroup");
- DropForeignKey("bbsf.PermissionSet_User", "UserID", "bbsf.User");
- DropForeignKey("bbsf.PermissionSet_User", "PermissionSetID", "bbsf.PermissionSet");
- DropForeignKey("bbsf.PermissionSet_Permission", "PermissionID", "bbsf.Permission");
- DropForeignKey("bbsf.PermissionSet_Permission", "PermissionSetID", "bbsf.PermissionSet");
- DropForeignKey("bbsf.PermissionSet", "OrganizationID", "bbsf.Organization");
- DropForeignKey("bbsf.Permission", "OrganizationID", "bbsf.Organization");
- DropForeignKey("bbsf.User", "LargeImageFileID", "bbsf.File");
- DropForeignKey("bbsf.UserConnection", "UserID", "bbsf.User");
- DropForeignKey("dbo.IdeaCommentReport", "IdeaCommentID", "dbo.IdeaComment");
- DropForeignKey("dbo.MindMap", "GoalID", "dbo.Goal");
- DropForeignKey("dbo.MindMap", "ChallengeID", "dbo.Challenge");
- DropForeignKey("dbo.MindMap", "FocuseID", "dbo.AreaOfFocus");
- DropForeignKey("dbo.Achievement", "BadgeID", "dbo.Badge");
- DropIndex("bbsf.WorkflowInstanceVariable_VariableLookup", new[] { "InstanceVariableID" });
- DropIndex("bbsf.WorkflowInstanceVariable_VariableLookup", new[] { "VariableLookupID" });
- DropIndex("dbo.TitleTag", new[] { "Tag_ID" });
- DropIndex("dbo.TitleTag", new[] { "Title_ID" });
- DropIndex("dbo.TagIdea", new[] { "Idea_ID" });
- DropIndex("dbo.TagIdea", new[] { "Tag_ID" });
- DropIndex("bbsf.ChatMessage_SeenBy", new[] { "ChatMessageID" });
- DropIndex("bbsf.ChatMessage_SeenBy", new[] { "UserID" });
- DropIndex("bbsf.PermissionSet_User", new[] { "UserID" });
- DropIndex("bbsf.PermissionSet_User", new[] { "PermissionSetID" });
- DropIndex("bbsf.PermissionSet_Permission", new[] { "PermissionID" });
- DropIndex("bbsf.PermissionSet_Permission", new[] { "PermissionSetID" });
- DropIndex("dbo.Topic", new[] { "CategoryID" });
- DropIndex("dbo.Notification", new[] { "IdeaID" });
- DropIndex("dbo.NotificationClientUser", new[] { "ClientUserID" });
- DropIndex("dbo.NotificationClientUser", new[] { "NotificationID" });
- DropIndex("dbo.LibraryResource", new[] { "CategoryTypeID" });
- DropIndex("dbo.Invoice", new[] { "ProjectID" });
- DropIndex("dbo.Invoice", new[] { "MilestoneID" });
- DropIndex("dbo.Invoice", new[] { "InvoiceCurrencyItemID" });
- DropIndex("dbo.Invoice", new[] { "InvoiceStatusItemID" });
- DropIndex("dbo.IdeaWFMapping", new[] { "IdeaStatusID" });
- DropIndex("bbsf.FormsHubConnection", new[] { "UserId" });
- DropIndex("dbo.ModuleTopic", new[] { "ChapterID" });
- DropIndex("dbo.Chapter", new[] { "ModuleID" });
- DropIndex("dbo.ChallengeComment", new[] { "ParentCommentID" });
- DropIndex("dbo.ChallengeComment", new[] { "UserID" });
- DropIndex("dbo.ChallengeComment", new[] { "ChallengeID" });
- DropIndex("dbo.ChallengeCommentReport", new[] { "UserID" });
- DropIndex("dbo.ChallengeCommentReport", new[] { "ChallengeCommentID" });
- DropIndex("dbo.CaseStudyComment", new[] { "ParentCommentID" });
- DropIndex("dbo.CaseStudyComment", new[] { "UserID" });
- DropIndex("dbo.CaseStudyComment", new[] { "CaseStudyID" });
- DropIndex("dbo.CaseStudyCommentReport", new[] { "UserID" });
- DropIndex("dbo.CaseStudyCommentReport", new[] { "CaseStudyCommentID" });
- DropIndex("dbo.CaseStudy", new[] { "CategoryItemID" });
- DropIndex("dbo.SessionInstance_ToolPerspectiveElement", new[] { "ToolPerspectiveID" });
- DropIndex("dbo.SessionInstance_ToolPerspectiveElement", new[] { "ToolID" });
- DropIndex("dbo.SessionInstance_ToolPerspectiveElement", new[] { "ElementID" });
- DropIndex("dbo.SessionInstance_ToolPerspectiveElement", new[] { "SessionInstanceID" });
- DropIndex("dbo.ToolPerspective", new[] { "ToolID" });
- DropIndex("dbo.Tool", new[] { "ToolTypeItemID" });
- DropIndex("dbo.Tool", new[] { "LevelofDifficultyItemID" });
- DropIndex("dbo.Tool", new[] { "SuggestedTimeItemID" });
- DropIndex("dbo.Tool", new[] { "CategoryTypeID" });
- DropIndex("dbo.Session_Tool", new[] { "ToolID" });
- DropIndex("dbo.Session_Tool", new[] { "SessionID" });
- DropIndex("dbo.Session", new[] { "CategoryTypeID" });
- DropIndex("dbo.SessionInstance", new[] { "InnovationLabID" });
- DropIndex("dbo.SessionInstance", new[] { "SessionID" });
- DropIndex("dbo.SessionInstance_Element", new[] { "ToolID" });
- DropIndex("dbo.SessionInstance_Element", new[] { "ElementID" });
- DropIndex("dbo.SessionInstance_Element", new[] { "SessionInstanceID" });
- DropIndex("dbo.Element", new[] { "ToolID" });
- DropIndex("dbo.BrainstormingSession_ToolPerspectiveElement", new[] { "ToolPerspectiveID" });
- DropIndex("dbo.BrainstormingSession_ToolPerspectiveElement", new[] { "ToolID" });
- DropIndex("dbo.BrainstormingSession_ToolPerspectiveElement", new[] { "ElementID" });
- DropIndex("dbo.BrainstormingSession_ToolPerspectiveElement", new[] { "BrainstormingSessionID" });
- DropIndex("dbo.BrainstormingSession", new[] { "UserID" });
- DropIndex("dbo.BrainstormingSession", new[] { "ToolID" });
- DropIndex("dbo.BrainstormingSession_Element", new[] { "ToolID" });
- DropIndex("dbo.BrainstormingSession_Element", new[] { "ElementID" });
- DropIndex("dbo.BrainstormingSession_Element", new[] { "BrainstormingSessionID" });
- DropIndex("bbsf.Participant", new[] { "WorkflowVariableID" });
- DropIndex("bbsf.Participant", new[] { "UserID" });
- DropIndex("bbsf.Participant", new[] { "PermissionSetID" });
- DropIndex("bbsf.Participant", new[] { "WorkflowActivityID" });
- DropIndex("bbsf.Participant", new[] { "ParticipantTypeItemID" });
- DropIndex("bbsf.Workflow", new[] { "SysName" });
- DropIndex("bbsf.WorkflowVersion", new[] { "WorkflowID" });
- DropIndex("bbsf.WorkflowVariable", new[] { "Value_Identifier" });
- DropIndex("bbsf.WorkflowVariable", new[] { "VariableTypeItemID" });
- DropIndex("bbsf.WorkflowVariable", new[] { "DataTypeItemID" });
- DropIndex("bbsf.WorkflowVariable", new[] { "WorkflowVersionID" });
- DropIndex("bbsf.WorkflowVariable", new[] { "SysName" });
- DropIndex("bbsf.WorkflowVariableLookup", new[] { "VariableID" });
- DropIndex("bbsf.WorkflowInstanceVariable", new[] { "VariableID" });
- DropIndex("bbsf.WorkflowInstanceVariable", new[] { "ActivityID" });
- DropIndex("bbsf.WorkflowInstanceVariable", new[] { "InstanceID" });
- DropIndex("bbsf.TMETask", new[] { "CorrelationTypeItemID" });
- DropIndex("bbsf.TMETask", new[] { "TaskStatusItemID" });
- DropIndex("bbsf.TMETask", new[] { "WFInstanceTaskID" });
- DropIndex("bbsf.WorkflowInstanceTask", new[] { "ActivityID" });
- DropIndex("bbsf.WorkflowInstanceTask", new[] { "WorkflowInstanceID" });
- DropIndex("bbsf.WorkflowInstanceComment", new[] { "UserID" });
- DropIndex("bbsf.WorkflowInstanceComment", new[] { "ParentCommentID" });
- DropIndex("bbsf.WorkflowInstanceComment", new[] { "WorkflowInstanceID" });
- DropIndex("bbsf.WorkflowError", new[] { "ActivityID" });
- DropIndex("bbsf.WorkflowError", new[] { "InstanceID" });
- DropIndex("bbsf.WorkflowInstance", new[] { "InstanceStatusItemID" });
- DropIndex("bbsf.WorkflowInstance", new[] { "StartedByUserID" });
- DropIndex("bbsf.WorkflowInstance", new[] { "CurrentActivityID" });
- DropIndex("bbsf.WorkflowInstance", new[] { "WorkflowVersionID" });
- DropIndex("bbsf.WorkflowActivityOutcome", new[] { "NextActivityID" });
- DropIndex("bbsf.WorkflowActivityOutcome", new[] { "ActivityID" });
- DropIndex("bbsf.WorkflowActivityOutcome", new[] { "SysName" });
- DropIndex("bbsf.WorkflowLog", new[] { "CompletedByUserID" });
- DropIndex("bbsf.WorkflowLog", new[] { "ActivityOutcomeID" });
- DropIndex("bbsf.WorkflowLog", new[] { "ActivityID" });
- DropIndex("bbsf.WorkflowLog", new[] { "WorkflowVersionID" });
- DropIndex("bbsf.WorkflowLog", new[] { "InstanceID" });
- DropIndex("bbsf.WorkflowLogVariable", new[] { "ActivityVariableID" });
- DropIndex("bbsf.WorkflowLogVariable", new[] { "LogID" });
- DropIndex("bbsf.WorkflowActivityVariable", new[] { "VariableID" });
- DropIndex("bbsf.WorkflowActivityVariable", new[] { "ActivityID" });
- DropIndex("bbsf.WorkflowActivity", new[] { "TemplateID" });
- DropIndex("bbsf.WorkflowActivity", new[] { "ActivityTypeItemID" });
- DropIndex("bbsf.WorkflowActivity", new[] { "WorkflowVersionID" });
- DropIndex("bbsf.WorkflowActivity", new[] { "SysName" });
- DropIndex("dbo.Stage", new[] { "StageTemplateID" });
- DropIndex("dbo.Stage", new[] { "MonitoringID" });
- DropIndex("dbo.Stage", new[] { "PlaningID" });
- DropIndex("dbo.Stage", new[] { "AnalysisID" });
- DropIndex("dbo.ActivityComment", new[] { "ActivityID" });
- DropIndex("dbo.Activity", new[] { "ActivityTemplateID" });
- DropIndex("dbo.Activity", new[] { "StatusItemID" });
- DropIndex("dbo.Activity", new[] { "StageID" });
- DropIndex("dbo.Risk", new[] { "ProbabilityItemID" });
- DropIndex("dbo.Risk", new[] { "ImpactItemID" });
- DropIndex("dbo.Risk", new[] { "StatusItemID" });
- DropIndex("dbo.Risk", new[] { "ProjectID" });
- DropIndex("dbo.ProjectTask", new[] { "MileStoneID" });
- DropIndex("dbo.ProjectTask", new[] { "ParentTaskID" });
- DropIndex("dbo.Milestone", new[] { "ProjectID" });
- DropIndex("dbo.Project_Member", new[] { "UserID" });
- DropIndex("dbo.Project_Member", new[] { "ProjectID" });
- DropIndex("dbo.Issue", new[] { "ProjectID" });
- DropIndex("dbo.Folder", new[] { "ProjectID" });
- DropIndex("dbo.Folder", new[] { "ParentFolderID" });
- DropIndex("dbo.Deliverable", new[] { "FileID" });
- DropIndex("dbo.Deliverable", new[] { "ProjectID" });
- DropIndex("dbo.Project", new[] { "IdeaID" });
- DropIndex("dbo.Project", new[] { "ManagerID" });
- DropIndex("dbo.Team_User", new[] { "TeamID" });
- DropIndex("dbo.Team_User", new[] { "UserID" });
- DropIndex("dbo.Team", new[] { "InnovationLabID" });
- DropIndex("dbo.Agenda", new[] { "InnovationLabID" });
- DropIndex("dbo.InnovationLab", new[] { "OwnerID" });
- DropIndex("dbo.Title", new[] { "ChallengeID" });
- DropIndex("dbo.Title", new[] { "AreaOfFocusID" });
- DropIndex("dbo.Title", new[] { "GoalID" });
- DropIndex("dbo.Idea_RelatedIdea", new[] { "Idea_ID" });
- DropIndex("dbo.Idea_RelatedIdea", new[] { "RelatedIdeaID" });
- DropIndex("dbo.Idea_RelatedIdea", new[] { "IdeaID" });
- DropIndex("dbo.IdeaVersion_File", new[] { "FileID" });
- DropIndex("dbo.IdeaVersion_File", new[] { "IdeaVersionID" });
- DropIndex("dbo.IdeaVersion_File", new[] { "IdeaID" });
- DropIndex("dbo.IdeaVersion", new[] { "IdeaID" });
- DropIndex("dbo.IdeaVersion_Correlation", new[] { "IdeaVersionID" });
- DropIndex("dbo.IdeaVersion_Correlation", new[] { "IdeaID" });
- DropIndex("dbo.IdeaField", new[] { "MultiSelectLookupID" });
- DropIndex("dbo.IdeaField", new[] { "LangValidationItemID" });
- DropIndex("dbo.IdeaField", new[] { "WidthTypeItemID" });
- DropIndex("dbo.IdeaField", new[] { "DataTypeItemID" });
- DropIndex("dbo.IdeaFieldValue", new[] { "FileOrImageID" });
- DropIndex("dbo.IdeaFieldValue", new[] { "IdeaFieldID" });
- DropIndex("dbo.IdeaFieldValue", new[] { "IdeaID" });
- DropIndex("dbo.Idea_Contributor", new[] { "ContributorTypeItemID" });
- DropIndex("dbo.Idea_Contributor", new[] { "UserID" });
- DropIndex("dbo.Idea_Contributor", new[] { "IdeaID" });
- DropIndex("dbo.EvaluationPanel_User", new[] { "EvaluationPanelID" });
- DropIndex("dbo.EvaluationPanel_User", new[] { "UserID" });
- DropIndex("dbo.EvaluationPanel", new[] { "EvaluationCriteriaID" });
- DropIndex("dbo.Idea_CriterionScore", new[] { "UserID" });
- DropIndex("dbo.Idea_CriterionScore", new[] { "CriterionID" });
- DropIndex("dbo.Idea_CriterionScore", new[] { "IdeaID" });
- DropIndex("dbo.Criterion", new[] { "EvaluationCriteriaID" });
- DropIndex("dbo.IdeaInteraction", new[] { "CommentID" });
- DropIndex("dbo.IdeaInteraction", new[] { "UserID" });
- DropIndex("dbo.IdeaInteraction", new[] { "InteractionTypeItemID" });
- DropIndex("dbo.IdeaInteraction", new[] { "IdeaID" });
- DropIndex("bbsf.UserInfo", new[] { "Token" });
- DropIndex("bbsf.UserInfo", new[] { "UserID" });
- DropIndex("bbsf.ChatUnreadMessage", new[] { "UserID" });
- DropIndex("bbsf.ChatUnreadMessage", new[] { "RoomID" });
- DropIndex("bbsf.ChatRoom", new[] { "RoomTypeItemID" });
- DropIndex("bbsf.ChatMessageAttachment", new[] { "ChatMessage_ID" });
- DropIndex("bbsf.ChatMessageAttachment", new[] { "AttachmentTypeItemID" });
- DropIndex("bbsf.ChatMessage", new[] { "OwnerID" });
- DropIndex("bbsf.ChatMessage", new[] { "MessageTypeItemID" });
- DropIndex("bbsf.ChatMessage", new[] { "RoomID" });
- DropIndex("bbsf.ProviderAttribute", new[] { "ProviderId" });
- DropIndex("bbsf.TemplateInfo", new[] { "EmailHeaderAndFooterTemplateID" });
- DropIndex("bbsf.TemplateInfo", new[] { "TemplateID" });
- DropIndex("bbsf.TemplateInfo", new[] { "LanguageModeItemID" });
- DropIndex("bbsf.Template", new[] { "OrganizationID" });
- DropIndex("bbsf.Template", new[] { "SysName" });
- DropIndex("bbsf.Template", new[] { "CategoryItemID" });
- DropIndex("bbsf.Lookup", new[] { "SysName" });
- DropIndex("bbsf.Lookup", new[] { "LookupGroupID" });
- DropIndex("bbsf.Provider", new[] { "OrganizationID" });
- DropIndex("bbsf.Provider", new[] { "Name" });
- DropIndex("bbsf.Provider", new[] { "ProviderTypeItemID" });
- DropIndex("bbsf.PermissionSet", new[] { "OrganizationID" });
- DropIndex("bbsf.PermissionSet", new[] { "SysName" });
- DropIndex("bbsf.Permission", new[] { "OrganizationID" });
- DropIndex("bbsf.Permission", new[] { "SysName" });
- DropIndex("bbsf.File", new[] { "ID_GUID" });
- DropIndex("bbsf.UserConnection", new[] { "UserID" });
- DropIndex("bbsf.User", new[] { "ChatRoom_ID" });
- DropIndex("bbsf.User", new[] { "SmallImageFileID" });
- DropIndex("bbsf.User", new[] { "LargeImageFileID" });
- DropIndex("bbsf.User", new[] { "OriginalImageFileID" });
- DropIndex("bbsf.User", new[] { "Username" });
- DropIndex("bbsf.User", new[] { "OrganizationID" });
- DropIndex("dbo.IdeaCommentReport", new[] { "UserID" });
- DropIndex("dbo.IdeaCommentReport", new[] { "IdeaCommentID" });
- DropIndex("dbo.IdeaComment", new[] { "ParentCommentID" });
- DropIndex("dbo.IdeaComment", new[] { "UserID" });
- DropIndex("dbo.IdeaComment", new[] { "IdeaID" });
- DropIndex("dbo.Idea", new[] { "EvaluationCriteriaID" });
- DropIndex("dbo.Idea", new[] { "StatusItemID" });
- DropIndex("dbo.Idea", new[] { "OwnerID" });
- DropIndex("dbo.MindMap", new[] { "UserID" });
- DropIndex("dbo.MindMap", new[] { "LabID" });
- DropIndex("dbo.MindMap", new[] { "FocuseID" });
- DropIndex("dbo.MindMap", new[] { "ChallengeID" });
- DropIndex("dbo.MindMap", new[] { "GoalID" });
- DropIndex("dbo.MindMap", new[] { "IdeaID" });
- DropIndex("dbo.MindMap", new[] { "ProjectID" });
- DropIndex("dbo.AreaOfFocus", new[] { "TypeID" });
- DropIndex("dbo.IdeaFieldValue_Relation", new[] { "LookupItemID" });
- DropIndex("dbo.IdeaFieldValue_Relation", new[] { "InnvoationLabID" });
- DropIndex("dbo.IdeaFieldValue_Relation", new[] { "AreaOfFocusID" });
- DropIndex("dbo.IdeaFieldValue_Relation", new[] { "GoalID" });
- DropIndex("dbo.IdeaFieldValue_Relation", new[] { "ChallengeID" });
- DropIndex("dbo.IdeaFieldValue_Relation", new[] { "IdeaFieldValueID" });
- DropIndex("bbsf.LookupItem", new[] { "LookupID" });
- DropIndex("bbsf.LookupItem", new[] { "SysName" });
- DropIndex("dbo.Achievement", new[] { "RewardTypeID" });
- DropIndex("dbo.Achievement", new[] { "BadgeID" });
- DropTable("bbsf.WorkflowInstanceVariable_VariableLookup");
- DropTable("dbo.TitleTag");
- DropTable("dbo.TagIdea");
- DropTable("bbsf.ChatMessage_SeenBy");
- DropTable("bbsf.PermissionSet_User");
- DropTable("bbsf.PermissionSet_Permission");
- DropTable("dbo.UserMenu");
- DropTable("dbo.Topic");
- DropTable("dbo.TopicCategory");
- DropTable("dbo.SignalRConnection");
- DropTable("dbo.Notification");
- DropTable("dbo.NotificationClientUser");
- DropTable("dbo.Localization");
- DropTable("dbo.LibraryResource");
- DropTable("dbo.Invoice");
- DropTable("dbo.IdeaWFMapping");
- DropTable("bbsf.FormsHubConnection");
- DropTable("dbo.DraftIdea");
- DropTable("bbsf.Country");
- DropTable("dbo.ModuleTopic");
- DropTable("dbo.Module");
- DropTable("dbo.Chapter");
- DropTable("dbo.ChallengeComment");
- DropTable("dbo.ChallengeCommentReport");
- DropTable("dbo.CaseStudyComment");
- DropTable("dbo.CaseStudyCommentReport");
- DropTable("dbo.CaseStudy");
- DropTable("bbsf.BTimeZone");
- DropTable("dbo.SessionInstance_ToolPerspectiveElement");
- DropTable("dbo.ToolPerspective");
- DropTable("dbo.Tool");
- DropTable("dbo.Session_Tool");
- DropTable("dbo.Session");
- DropTable("dbo.SessionInstance");
- DropTable("dbo.SessionInstance_Element");
- DropTable("dbo.Element");
- DropTable("dbo.BrainstormingSession_ToolPerspectiveElement");
- DropTable("dbo.BrainstormingSession");
- DropTable("dbo.BrainstormingSession_Element");
- DropTable("bbsf.Participant");
- DropTable("bbsf.Workflow");
- DropTable("bbsf.WorkflowVersion");
- DropTable("bbsf.WorkflowVariable");
- DropTable("bbsf.WorkflowVariableLookup");
- DropTable("bbsf.WorkflowInstanceVariable");
- DropTable("bbsf.TMETask");
- DropTable("bbsf.WorkflowInstanceTask");
- DropTable("bbsf.WorkflowInstanceComment");
- DropTable("bbsf.WorkflowError");
- DropTable("bbsf.WorkflowInstance");
- DropTable("bbsf.WorkflowActivityOutcome");
- DropTable("bbsf.WorkflowLog");
- DropTable("bbsf.WorkflowLogVariable");
- DropTable("bbsf.WorkflowActivityVariable");
- DropTable("bbsf.WorkflowActivity");
- DropTable("dbo.StageTemplate");
- DropTable("dbo.IMOPlanning");
- DropTable("dbo.IMOMonitoring");
- DropTable("dbo.IMOAnalysis");
- DropTable("dbo.Stage");
- DropTable("dbo.ActivityComment");
- DropTable("dbo.ActivityTemplate");
- DropTable("dbo.Activity");
- DropTable("dbo.Risk");
- DropTable("dbo.ProjectTask");
- DropTable("dbo.Milestone");
- DropTable("dbo.Project_Member");
- DropTable("dbo.Issue");
- DropTable("dbo.Folder");
- DropTable("dbo.Deliverable");
- DropTable("dbo.Project");
- DropTable("dbo.Team_User");
- DropTable("dbo.Team");
- DropTable("dbo.Agenda");
- DropTable("dbo.InnovationLab");
- DropTable("dbo.Title");
- DropTable("dbo.Tag");
- DropTable("dbo.Idea_RelatedIdea");
- DropTable("dbo.IdeaVersion_File");
- DropTable("dbo.IdeaVersion");
- DropTable("dbo.IdeaVersion_Correlation");
- DropTable("dbo.IdeaField");
- DropTable("dbo.IdeaFieldValue");
- DropTable("dbo.Idea_Contributor");
- DropTable("dbo.EvaluationPanel_User");
- DropTable("dbo.EvaluationPanel");
- DropTable("dbo.Idea_CriterionScore");
- DropTable("dbo.Criterion");
- DropTable("dbo.EvaluationCriteria");
- DropTable("dbo.IdeaInteraction");
- DropTable("bbsf.UserInfo");
- DropTable("bbsf.ChatUnreadMessage");
- DropTable("bbsf.ChatRoom");
- DropTable("bbsf.ChatMessageAttachment");
- DropTable("bbsf.ChatMessage");
- DropTable("bbsf.ProviderAttribute");
- DropTable("bbsf.EmailHeaderAndFooterTemplate");
- DropTable("bbsf.TemplateInfo");
- DropTable("bbsf.Template");
- DropTable("bbsf.LookupGroup");
- DropTable("bbsf.Lookup");
- DropTable("bbsf.Provider");
- DropTable("bbsf.PermissionSet");
- DropTable("bbsf.Permission");
- DropTable("bbsf.Organization");
- DropTable("bbsf.File");
- DropTable("bbsf.UserConnection");
- DropTable("bbsf.User");
- DropTable("dbo.IdeaCommentReport");
- DropTable("dbo.IdeaComment");
- DropTable("dbo.Idea");
- DropTable("dbo.Goal");
- DropTable("dbo.Challenge");
- DropTable("dbo.MindMap");
- DropTable("dbo.AreaOfFocus");
- DropTable("dbo.IdeaFieldValue_Relation");
- DropTable("bbsf.LookupItem");
- DropTable("dbo.Badge");
- DropTable("dbo.Achievement");
- DropTable("bbsf._BMigrationHistory");
- }
- public override void Up_Seed(ClientAppContext context)
- {
- InitialCreate_201808111143070(context);
- addUserArea_201808131504466(context);
- seedingHelpCategoriesAndTopics_201808150840458(context);
- toolNewFields_201810301243397(context);
- toolChangesNewType_201811041132173(context);
- IdeaFeatures_201811221145569(context);
- NewCommentInteractionType_201811261330396(context);
- IdeaStatus_201812161514534(context);
- StatusDescriptionFix_201812161514534(context);
- AddActivityStatus_201812191329286(context);
- AddActivityStatusLookupItemAndIdeaFieldIsShown_201812230911239(context);
- SeedRiskLookups_201812251356131(context);
- SeedInvoiceLookupsAndAddGUID_201812300957349(context);
- userMenues_201901021257065(context);
- SeedingEvaluationPanelTopic_201901031204521(context);
- MindMap_201901031609167(context);
- AddMindMapUserMenue_201901081221098(context);
- EditUserMenuesSeed_201901131036499(context);
- EditDatatypeLookupDataSeed_201901141517533(context);
- IdeaStatusAndInstance_201901161239534(context);
- BrainStormingTopicCategories_201901171210047(context);
- addBrainsormingMenue_201901201328270(context);
- AddInnovationLabToDataTypelookup_201901211200465(context);
- }
- public void InitialCreate_201808111143070(ClientAppContext context)
- {
- CreateTemplates(context);
- CreateLookups(context);
- CreateNewUser(context);
- }
- public void CreateTemplates(ClientAppContext context)
- {
- var baseTemplate = context.EmailHeaderAndFooterTemplates.FirstOrDefault(t => t.NameEN == "Base Template");
- // new challenge Email Template
- context.TemplateInfos.Add(new TemplateInfo()
- {
- ID = 3,
- EmailSubjectEN = " New created challenge",
- EmailSubjectAR = "تحدي جديد",
- EmailBodyEN = "<table lang=\"en\" style=\"border: 1px solid #bfbfbf; width: 60%;font-family: Arial, Helvetica, sans-serif; font-size: 25px;\" cellspacing=\"0\" align=\"center\"> <tbody> <tr style=\"margin-left:20px;\" colspan=\"2\"> <td style=\"padding: 10px;padding-left:25px;font-family: Arial, Helvetica, sans-serif; font-size: 25px; width: 109%; height: 348px;\" colspan=\"2\"> <p>Hello #NameEN#,</p><br><p>New Created Challenge .</p><br><p>Best Regards,</p></td></tr></tbody></table>",
- EmailBodyAR = "<table lang =\"ar-sa\" style = \"border: 1px solid #bfbfbf; width: 60%;font-family: Arial, Helvetica, sans-serif; font-size: 25px;\" cellspacing =\"0\" align =\"center\">< tbody ><tr><td style =\"padding: 0px; text-align: right; font-size: 25px;\"><p style=\"direction:rtl; text-align: right;\" > مرحبا #NameAR#</p><p style=\"direction: rtl; text-align: right;\"><br></p><p style=\"direction: rtl; text-align: right;\"> تم إنشاء تحدي جديد .</p><br><p style=\"direction: rtl; text-align: right;\">مع خالص الشكر والتقدير،،،</p></td></tr></tbody></table>",
- SmsEN = "You received an Notfication Mail in your inbox\r\n(#Email#)",
- SmsAR = "لقد تلقيت رسالة إخطار في بريدك الوارد\r\n(#Email#)",
- EmailHtmlBodyTagAttributesEN = "style=\"direction:ltr;text-align: left;\"",
- EmailHtmlBodyTagAttributesAR = "style=\"direction:rtl;text-align: right;\"",
- LanguageModeItemID = 11001,
- EmailHeaderAndFooterTemplate = baseTemplate,
- Template = new Template()
- {
- CategoryItemID = 12001,
- NameEN = " New created challenge Notification Template",
- NameAR = "قالب إخطار التحدي الجديد",
- DescriptionEN = "New created challenge Notification Template",
- DescriptionAR = "قالب إخطار التحدي الجديد",
- IsEmail = true,
- IsSms = false,
- OrganizationID = 1,
- EnableIntensiveLogging = false,
- }
- });
- //update Existing Notification Template
- context.TemplateInfos.Add(new TemplateInfo()
- {
- ID = 4,
- EmailSubjectEN = " Existing Challenge changed",
- EmailSubjectAR = "تعديل التحدي",
- EmailBodyEN = "<table lang=\"en\" style=\"border: 1px solid #bfbfbf; width: 60%;font-family: Arial, Helvetica, sans-serif; font-size: 25px;\" cellspacing=\"0\" align=\"center\"> <tbody> <tr style=\"margin-left:20px;\" colspan=\"2\"> <td style=\"padding: 10px;padding-left:25px;font-family: Arial, Helvetica, sans-serif; font-size: 25px; width: 109%; height: 348px;\" colspan=\"2\"> <p>Hello #NameEN#,</p><br><p>Existing Challenge changed .</p><br><p>Best Regards,</p></td></tr></tbody></table>",
- EmailBodyAR = "<table lang =\"ar-sa\" style = \"border: 1px solid #bfbfbf; width: 60%;font-family: Arial, Helvetica, sans-serif; font-size: 25px;\" cellspacing =\"0\" align =\"center\">< tbody ><tr><td style =\"padding: 0px; text-align: right; font-size: 25px;\"><p style=\"direction:rtl; text-align: right;\" > مرحبا #NameAR#</p><p style=\"direction: rtl; text-align: right;\"><br></p><p style=\"direction: rtl; text-align: right;\"> تم تعديل التحدي .</p><br><p style=\"direction: rtl; text-align: right;\">مع خالص الشكر والتقدير،،،</p></td></tr></tbody></table>",
- SmsEN = "You received an Notfication Mail in your inbox\r\n(#Email#)",
- SmsAR = "لقد تلقيت رسالة إخطار في بريدك الوارد\r\n(#Email#)",
- EmailHtmlBodyTagAttributesEN = "style=\"direction:ltr;text-align: left;\"",
- EmailHtmlBodyTagAttributesAR = "style=\"direction:rtl;text-align: right;\"",
- LanguageModeItemID = 11001,
- EmailHeaderAndFooterTemplate = baseTemplate,
- Template = new Template()
- {
- CategoryItemID = 12001,
- NameEN = " Existing Challenge changed Notification Template",
- NameAR = "قالب إخطار تعديل التحدي ",
- DescriptionEN = " Existing Challenge changed Notification Template",
- DescriptionAR = "قالب إخطار تعديل التحدي ",
- IsEmail = true,
- IsSms = false,
- OrganizationID = 1,
- EnableIntensiveLogging = false,
- }
- });
- }
- public void CreateLookups(ClientAppContext context)
- {
- //Achivement types
- context.Lookups.Add(new Lookup()
- {
- ID = 50,
- NameEN = "Reward Type",
- NameAR = "نوع الجائزة",
- DescriptionEN = "Reward Type",
- DescriptionAR = " نوع الجائزة",
- Manageable = true,
- SysName = "RewardType"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 50001,
- NameEN = "Comment",
- NameAR = "تعليق",
- DisplayOrder = 0,
- LookupID = 50,
- Manageable = true,
- SysName = "Comment"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 50002,
- NameEN = "Reaching certain Point",
- NameAR = "الوصول الي نقطة معينة",
- DisplayOrder = 0,
- LookupID = 50,
- Manageable = true,
- SysName = "ReachingPoint"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 50003,
- NameEN = "Submitting Idea",
- NameAR = "تقديم الفكرة",
- DisplayOrder = 0,
- LookupID = 50,
- Manageable = true,
- SysName = "IdeaSubmit"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 50004,
- NameEN = "Approved Idea",
- NameAR = "الفكرة المعتمدة ",
- DisplayOrder = 0,
- LookupID = 50,
- Manageable = true,
- SysName = "ApproveIdea"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 50005,
- NameEN = "Projectized Idea",
- NameAR = "فكرة مخططة",
- DisplayOrder = 0,
- LookupID = 50,
- Manageable = true,
- SysName = "IdeaProjectize"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 50006,
- NameEN = "Vote",
- NameAR = "تصويت",
- DisplayOrder = 0,
- LookupID = 50,
- Manageable = true,
- SysName = "Vote"
- });
- //Areas of focus type
- context.Lookups.Add(new Lookup()
- {
- ID = 51,
- NameEN = "Areas of focus Type",
- NameAR = "نوع مجالات التركيز",
- DescriptionEN = "Areas of focus Type",
- DescriptionAR = "نوع مجالات التركيز",
- Manageable = true,
- SysName = "AreaOfFocusType"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 51001,
- NameEN = " Internal",
- NameAR = "داخلي",
- DisplayOrder = 0,
- LookupID = 51,
- Manageable = true,
- SysName = "Internal"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 51002,
- NameEN = "External",
- NameAR = "خارجي",
- DisplayOrder = 0,
- LookupID = 51,
- Manageable = true,
- SysName = "External"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 51003,
- NameEN = "National",
- NameAR = "دولي",
- DisplayOrder = 0,
- LookupID = 51,
- Manageable = true,
- SysName = "National"
- });
- // Add Category lookup
- context.Lookups.Add(new Lookup()
- {
- ID = 52,
- NameEN = "Topics Category Type",
- NameAR = "الفئة",
- DescriptionEN = "Topics Category Type",
- DescriptionAR = "الفئة",
- Manageable = true,
- SysName = "CategoryType"
- });
- // Add Tool Category lookup
- context.Lookups.Add(new Lookup()
- {
- ID = 53,
- NameEN = "Tool Category Type",
- NameAR = "الفئة",
- DescriptionEN = "Tool Category Type",
- DescriptionAR = "الفئة",
- Manageable = true,
- SysName = "ToolCategoryType"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 53001,
- NameEN = "Look Ahead",
- NameAR = "انظر الى الامام",
- DisplayOrder = 0,
- LookupID = 53,
- Manageable = true,
- SysName = "LookAhead"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 53002,
- NameEN = "Develop a Clear Plan",
- NameAR = "تطوير خطة واضحة",
- DisplayOrder = 0,
- LookupID = 53,
- Manageable = true,
- SysName = "DevelopPlan"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 53003,
- NameEN = "Test and Improve ",
- NameAR = "اختبار وتحسين",
- DisplayOrder = 0,
- LookupID = 53,
- Manageable = true,
- SysName = "TestAndImprove"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 53004,
- NameEN = "Collect Inputs from Others ",
- NameAR = "جمع المدخلات من الآخرين",
- DisplayOrder = 0,
- LookupID = 53,
- Manageable = true,
- SysName = "CollectInputFromOthers"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 53005,
- NameEN = "Generate new Ideas ",
- NameAR = "توليد أفكار جديدة",
- DisplayOrder = 0,
- LookupID = 53,
- Manageable = true,
- SysName = "GenerateIdea"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 53006,
- NameEN = "Sustain and Implement ",
- NameAR = "استدامة وتنفيذ",
- DisplayOrder = 0,
- LookupID = 53,
- Manageable = true,
- SysName = "SustainAndImplement"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 53007,
- NameEN = "Organizational Analysis",
- NameAR = "التحليل التنظيمي",
- DisplayOrder = 0,
- LookupID = 53,
- Manageable = true,
- SysName = "OrganizationalAnalysis"
- });
- // add tool display template
- context.Lookups.Add(new Lookup()
- {
- ID = 54,
- NameEN = "Tool Display Template Type",
- NameAR = "نوع النموذج المستخدم للأداة ",
- DescriptionEN = "Tool Display Template Type",
- DescriptionAR = "نوع النموذج المستخدم للأداة",
- Manageable = true,
- SysName = "ToolDisplayTemplateType"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 54001,
- NameEN = "2*2 Column",
- NameAR = "2*2 طولي ",
- DisplayOrder = 0,
- LookupID = 54,
- Manageable = true,
- SysName = "2x2 Colum Type"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 54002,
- NameEN = "3*3 column",
- NameAR = "3*3 طولي",
- DisplayOrder = 0,
- LookupID = 54,
- Manageable = true,
- SysName = "3x3 Colum Type"
- });
- // add Rescource category
- context.Lookups.Add(new Lookup()
- {
- ID = 55,
- NameEN = "Library Resource Category",
- NameAR = "نوع الموارد",
- DescriptionEN = "Library Resource Category",
- DescriptionAR = "نوع الموارد",
- Manageable = true,
- SysName = "LibraryResourceCategory"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 55001,
- NameEN = "Reports",
- NameAR = "تقارير ",
- DisplayOrder = 0,
- LookupID = 55,
- Manageable = true,
- SysName = "Reports"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 55002,
- NameEN = "Templates",
- NameAR = "نماذج",
- DisplayOrder = 0,
- LookupID = 55,
- Manageable = true,
- SysName = "Templates"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 55003,
- NameEN = "Process",
- NameAR = "معالجة",
- DisplayOrder = 0,
- LookupID = 55,
- Manageable = true,
- SysName = "Process"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 55004,
- NameEN = "References",
- NameAR = "مراجع",
- DisplayOrder = 0,
- LookupID = 55,
- Manageable = true,
- SysName = "References"
- });
- // add CaseStudy Categories
- context.Lookups.Add(new Lookup()
- {
- ID = 56,
- NameEN = "Case Study Category",
- NameAR = "نوع دراسة الحالة",
- DescriptionEN = "Case Study Category",
- DescriptionAR = "نوع دراسة الحالة",
- Manageable = true,
- SysName = "CaseStudyCategory"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 56001,
- NameEN = "Product",
- NameAR = "منتج",
- DisplayOrder = 0,
- LookupID = 56,
- Manageable = true,
- SysName = "Product"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 56002,
- NameEN = "Services",
- NameAR = "خدمات",
- DisplayOrder = 0,
- LookupID = 56,
- Manageable = true,
- SysName = "Services"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 56003,
- NameEN = "Business Model",
- NameAR = "نموذج عمل",
- DisplayOrder = 0,
- LookupID = 56,
- Manageable = true,
- SysName = "BusinessModel"
- });
- // add LangValidation Categories
- context.Lookups.Add(new Bnsights.CoreLib.Model.Lookup()
- {
- ID = 57,
- NameEN = "Validation Language",
- NameAR = "لغة التحقق",
- DescriptionEN = "Validation Language",
- DescriptionAR = "لغة التحقق",
- Manageable = true,
- SysName = "ValidationLanguage"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 57001,
- NameEN = "English",
- NameAR = "اللغة الإنجليزية",
- DisplayOrder = 1,
- LookupID = 57,
- Manageable = false,
- SysName = "EnglishLkupItem"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 57002,
- NameEN = "Arabic",
- NameAR = "اللغة العربية",
- DisplayOrder = 1,
- LookupID = 57,
- Manageable = false,
- SysName = "ArabicLkupItem"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 57003,
- NameEN = "Any",
- NameAR = "أيهما",
- DisplayOrder = 1,
- LookupID = 57,
- Manageable = false,
- SysName = "AnyLkupItem"
- });
- // add DataTypes Categories
- context.Lookups.Add(new Bnsights.CoreLib.Model.Lookup()
- {
- ID = 58,
- NameEN = "Data Types",
- NameAR = "انواع البيانات",
- DescriptionEN = "Data Types",
- DescriptionAR = "انواع البيانات",
- Manageable = true,
- SysName = "DataTypes58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58001,
- NameEN = "Text",
- NameAR = "نص كتابي",
- DisplayOrder = 1,
- LookupID = 58,
- Manageable = false,
- SysName = "Text58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58002,
- NameEN = "MultiLine Text",
- NameAR = "نص متعدد الخطوط",
- DisplayOrder = 2,
- LookupID = 58,
- Manageable = false,
- SysName = "MultiLineText58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58003,
- NameEN = "HTML",
- NameAR = "نص رمزي",
- DisplayOrder = 3,
- LookupID = 58,
- Manageable = false,
- SysName = "Html58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58004,
- NameEN = "Number",
- NameAR = "رقم",
- DisplayOrder = 4,
- LookupID = 58,
- Manageable = false,
- SysName = "Nunmber58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58005,
- NameEN = "Multiple Select",
- NameAR = "متعدد الأختيارات",
- DisplayOrder = 5,
- LookupID = 58,
- Manageable = false,
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58006,
- NameEN = "Image",
- NameAR = "صورة",
- DisplayOrder = 6,
- LookupID = 58,
- Manageable = false,
- SysName = "Image58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58007,
- NameEN = "File",
- NameAR = "ملف",
- DisplayOrder = 7,
- LookupID = 58,
- Manageable = false,
- SysName = "File58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58008,
- NameEN = "MultiFile",
- NameAR = "ملفات متعددة",
- DisplayOrder = 8,
- LookupID = 58,
- Manageable = false,
- SysName = "MultiFile58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58009,
- NameEN = "True/False",
- NameAR = "صح/خطا",
- DisplayOrder = 9,
- LookupID = 58,
- Manageable = false,
- SysName = "TrueFalse"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58010,
- NameEN = "Single Select",
- NameAR = "ذاتي الأختيار",
- DisplayOrder = 10,
- LookupID = 58,
- Manageable = false,
- SysName = "SingleSelect58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58011,
- NameEN = "Date",
- NameAR = "التاريخ",
- DisplayOrder = 11,
- LookupID = 58,
- Manageable = false,
- SysName = "Date58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58012,
- NameEN = "DateTime",
- NameAR = "تاريخ الوقت",
- DisplayOrder = 12,
- LookupID = 58,
- Manageable = false,
- SysName = "DateTime58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58013,
- NameEN = "Time",
- NameAR = "توقيت",
- DisplayOrder = 13,
- LookupID = 58,
- Manageable = false,
- SysName = "Time58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58014,
- NameEN = "Location",
- NameAR = "موقع",
- DisplayOrder = 14,
- LookupID = 58,
- Manageable = false,
- SysName = "Location58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58015,
- NameEN = "Tags",
- NameAR = "مواضيع",
- DisplayOrder = 15,
- LookupID = 58,
- Manageable = false,
- SysName = "Tags58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58016,
- NameEN = "Goal",
- NameAR = "هدف",
- DisplayOrder = 16,
- LookupID = 58,
- Manageable = false,
- SysName = "Goal58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58017,
- NameEN = "Challenge",
- NameAR = "تحدي",
- DisplayOrder = 17,
- LookupID = 58,
- Manageable = false,
- SysName = "Challenge58"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58018,
- NameEN = "Areas of Focus",
- NameAR = "مجالات التركيز",
- DisplayOrder = 18,
- LookupID = 58,
- Manageable = false,
- SysName = "AreasOfFocus58"
- });
- context.Lookups.Add(new Bnsights.CoreLib.Model.Lookup()
- {
- ID = 59,
- NameEN = "Display Style",
- NameAR = "نوع العرض",
- DescriptionEN = "Display Style",
- DescriptionAR = "نوع العرض",
- Manageable = true,
- SysName = "DisplayStyle59"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 59001,
- NameEN = "Full Width",
- NameAR = "عرض كامل",
- DisplayOrder = 1,
- LookupID = 59,
- Manageable = false,
- SysName = "FullWidth59"
- });
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 59002,
- NameEN = "Half Width",
- NameAR = "نصف عرض",
- DisplayOrder = 2,
- LookupID = 59,
- Manageable = false,
- SysName = "HalfWidth59"
- });
- }
- public void CreateNewUser(ClientAppContext context)
- {
- Organization org = context.Organizations.First();
- context.InsertPermissionSet(new Bnsights.CoreLib.Model.PermissionSet()
- {
- ID = (int)PermissionSets.User,
- NameEN = "User",
- NameAR = "مستخدم",
- Organization = org,
- SysName = "User"
- });
- Bnsights.CoreLib.Model.PermissionSet memberPscid = context.PermissionSets.Find((int)PermissionSets.User);
- Bnsights.CoreLib.Common.StringHelper.RandomStringGenerator gen = new Bnsights.CoreLib.Common.StringHelper.RandomStringGenerator(UseSpecialCharacters: false);
- context.Users.Add(new User
- {
- Username = "allusers@bnsights.com",
- LanguageKey = "en",
- NameAR = "عضو جديد",
- NameEN = "New Member",
- PermissionSets = new List<Bnsights.CoreLib.Model.PermissionSet>() { memberPscid },
- PermissionSetSID = memberPscid.ID.ToString(),
- UserInfos = new List<UserInfo>()
- {
- new UserInfo()
- {
- ID = 2,
- ActivationDate = DateTime.UtcNow,
- CanLogin = true,
- Email ="allusers@bnsights.com",
- IsActive = true,
- IsLicensed = true,
- LastPasswordChangeDate = DateTime.UtcNow,
- Password = "1000:jEv6ncBiS3w/8n2E6HdkwyssR0a/tAew:42sosC/iHbZ1hU6OaZf2t9MkTWMELzXz",
- Token = gen.Generate(25),
- Token_CanExpire = true,
- Token_IsCompleted = true,
- }
- },
- Organization = org,
- });
- }
- public void addUserArea_201808131504466(ClientAppContext context)
- {
- Bnsights.CoreLib.Common.StringHelper.RandomStringGenerator gen = new Bnsights.CoreLib.Common.StringHelper.RandomStringGenerator(UseSpecialCharacters: false);
- Organization org = context.Organizations.First();
- var user = context.PermissionSets.Find((int)PermissionSets.User);
- context.Users.Add(new User()
- {
- Username = "user@bnsights.com",
- LanguageKey = "en",
- NameAR = "مستخدم",
- NameEN = "USer",
- PermissionSets = new List<PermissionSet>() { user
- },
- PermissionSetSID = user.ID.ToString(),
- UserInfos = new List<UserInfo>()
- {
- new UserInfo()
- {
- ID =3 ,
- ActivationDate = DateTime.UtcNow,
- CanLogin = true,
- Email = "user@bnsights.com",
- IsActive = true,
- IsLicensed = true,
- LastPasswordChangeDate = DateTime.UtcNow,
- Password = "1000:jEv6ncBiS3w/8n2E6HdkwyssR0a/tAew:42sosC/iHbZ1hU6OaZf2t9MkTWMELzXz",
- Token = gen.Generate(25),
- Token_CanExpire = true,
- Token_IsCompleted = true,
- }
- },
- Organization = org,
- });
- }
- public void seedingHelpCategoriesAndTopics_201808150840458(ClientAppContext context)
- {
- seedingTopics1(context);
- }
- public void seedingTopics1(ClientAppContext context)
- {
- context.Topics.Add(new Topic { ID = 1, TopicEN = "Achievement", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 1, NameEN = "Achievement", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 2, TopicEN = "Add Achievement ", TopicAR = "No Data", CategoryID = 1, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 3, TopicEN = "Edit Achievement", TopicAR = "No Data", CategoryID = 1, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 4, TopicEN = "Agenda", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 2, NameEN = "Agenda", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 5, TopicEN = "Add Agenda ", TopicAR = "No Data", CategoryID = 2, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 6, TopicEN = "Edit Agenda", TopicAR = "No Data", CategoryID = 2, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 7, TopicEN = "Badge", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 3, NameEN = "Badge", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 8, TopicEN = "Add Badge", TopicAR = "No Data", CategoryID = 3, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 9, TopicEN = "Edit Badge ", TopicAR = "No Data", CategoryID = 3, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 10, TopicEN = "CaseStudy", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 4, NameEN = "CaseStudy", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 11, TopicEN = "Add CaseStudy ", TopicAR = "No Data", CategoryID = 4, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 12, TopicEN = "Edit CaseStudy ", TopicAR = "No Data", CategoryID = 4, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 13, TopicEN = "Challenge", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 5, NameEN = "Challenge", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 14, TopicEN = "Add Challenge ", TopicAR = "No Data", CategoryID = 5, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 15, TopicEN = "Edit Challenge ", TopicAR = "No Data", CategoryID = 5, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 16, TopicEN = "Chapter", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 6, NameEN = "Chapter", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 17, TopicEN = "Add Chapter ", TopicAR = "No Data", Visible = true, CategoryID = 6, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 18, TopicEN = "Edit Chapter ", TopicAR = "No Data", Visible = true, CategoryID = 6, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 19, TopicEN = "Criterion", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 7, NameEN = "Criterion", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 20, TopicEN = "Add Criterion ", TopicAR = "No Data", Visible = true, CategoryID = 7, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 21, TopicEN = "Edit Criterion ", TopicAR = "No Data", Visible = true, CategoryID = 7, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 22, TopicEN = "Element", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 8, NameEN = "Element", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 23, TopicEN = "Add Element ", TopicAR = "No Data", Visible = true, CategoryID = 8, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 24, TopicEN = "EditElement ", TopicAR = "No Data", Visible = true, CategoryID = 8, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 25, TopicEN = "Evaluation Criteria", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 9, NameEN = "Evaluation Criteria", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 26, TopicEN = "Add Evaluation Criteria ", TopicAR = "No Data", Visible = true, CategoryID = 9, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 27, TopicEN = "Edit Evaluation Criteria ", TopicAR = "No Data", Visible = true, CategoryID = 9, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 28, TopicEN = "Focus ", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 10, NameEN = "Focus", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 29, TopicEN = "Add Focus ", TopicAR = "No Data", Visible = true, CategoryID = 10, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 30, TopicEN = "Edit Focus ", TopicAR = "No Data", Visible = true, CategoryID = 10, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 31, TopicEN = "Goal ", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 11, NameEN = "Goal", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 32, TopicEN = "Add Goal ", TopicAR = "No Data", Visible = true, CategoryID = 11, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 33, TopicEN = "Edit Goal ", TopicAR = "No Data", Visible = true, CategoryID = 11, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 34, TopicEN = "Help ", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 12, NameEN = "Help", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 35, TopicEN = "Add Help ", TopicAR = "No Data", Visible = true, CategoryID = 12, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 36, TopicEN = "Edit Help ", TopicAR = "No Data", Visible = true, CategoryID = 12, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 37, TopicEN = "Idea ", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 13, NameEN = "Idea", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 38, TopicEN = "Add Idea ", TopicAR = "No Data", Visible = true, CategoryID = 13, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 39, TopicEN = "Edit Idea ", TopicAR = "No Data", Visible = true, CategoryID = 13, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 40, TopicEN = "Idea Field ", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 14, NameEN = "Idea Field", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 41, TopicEN = "Add Idea Field ", TopicAR = "No Data", Visible = true, CategoryID = 14, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 42, TopicEN = "Edit Idea Field ", TopicAR = "No Data", Visible = true, CategoryID = 14, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 43, TopicEN = "Innovation lab", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 15, NameEN = "Innovation lab", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 44, TopicEN = "Add Innovation lab ", TopicAR = "No Data", Visible = true, CategoryID = 15, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 45, TopicEN = "Edit Innovation lab ", TopicAR = "No Data", Visible = true, CategoryID = 15, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 46, TopicEN = "Library Resource", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 16, NameEN = "Library Resource", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 47, TopicEN = "Add Library Resource ", TopicAR = "No Data", Visible = true, CategoryID = 16, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 48, TopicEN = "Edit Library Resource ", TopicAR = "No Data", Visible = true, CategoryID = 16, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 49, TopicEN = "Innovation HandBook", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 17, NameEN = "Module", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 50, TopicEN = "Add Innovation HandBook ", TopicAR = "No Data", Visible = true, CategoryID = 17, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 51, TopicEN = "Edit Innovation HandBook", TopicAR = "No Data", Visible = true, CategoryID = 17, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 52, TopicEN = "Module Topic", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 18, NameEN = "Module Topic", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 53, TopicEN = "Add Module Topic ", TopicAR = "No Data", Visible = true, CategoryID = 18, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 54, TopicEN = "Edit Module Topic ", TopicAR = "No Data", Visible = true, CategoryID = 18, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 55, TopicEN = "Session", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 19, NameEN = "Session", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 56, TopicEN = "Add Session ", TopicAR = "No Data", Visible = true, CategoryID = 19, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 57, TopicEN = "Edit Session ", TopicAR = "No Data", Visible = true, CategoryID = 19, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 58, TopicEN = "Team", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 20, NameEN = "Team", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 59, TopicEN = "Add Team ", TopicAR = "No Data", Visible = true, CategoryID = 20, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 60, TopicEN = "Edit Team ", TopicAR = "No Data", Visible = true, CategoryID = 20, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 61, TopicEN = "Tool", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 21, NameEN = "Tool", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 62, TopicEN = "Add Tool ", TopicAR = "No Data", Visible = true, CategoryID = 21, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 63, TopicEN = "Edit Tool ", TopicAR = "No Data", Visible = true, CategoryID = 21, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 64, TopicEN = "Topic Category", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 22, NameEN = "Topic Category", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 65, TopicEN = "Add Topic Category ", TopicAR = "No Data", Visible = true, CategoryID = 22, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 66, TopicEN = "Edit Topic Category ", TopicAR = "No Data", Visible = true, CategoryID = 22, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- }
- public void toolNewFields_201810301243397(ClientAppContext context)
- {
- var lvlOfDif = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = 60,
- NameEN = "Level Of Difficulty",
- NameAR = "مستوى الصعوبة",
- Manageable = true,
- SysName = "LevelOfDifficulty"
- };
- lvlOfDif.LookupItems.Add(new Bnsights.CoreLib.Model.LookupItem()
- {
- LookupID = 60,
- ID = 60001,
- NameEN = "Moderate",
- NameAR = "معتدل",
- SysName = "Moderate"
- });
- lvlOfDif.LookupItems.Add(new Bnsights.CoreLib.Model.LookupItem()
- {
- LookupID = 60,
- ID = 60002,
- NameEN = "Easy",
- NameAR = "سهل",
- SysName = "Easy",
- Manageable = true,
- });
- var suggestedTime = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = 61,
- NameEN = "Suggested Time",
- NameAR = "الوقت المقترح",
- SysName = "SuggestedTime",
- Manageable = true,
- };
- suggestedTime.LookupItems.Add(new Bnsights.CoreLib.Model.LookupItem()
- {
- LookupID = 61,
- ID = 61001,
- NameEN = "30 Minutes",
- NameAR = "30 دقيقة",
- SysName = "Minutes30",
- });
- suggestedTime.LookupItems.Add(new Bnsights.CoreLib.Model.LookupItem()
- {
- LookupID = 61,
- ID = 61002,
- NameEN = "60 Minutes",
- NameAR = "60 دقيقة",
- Manageable = true,
- SysName = "Minutes60",
- });
- context.Lookups.Add(lvlOfDif);
- context.Lookups.Add(suggestedTime);
- context.SaveChanges();
- }
- public void toolChangesNewType_201811041132173(ClientAppContext context)
- {
- var toolType = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = 62,
- NameEN = "Tool Type",
- NameAR = "نوع الأداة",
- SysName = "ToolType",
- Manageable = true,
- };
- toolType.LookupItems.Add(new Bnsights.CoreLib.Model.LookupItem()
- {
- LookupID = 62,
- ID = 62001,
- NameEN = "Normal Grid",
- NameAR = "الشبكة العادية",
- Manageable = true,
- SysName = "NormalGrid",
- });
- toolType.LookupItems.Add(new Bnsights.CoreLib.Model.LookupItem()
- {
- LookupID = 62,
- ID = 62002,
- NameEN = "Matrices Grid",
- NameAR = "شبكة المصفوفات",
- Manageable = true,
- SysName = "MatricesGrid",
- });
- }
- public void IdeaFeatures_201811221145569(ClientAppContext context)
- {
- var interactionType = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = (int)ClientLookups.InteractionType,
- NameEN = "Interaction Type",
- NameAR = "نوع التفاعل",
- Manageable = false,
- SysName = "InteractionType",
- };
- interactionType.LookupItems.Add(new ClientLookupItem()
- {
- LookupID = (int)ClientLookups.InteractionType,
- ID = (int)InteractionType.Like,
- NameEN = "Like",
- NameAR = "اعجاب",
- Manageable = false,
- SysName = "Like"
- });
- interactionType.LookupItems.Add(new ClientLookupItem()
- {
- LookupID = (int)ClientLookups.InteractionType,
- ID = (int)InteractionType.Dislike,
- NameEN = "Dislike",
- NameAR = "لم يعجبنى",
- Manageable = false,
- SysName = "Dislike"
- });
- interactionType.LookupItems.Add(new ClientLookupItem()
- {
- LookupID = (int)ClientLookups.InteractionType,
- ID = (int)InteractionType.Follow,
- NameEN = "Follow Idea",
- NameAR = "اتبع الفكرة",
- Manageable = false,
- SysName = "FollowIdea"
- });
- interactionType.LookupItems.Add(new ClientLookupItem()
- {
- LookupID = (int)ClientLookups.InteractionType,
- ID = (int)InteractionType.Favorite,
- NameEN = "Favorite Idea",
- NameAR = "الفكرة المفضلة",
- Manageable = false,
- SysName = "FavIdea"
- });
- context.Lookups.Add(interactionType);
- var contributorType = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = (int)ClientLookups.ContributorType,
- NameEN = "Contributor Type",
- NameAR = "نوع المساهم",
- Manageable = false,
- SysName = "ContributorType"
- };
- contributorType.LookupItems.Add(new ClientLookupItem()
- {
- LookupID = (int)ClientLookups.ContributorType,
- ID = (int)ContributorType.OwnerLike,
- NameEN = "Owner",
- NameAR = "مالك",
- Manageable = false,
- SysName = "Owner"
- });
- contributorType.LookupItems.Add(new ClientLookupItem()
- {
- LookupID = (int)ClientLookups.ContributorType,
- ID = (int)ContributorType.Secondary,
- NameEN = "Secondary Contributor",
- NameAR = "مساهم ثانوي",
- Manageable = false,
- SysName = "SecondryContributor"
- });
- context.Lookups.Add(contributorType);
- context.SaveChanges();
- }
- public void NewCommentInteractionType_201811261330396(ClientAppContext context)
- {
- context.LookupItems.Add(new Bnsights.CoreLib.Model.LookupItem()
- {
- ID = (int)InteractionType.Comment,
- LookupID = (int)ClientLookups.InteractionType,
- NameAR = "علق",
- NameEN = "Commented",
- Manageable = false,
- SysName = "Commented"
- });
- context.SaveChanges();
- }
- public void IdeaStatus_201812161514534(ClientAppContext context)
- {
- var ideaStatus = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = 65,
- NameEN = "Idea Status",
- NameAR = "حالة الفكرة",
- Manageable = false,
- SysName = "IdeaStatus"
- };
- ideaStatus.LookupItems.Add(new ClientLookupItem()
- {
- LookupID = 65,
- ID = 65001,
- NameEN = "Draft",
- NameAR = "مسودة",
- Manageable = false,
- SysName = "Draft"
- });
- ideaStatus.LookupItems.Add(new ClientLookupItem()
- {
- LookupID = 65,
- ID = 65002,
- NameEN = "Published",
- NameAR = "نشرت",
- Manageable = false,
- SysName = "Published"
- });
- context.Lookups.Add(ideaStatus);
- context.SaveChanges();
- }
- public void StatusDescriptionFix_201812161514534(ClientAppContext context)
- {
- }
- public void AddActivityStatus_201812191329286(ClientAppContext context)
- {
- var activityStatus = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = (int)ClientLookups.ActivityStatus,
- NameEN = "Activity Status",
- NameAR = "حالة النشاط",
- Manageable = false,
- SysName = "ActivityStatus"
- };
- activityStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Activitystatus.Started,
- NameEN = "Started",
- NameAR = "بدأت",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.ActivityStatus,
- Manageable = true,
- SysName = "Started"
- });
- activityStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Activitystatus.NotCompleted,
- NameEN = "Not Completed",
- NameAR = "غير مكتمل",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.ActivityStatus,
- Manageable = true,
- SysName = "NotCompleted"
- });
- activityStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Activitystatus.NotStarted,
- NameEN = "Not Started",
- NameAR = "لم يبدأ",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.ActivityStatus,
- Manageable = true,
- SysName = "NotStarted"
- });
- activityStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Activitystatus.Completed,
- NameEN = "Completed",
- NameAR = "اكتمل",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.ActivityStatus,
- Manageable = true,
- SysName = "Completed"
- });
- context.Lookups.Add(activityStatus);
- context.SaveChanges();
- }
- public void AddActivityStatusLookupItemAndIdeaFieldIsShown_201812230911239(ClientAppContext context)
- {
- }
- public void SeedRiskLookups_201812251356131(ClientAppContext context)
- {
- var riskStatus = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = (int)ClientLookups.RiskStatus,
- NameEN = "Risk Status",
- NameAR = "Risk Status AR",
- Manageable = false,
- };
- riskStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Riskstatus.Open,
- NameEN = "Open",
- NameAR = "مفتوح",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.RiskStatus,
- Manageable = true,
- });
- riskStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Riskstatus.Closed,
- NameEN = "Closed",
- NameAR = "مغلق",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.RiskStatus,
- Manageable = true,
- });
- var impact = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = (int)ClientLookups.Impact,
- NameEN = "Impact",
- NameAR = "Impact AR",
- Manageable = false,
- };
- riskStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Impact.High,
- NameEN = "High",
- NameAR = "عالي",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.Impact,
- Manageable = true,
- });
- riskStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Impact.Low,
- NameEN = "Low",
- NameAR = "منخفض",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.Impact,
- Manageable = true,
- });
- riskStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Impact.Medium,
- NameEN = "Medium",
- NameAR = "متوسط",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.Impact,
- Manageable = true,
- });
- riskStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Impact.AskForLeadership,
- NameEN = "Ask for leadership",
- NameAR = "اسال القيادة",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.Impact,
- Manageable = true,
- });
- var probability = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = (int)ClientLookups.Probability,
- NameEN = "probability",
- NameAR = "probability AR",
- Manageable = false,
- };
- riskStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Probability.Certain,
- NameEN = "Certain",
- NameAR = "مؤكد",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.Probability,
- Manageable = true,
- });
- riskStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Probability.Likely,
- NameEN = "Likely",
- NameAR = "محتمل أن",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.Probability,
- Manageable = true,
- });
- riskStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Probability.Possible,
- NameEN = "Possible",
- NameAR = "ممكن",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.Probability,
- Manageable = true,
- });
- riskStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)Probability.UnLikely,
- NameEN = "Unlikely",
- NameAR = "من غير المرجح",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.Probability,
- Manageable = true,
- });
- context.Lookups.Add(riskStatus);
- context.Lookups.Add(impact);
- context.Lookups.Add(probability);
- context.SaveChanges();
- }
- public void SeedInvoiceLookupsAndAddGUID_201812300957349(ClientAppContext context)
- {
- var invoiceStatus = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = (int)ClientLookups.InvoiceStatus,
- NameEN = "Invoice Status",
- NameAR = "حالة الفاتورة",
- Manageable = false,
- };
- invoiceStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)InvoiceStatus.Pending,
- NameEN = "Pending",
- NameAR = "تحت الانتظار",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.InvoiceStatus,
- Manageable = true,
- });
- invoiceStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)InvoiceStatus.Paid,
- NameEN = "Paid",
- NameAR = "مدفوع",
- DisplayOrder = 1,
- LookupID = (int)ClientLookups.InvoiceStatus,
- Manageable = true,
- });
- invoiceStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)InvoiceStatus.Rejected,
- NameEN = "Rejected",
- NameAR = "مرفوض",
- DisplayOrder = 2,
- LookupID = (int)ClientLookups.InvoiceStatus,
- Manageable = true,
- });
- invoiceStatus.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)InvoiceStatus.Cancel,
- NameEN = "Cancel",
- NameAR = "ملغي",
- DisplayOrder = 3,
- LookupID = (int)ClientLookups.InvoiceStatus,
- Manageable = true,
- });
- var invoiceCurrency = new Bnsights.CoreLib.Model.Lookup()
- {
- ID = (int)ClientLookups.InvoiceCurrency,
- NameEN = "Invoice Currency",
- NameAR = "عملة الفاتورة",
- Manageable = false,
- };
- invoiceCurrency.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)InvoiceCurrency.AED,
- NameEN = "AED",
- NameAR = "درهم اماراتي",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.InvoiceCurrency,
- Manageable = true,
- });
- invoiceCurrency.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)InvoiceCurrency.EGP,
- NameEN = "EGP",
- NameAR = "جنيه مصري",
- DisplayOrder = 1,
- LookupID = (int)ClientLookups.InvoiceCurrency,
- Manageable = true,
- });
- invoiceCurrency.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)InvoiceCurrency.GBP,
- NameEN = "GBP",
- NameAR = "جنيه استرليني",
- DisplayOrder = 2,
- LookupID = (int)ClientLookups.InvoiceCurrency,
- Manageable = true,
- });
- invoiceCurrency.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)InvoiceCurrency.USD,
- NameEN = "USD",
- NameAR = "دولار أمريكي",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.InvoiceCurrency,
- Manageable = true,
- });
- invoiceCurrency.LookupItems.Add(new ClientLookupItem()
- {
- ID = (int)InvoiceCurrency.EUR,
- NameEN = "EUR",
- NameAR = "يورو",
- DisplayOrder = 0,
- LookupID = (int)ClientLookups.InvoiceCurrency,
- Manageable = true,
- });
- context.Lookups.Add(invoiceStatus);
- context.Lookups.Add(invoiceCurrency);
- context.SaveChanges();
- }
- public void userMenues_201901021257065(ClientAppContext context)
- {
- context.UserMenues.Add(new UserMenu()
- {
- ID = 1,
- NameEN = "Dashboard",
- NameAR = "الصفحه الرئيسيه",
- Order = 1,
- Url = "~/User/Dashboard/Index",
- IconUrl = "/assets/images/icons/speedometer.svg",
- Visible = true
- });
- context.UserMenues.Add(new UserMenu()
- {
- ID = 2,
- NameEN = "Ideas",
- NameAR = "الافكار",
- Order = 2,
- Url = "~/User/Idea/Index",
- IconUrl = "/assets/images/icons/light-bulb.svg",
- Visible = true
- });
- context.UserMenues.Add(new UserMenu()
- {
- ID = 3,
- NameEN = "Goals",
- NameAR = "الاهداف الاستراتيجيه",
- Order = 3,
- Url = "~/User/Goal/Index",
- IconUrl = "/assets/images/icons/Goals.svg",
- Visible = true
- });
- context.UserMenues.Add(new UserMenu()
- {
- ID = 4,
- NameEN = "Areas",
- NameAR = "مجال التركيز",
- Order = 4,
- Url = "~/User/Focus/Index",
- IconUrl = "/assets/images/icons/focus.svg",
- Visible = true
- });
- context.UserMenues.Add(new UserMenu()
- {
- ID = 5,
- NameEN = "Challenges",
- NameAR = "التحديات",
- Order = 5,
- Url = "~/User/Challenge/Index",
- IconUrl = "/assets/images/icons/barrier.svg",
- Visible = true
- });
- context.UserMenues.Add(new UserMenu()
- {
- ID = 6,
- NameEN = "Labs",
- NameAR = "المعامل",
- Order = 6,
- Url = "~/User/InnovationLab/Index",
- IconUrl = "/assets/images/icons/flask.svg",
- Visible = true
- });
- context.UserMenues.Add(new UserMenu()
- {
- ID = 7,
- NameEN = "Brainstorming",
- NameAR = "عصف ذهنى",
- Order = 7,
- Url = "~/User/Brainstorm/Index",
- IconUrl = "/assets/images/icons/barrier.svg",
- Visible = true
- });
- context.UserMenues.Add(new UserMenu()
- {
- ID = 8,
- NameEN = "Handbook",
- NameAR = "كتيب",
- Order = 8,
- Url = "~/User/Handbook/Index",
- IconUrl = "/assets/images/icons/Handbook.svg",
- Visible = true
- });
- context.UserMenues.Add(new UserMenu()
- {
- ID = 9,
- NameEN = "Videos",
- NameAR = "فديو",
- Order = 9,
- Url = "~/User/Videos/Index",
- IconUrl = "/assets/images/icons/play.svg",
- Visible = true
- });
- context.UserMenues.Add(new UserMenu()
- {
- ID = 10,
- NameEN = "Resources",
- NameAR = "المصادر و الملفات",
- Order = 10,
- Url = "~/User/Resources/Index",
- IconUrl = "/assets/images/icons/book.svg",
- Visible = true
- });
- context.UserMenues.Add(new UserMenu()
- {
- ID = 11,
- NameEN = "Case Studies",
- NameAR = "دراسات الحالة",
- Order = 11,
- Url = "~/User/Casestudy/Index",
- IconUrl = "/assets/images/icons/case.svg",
- Visible = true
- });
- context.UserMenues.Add(new UserMenu()
- {
- ID = 12,
- NameEN = "Project",
- NameAR = "المشاريع",
- Order = 12,
- Url = "~/User/Project/Index",
- IconUrl = "/assets/images/icons/strategy.svg",
- Visible = true
- });
- context.SaveChanges();
- }
- public void SeedingEvaluationPanelTopic_201901031204521(ClientAppContext context)
- {
- seedingTopics2(context);
- }
- public void seedingTopics2(ClientAppContext context)
- {
- context.Topics.Add(new Topic { ID = 67, TopicEN = "Evaluation Panel", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 1, NameEN = "Achievement", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 68, TopicEN = "Add Evaluation Panel ", TopicAR = "No Data", CategoryID = 1, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 69, TopicEN = "Edit Evaluation Panel", TopicAR = "No Data", CategoryID = 1, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- }
- public void MindMap_201901031609167(ClientAppContext context)
- {
- seedingTopics3(context);
- }
- public void seedingTopics3(ClientAppContext context)
- {
- context.Topics.Add(new Topic { ID = 67, TopicEN = "Mind Map", TopicAR = "No Data", Visible = true, TopicCategory = new TopicCategory { ID = 1, NameEN = "Achievement", NameAR = "No Data", DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now }, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 68, TopicEN = "Add Mind Map ", TopicAR = "No Data", CategoryID = 1, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 69, TopicEN = "EditMind Map", TopicAR = "No Data", CategoryID = 1, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- }
- public void AddMindMapUserMenue_201901081221098(ClientAppContext context)
- {
- context.UserMenues.Add(new UserMenu()
- {
- ID = 13,
- NameEN = "Mind Maps",
- NameAR = "خرائط ذهنية",
- Order = 13,
- Url = "~/User/MindMap/Index",
- IconUrl = "/assets/images/icons/speedometer.svg",
- Visible = true
- });
- }
- public void EditUserMenuesSeed_201901131036499(ClientAppContext context)
- {
- context.UserMenues.Find(1).NameEN = "Home";
- context.UserMenues.Find(4).NameEN = "Focus";
- context.UserMenues.Find(13).Order = 7;
- context.UserMenues.Find(7).Order = 8;
- context.UserMenues.Find(7).NameEN = "Storms";
- context.UserMenues.Find(8).Order = 9;
- context.UserMenues.Find(9).Order = 11;
- context.UserMenues.Find(11).NameEN = "Stories";
- context.UserMenues.Find(11).Order = 12;
- context.UserMenues.Find(12).Order = 13;
- context.SaveChanges();
- }
- public void EditDatatypeLookupDataSeed_201901141517533(ClientAppContext context)
- {
- context.LookupItems.Find(58017).NameEN = "Challenge";
- context.LookupItems.Find(58018).NameEN = "Area of Focus";
- context.SaveChanges();
- }
- public void IdeaStatusAndInstance_201901161239534(ClientAppContext context)
- {
- var oldLookup = context.LookupItems.Find((int)IdeaStatusType.AwaitingApproval);
- oldLookup.NameAR = "قيد إنتظار الموافقة";
- oldLookup.NameEN = "Awaiting Approval";
- context.LookupItems.Add(new Bnsights.CoreLib.Model.LookupItem()
- {
- ID = (int)IdeaStatusType.AwaitingEvaluation,
- LookupID = (int)ClientLookups.IdeaStatus,
- NameEN = "Awaiting Evaluation",
- NameAR = "قيد إنتظار التقييم"
- });
- context.LookupItems.Add(new Bnsights.CoreLib.Model.LookupItem()
- {
- ID = (int)IdeaStatusType.RejectedOnApproval,
- LookupID = (int)ClientLookups.IdeaStatus,
- NameEN = "Rejected On Approval",
- NameAR = "رفضت"
- });
- context.LookupItems.Add(new Bnsights.CoreLib.Model.LookupItem()
- {
- ID = (int)IdeaStatusType.Evaluated,
- LookupID = (int)ClientLookups.IdeaStatus,
- NameEN = "Evaluated",
- NameAR = "قيمت"
- });
- context.SaveChanges();
- }
- public void BrainStormingTopicCategories_201901171210047(ClientAppContext context)
- {
- seedingTopics(context);
- }
- public void seedingTopics(ClientAppContext context)
- {
- context.Topics.Add(new Topic { ID = 73, TopicEN = "BrainStorming Session", TopicAR = "No Data", CategoryID = 1, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 74, TopicEN = "Add BrainStorming Session ", TopicAR = "No Data", CategoryID = 1, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- context.Topics.Add(new Topic { ID = 75, TopicEN = "Edit BrainStormingSession", TopicAR = "No Data", CategoryID = 1, Visible = true, DescriptionAR = "No Data", DescriptionEN = "No Data", CreatedBy = "admin@bnsights.com", ModifiedBy = "admin@bnsights.com", Created = DateTime.Now, Modified = DateTime.Now });
- }
- public void addBrainsormingMenue_201901201328270(ClientAppContext context)
- {
- context.UserMenues.Add(new UserMenu()
- {
- ID = 14,
- NameEN = "Brainsstorming",
- NameAR = "عصف ذهنى",
- Order = 14,
- Url = "~/User/BrainstormingSession/Index",
- IconUrl = "/assets/images/icons/brainstorming.svg",
- Visible = true
- });
- context.SaveChanges();
- }
- public void AddInnovationLabToDataTypelookup_201901211200465(ClientAppContext context)
- {
- context.LookupItems.Add(new ClientLookupItem()
- {
- ID = 58020,
- NameEN = "Innovation Lab",
- NameAR = "معامل الابتكار",
- DisplayOrder = 20,
- LookupID = 58,
- Manageable = false,
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement