Changes in / [7dd2ea2:cba21c9]
- Location:
- src/FinkiChattery
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FinkiChattery/FinkiChattery.Database/FullTextSearch/FullTextIndexQuestion.sql
r7dd2ea2 rcba21c9 1 CREATE FULLTEXT INDEX ON [dbo].[Question] ([ Search])1 CREATE FULLTEXT INDEX ON [dbo].[Question] ([Title], [Text]) 2 2 KEY INDEX [PK_Question] ON [QuestionFullTextCatalog] 3 WITH (CHANGE_TRACKING AUTO )3 WITH (CHANGE_TRACKING AUTO, STOPLIST OFF) -
src/FinkiChattery/FinkiChattery.Database/dbo/Tables/Question.sql
r7dd2ea2 rcba21c9 9 9 [Views] BIGINT DEFAULT (CONVERT([bigint],(0))) NOT NULL, 10 10 [LastActiveOn] SMALLDATETIME NOT NULL, 11 [Search] AS ([Title] + ' ' + [Text]),12 11 CONSTRAINT [PK_Question] PRIMARY KEY CLUSTERED ([Id] ASC), 13 12 CONSTRAINT [FK_Question_Student_StudentFk] FOREIGN KEY ([StudentFk]) REFERENCES [dbo].[Student] ([Id]), -
src/FinkiChattery/FinkiChattery.Persistence/Configurations/QuestionConfig.cs
r7dd2ea2 rcba21c9 24 24 builder.Property(x => x.Views).HasColumnName(@"Views").HasColumnType("bigint").IsRequired().HasDefaultValue(0); 25 25 builder.Property(x => x.LastActiveOn).HasColumnName(@"LastActiveOn").HasColumnType("smalldatetime").IsRequired(); 26 builder.Property(x => x.Search).HasColumnType(@"Search").HasColumnType("nvarchar").HasMaxLength(4000).IsRequired();27 26 28 27 builder.HasOne(x => x.Student).WithMany(x => x.Questions).HasForeignKey(x => x.StudentFk).OnDelete(DeleteBehavior.NoAction); -
src/FinkiChattery/FinkiChattery.Persistence/Models/Question.cs
r7dd2ea2 rcba21c9 32 32 public DateTime LastActiveOn { get; set; } 33 33 34 public string Search { get; set; }35 36 34 public virtual ICollection<Answer> Answers { get; set; } 37 35 38 36 public virtual ICollection<QuestionCategory> QuestionCategories { get; set; } 37 38 // TODO: Pole po koe ke pravime queries 39 39 } 40 40 }
Note:
See TracChangeset
for help on using the changeset viewer.