Kursiyer için entity ve seederlar
This commit is contained in:
parent
8fa04dfec2
commit
555028aac9
24 changed files with 2613 additions and 298 deletions
|
|
@ -67,7 +67,34 @@ public class PlatformDataSeeder : IDataSeedContributor, ITransientDependency
|
|||
private readonly IRepository<Contact, Guid> _contactRepository;
|
||||
private readonly IRepository<Classroom, Guid> _classroomRepository;
|
||||
|
||||
private readonly IRepository<Behavior, Guid> _behaviorRepository;
|
||||
private readonly IRepository<Disease, Guid> _diseaseRepository;
|
||||
private readonly IRepository<Document, Guid> _documentRepository;
|
||||
private readonly IRepository<EducationStatus, Guid> _educationStatusRepository;
|
||||
private readonly IRepository<Vaccine, Guid> _vaccineRepository;
|
||||
private readonly IRepository<WorkHour, Guid> _workHourRepository;
|
||||
private readonly IRepository<Schedule, Guid> _scheduleRepository;
|
||||
private readonly IRepository<SalesRejectionReason, Guid> _salesRejectionReasonRepository;
|
||||
private readonly IRepository<NoteType, Guid> _noteTypeRepository;
|
||||
private readonly IRepository<LessonPeriod, Guid> _lessonPeriodRepository;
|
||||
private readonly IRepository<Information, Guid> _informationRepository;
|
||||
private readonly IRepository<MeetingMethod, Guid> _meetingMethodRepository;
|
||||
private readonly IRepository<MeetingResult, Guid> _meetingResultRepository;
|
||||
private readonly IRepository<ClassCancellationReason, Guid> _classCancellationReasonRepository;
|
||||
private readonly IRepository<EventType, Guid> _eventTypeRepository;
|
||||
private readonly IRepository<EventCategory, Guid> _eventCategoryRepository;
|
||||
private readonly IRepository<Event, Guid> _eventRepository;
|
||||
private readonly IRepository<Source, Guid> _sourceRepository;
|
||||
private readonly IRepository<Interesting, Guid> _interestingRepository;
|
||||
private readonly IRepository<Program, Guid> _programRepository;
|
||||
private readonly IRepository<RegistrationType, Guid> _registrationTypeRepository;
|
||||
private readonly IRepository<RegistrationMethod, Guid> _registrationMethodRepository;
|
||||
private readonly IRepository<ClassType, Guid> _classTypeRepository;
|
||||
private readonly IRepository<Class, Guid> _classRepository;
|
||||
private readonly IRepository<Level, Guid> _levelRepository;
|
||||
|
||||
public PlatformDataSeeder(
|
||||
IRepository<AiBot, Guid> aiBotRepository,
|
||||
IRepository<Language, Guid> languages,
|
||||
IRepository<LanguageKey, Guid> languageKey,
|
||||
IRepository<LanguageText, Guid> languagesText,
|
||||
|
|
@ -92,21 +119,46 @@ public class PlatformDataSeeder : IDataSeedContributor, ITransientDependency
|
|||
IRepository<SkillLevel, Guid> skillLevelRepository,
|
||||
IRepository<ContactTag, Guid> contactTagRepository,
|
||||
IRepository<ContactTitle, Guid> contactTitleRepository,
|
||||
IRepository<BlogCategory, Guid> blogCategoryRepository,
|
||||
IRepository<BlogPost, Guid> blogPostsRepository,
|
||||
IRepository<ForumCategory, Guid> forumCategoryRepository,
|
||||
IRepository<AiBot, Guid> aiBotRepository,
|
||||
IRepository<Route, Guid> routeRepository,
|
||||
IRepository<CustomEndpoint, Guid> customEndpointRepository,
|
||||
IRepository<CustomComponent, Guid> customComponentRepository,
|
||||
IRepository<ReportCategory, Guid> reportCategoriesRepository,
|
||||
IRepository<About, Guid> aboutRepository,
|
||||
IRepository<Service, Guid> servicesRepository,
|
||||
IRepository<Product, Guid> productRepository,
|
||||
IRepository<PaymentMethod, String> paymentMethodRepository,
|
||||
IRepository<InstallmentOption, Guid> installmentOptionRepository,
|
||||
IRepository<CustomComponent, Guid> customComponentRepository,
|
||||
IRepository<ReportCategory, Guid> reportCategoriesRepository,
|
||||
IRepository<Service, Guid> servicesRepository,
|
||||
IRepository<About, Guid> aboutRepository,
|
||||
IRepository<BlogCategory, Guid> blogCategoryRepository,
|
||||
IRepository<BlogPost, Guid> blogPostsRepository,
|
||||
IRepository<Contact, Guid> contactRepository,
|
||||
IRepository<Classroom, Guid> classroomRepository
|
||||
IRepository<Classroom, Guid> classroomRepository,
|
||||
|
||||
IRepository<Behavior, Guid> behaviorRepository,
|
||||
IRepository<Disease, Guid> diseaseRepository,
|
||||
IRepository<Document, Guid> documentRepository,
|
||||
IRepository<EducationStatus, Guid> educationStatusRepository,
|
||||
IRepository<Vaccine, Guid> vaccineRepository,
|
||||
IRepository<WorkHour, Guid> workHourRepository,
|
||||
IRepository<Schedule, Guid> scheduleRepository,
|
||||
IRepository<SalesRejectionReason, Guid> salesRejectionReasonRepository,
|
||||
IRepository<NoteType, Guid> noteTypeRepository,
|
||||
IRepository<LessonPeriod, Guid> lessonPeriodRepository,
|
||||
IRepository<Information, Guid> informationRepository,
|
||||
IRepository<MeetingMethod, Guid> meetingMethodRepository,
|
||||
IRepository<MeetingResult, Guid> meetingResultRepository,
|
||||
IRepository<ClassCancellationReason, Guid> classCancellationReasonRepository,
|
||||
IRepository<EventType, Guid> eventTypeRepository,
|
||||
IRepository<EventCategory, Guid> eventCategoryRepository,
|
||||
IRepository<Event, Guid> eventRepository,
|
||||
IRepository<Source, Guid> sourceRepository,
|
||||
IRepository<Interesting, Guid> interestingRepository,
|
||||
IRepository<Program, Guid> programRepository,
|
||||
IRepository<RegistrationType, Guid> registrationTypeRepository,
|
||||
IRepository<RegistrationMethod, Guid> registrationMethodRepository,
|
||||
IRepository<ClassType, Guid> classTypeRepository,
|
||||
IRepository<Class, Guid> classRepository,
|
||||
IRepository<Level, Guid> levelRepository
|
||||
)
|
||||
{
|
||||
_languages = languages;
|
||||
|
|
@ -148,6 +200,32 @@ public class PlatformDataSeeder : IDataSeedContributor, ITransientDependency
|
|||
_aboutRepository = aboutRepository;
|
||||
_contactRepository = contactRepository;
|
||||
_classroomRepository = classroomRepository;
|
||||
|
||||
_behaviorRepository = behaviorRepository;
|
||||
_diseaseRepository = diseaseRepository;
|
||||
_documentRepository = documentRepository;
|
||||
_educationStatusRepository = educationStatusRepository;
|
||||
_vaccineRepository = vaccineRepository;
|
||||
_workHourRepository = workHourRepository;
|
||||
_scheduleRepository = scheduleRepository;
|
||||
_salesRejectionReasonRepository = salesRejectionReasonRepository;
|
||||
_noteTypeRepository = noteTypeRepository;
|
||||
_lessonPeriodRepository = lessonPeriodRepository;
|
||||
_informationRepository = informationRepository;
|
||||
_meetingMethodRepository = meetingMethodRepository;
|
||||
_meetingResultRepository = meetingResultRepository;
|
||||
_classCancellationReasonRepository = classCancellationReasonRepository;
|
||||
_eventTypeRepository = eventTypeRepository;
|
||||
_eventCategoryRepository = eventCategoryRepository;
|
||||
_eventRepository = eventRepository;
|
||||
_sourceRepository = sourceRepository;
|
||||
_interestingRepository = interestingRepository;
|
||||
_programRepository = programRepository;
|
||||
_registrationTypeRepository = registrationTypeRepository;
|
||||
_registrationMethodRepository = registrationMethodRepository;
|
||||
_classTypeRepository = classTypeRepository;
|
||||
_classRepository = classRepository;
|
||||
_levelRepository = levelRepository;
|
||||
}
|
||||
|
||||
private static IConfigurationRoot BuildConfiguration()
|
||||
|
|
@ -462,7 +540,6 @@ public class PlatformDataSeeder : IDataSeedContributor, ITransientDependency
|
|||
TwoLetterISOLanguageName = new CultureInfo(item.CultureName).TwoLetterISOLanguageName,
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
foreach (var item in items.LanguageTexts)
|
||||
|
|
@ -1007,5 +1084,365 @@ public class PlatformDataSeeder : IDataSeedContributor, ITransientDependency
|
|||
await SeedCitiesAsync();
|
||||
|
||||
await SeedDistrictsAsync();
|
||||
|
||||
foreach (var item in items.Behaviors)
|
||||
{
|
||||
var exists = await _behaviorRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _behaviorRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.Documents)
|
||||
{
|
||||
var exists = await _documentRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _documentRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.Diseases)
|
||||
{
|
||||
var exists = await _diseaseRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _diseaseRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.EducationStatuses)
|
||||
{
|
||||
var exists = await _educationStatusRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _educationStatusRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
Order = item.Order
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.Vaccines)
|
||||
{
|
||||
var exists = await _vaccineRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _vaccineRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.WorkHours)
|
||||
{
|
||||
var exists = await _workHourRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _workHourRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
StartHour = item.StartHour,
|
||||
EndHour = item.EndHour,
|
||||
IsFixed = item.IsFixed,
|
||||
Monday = item.Monday,
|
||||
Tuesday = item.Tuesday,
|
||||
Wednesday = item.Wednesday,
|
||||
Thursday = item.Thursday,
|
||||
Friday = item.Friday,
|
||||
Saturday = item.Saturday,
|
||||
Sunday = item.Sunday,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.Schedules)
|
||||
{
|
||||
var exists = await _scheduleRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _scheduleRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
Status = item.Status,
|
||||
StartTime = item.StartTime,
|
||||
EndTime = item.EndTime,
|
||||
LessonMinute = item.LessonMinute,
|
||||
LessonBreakMinute = item.LessonBreakMinute,
|
||||
LessonCount = item.LessonCount,
|
||||
LunchTime = item.LunchTime,
|
||||
LunchMinute = item.LunchMinute,
|
||||
IncludeLunch = item.IncludeLunch,
|
||||
Monday = item.Monday,
|
||||
Tuesday = item.Tuesday,
|
||||
Wednesday = item.Wednesday,
|
||||
Thursday = item.Thursday,
|
||||
Friday = item.Friday,
|
||||
Saturday = item.Saturday,
|
||||
Sunday = item.Sunday,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.SalesRejectionReasons)
|
||||
{
|
||||
var exists = await _salesRejectionReasonRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _salesRejectionReasonRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
Status = item.Status
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.NoteTypes)
|
||||
{
|
||||
var exists = await _noteTypeRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _noteTypeRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.LessonPeriods)
|
||||
{
|
||||
var exists = await _lessonPeriodRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _lessonPeriodRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
Day = item.Day,
|
||||
Lesson1 = item.Lesson1,
|
||||
Lesson2 = item.Lesson2,
|
||||
Lesson3 = item.Lesson3,
|
||||
Lesson4 = item.Lesson4,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.Informations)
|
||||
{
|
||||
var exists = await _informationRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _informationRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.MeetingMethods)
|
||||
{
|
||||
var exists = await _meetingMethodRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _meetingMethodRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
Type = item.Type
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.MeetingResults)
|
||||
{
|
||||
var exists = await _meetingResultRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _meetingResultRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
Order = item.Order
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.ClassCancellationReasons)
|
||||
{
|
||||
var exists = await _classCancellationReasonRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _classCancellationReasonRepository.InsertAsync(new()
|
||||
{
|
||||
Name = item.Name,
|
||||
Status = item.Status
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.EventTypes)
|
||||
{
|
||||
var exists = await _eventTypeRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _eventTypeRepository.InsertAsync(new EventType(item.Id, item.Name));
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.EventCategories)
|
||||
{
|
||||
var exists = await _eventCategoryRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _eventCategoryRepository.InsertAsync(new EventCategory(item.Id, item.Name));
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.Sources)
|
||||
{
|
||||
var exists = await _sourceRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _sourceRepository.InsertAsync(new Source
|
||||
{
|
||||
Name = item.Name,
|
||||
Status = item.Status
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.Interesting)
|
||||
{
|
||||
var exists = await _interestingRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _interestingRepository.InsertAsync(new Interesting
|
||||
{
|
||||
Name = item.Name,
|
||||
Status = item.Status
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.Programs)
|
||||
{
|
||||
var exists = await _programRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _programRepository.InsertAsync(new Program
|
||||
{
|
||||
Name = item.Name,
|
||||
Status = item.Status
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.RegistrationTypes)
|
||||
{
|
||||
var exists = await _registrationTypeRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _registrationTypeRepository.InsertAsync(new RegistrationType(
|
||||
item.Id,
|
||||
item.Name,
|
||||
item.Status
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.RegistrationMethods)
|
||||
{
|
||||
var exists = await _registrationMethodRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _registrationMethodRepository.InsertAsync(new RegistrationMethod
|
||||
{
|
||||
RegistrationTypeId = item.RegistrationTypeId,
|
||||
Name = item.Name,
|
||||
Status = item.Status
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.ClassTypes)
|
||||
{
|
||||
var exists = await _classTypeRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _classTypeRepository.InsertAsync(new ClassType(
|
||||
item.Id,
|
||||
item.RegistrationTypeId,
|
||||
item.Name,
|
||||
item.MinStudentCount,
|
||||
item.MaxStudentCount,
|
||||
item.Status
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.Classes)
|
||||
{
|
||||
var exists = await _classRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _classRepository.InsertAsync(new()
|
||||
{
|
||||
ClassTypeId = item.ClassTypeId,
|
||||
Name = item.Name,
|
||||
Status = item.Status,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in items.Levels)
|
||||
{
|
||||
var exists = await _levelRepository.AnyAsync(x => x.Name == item.Name);
|
||||
|
||||
if (!exists)
|
||||
{
|
||||
await _levelRepository.InsertAsync(new Level
|
||||
{
|
||||
ClassTypeId = item.ClassTypeId,
|
||||
Name = item.Name,
|
||||
LevelType = item.LevelType,
|
||||
LessonCount = item.LessonCount,
|
||||
Status = item.Status,
|
||||
LessonDuration = item.LessonDuration,
|
||||
MonthlyPaymentRate = item.MonthlyPaymentRate
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -43,6 +43,32 @@ public class SeederDto
|
|||
public List<ServiceSeedDto> Services { get; set; }
|
||||
public List<AboutSeedDto> Abouts { get; set; }
|
||||
public List<ContactSeedDto> Contacts { get; set; }
|
||||
|
||||
public List<BehaviorSeedDto> Behaviors { get; set; }
|
||||
public List<DocumentSeedDto> Documents { get; set; }
|
||||
public List<DiseaseSeedDto> Diseases { get; set; }
|
||||
public List<EducationStatusSeedDto> EducationStatuses { get; set; }
|
||||
public List<VaccineSeedDto> Vaccines { get; set; }
|
||||
public List<WorkHourSeedDto> WorkHours { get; set; }
|
||||
public List<ScheduleSeedDto> Schedules { get; set; }
|
||||
public List<SalesRejectionReasonSeedDto> SalesRejectionReasons { get; set; }
|
||||
public List<NoteTypeSeedDto> NoteTypes { get; set; }
|
||||
public List<LessonPeriodSeedDto> LessonPeriods { get; set; }
|
||||
public List<InformationSeedDto> Informations { get; set; }
|
||||
public List<MeetingMethodSeedDto> MeetingMethods { get; set; }
|
||||
public List<MeetingResultSeedDto> MeetingResults { get; set; }
|
||||
public List<ClassCancellationReasonSeedDto> ClassCancellationReasons { get; set; }
|
||||
public List<EventTypeSeedDto> EventTypes { get; set; }
|
||||
public List<EventCategorySeedDto> EventCategories { get; set; }
|
||||
public List<SourceSeedDto> Sources { get; set; }
|
||||
public List<InterestingSeedDto> Interesting { get; set; }
|
||||
public List<ProgramSeedDto> Programs { get; set; }
|
||||
public List<RegistrationTypeSeedDto> RegistrationTypes { get; set; }
|
||||
public List<RegistrationMethodSeedDto> RegistrationMethods { get; set; }
|
||||
public List<ClassTypeSeedDto> ClassTypes { get; set; }
|
||||
public List<ClassSeedDto> Classes { get; set; }
|
||||
public List<LevelSeedDto> Levels { get; set; }
|
||||
|
||||
public List<ClassroomSeedDto> Classrooms { get; set; }
|
||||
}
|
||||
|
||||
|
|
@ -250,7 +276,7 @@ public class ProductSeedDto
|
|||
|
||||
public class PaymentMethodSeedDto
|
||||
{
|
||||
public string Id { get; set; } // e.g. "credit-card", "bank-transfer"
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public decimal Commission { get; set; }
|
||||
public string Logo { get; set; }
|
||||
|
|
@ -323,4 +349,193 @@ public class ClassroomSeedDto
|
|||
public bool IsScheduled { get; set; }
|
||||
public int ParticipantCount { get; set; }
|
||||
public string SettingsJson { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
public class BehaviorSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
public class DocumentSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
public class DiseaseSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
public class EducationStatusSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public short Order { get; set; }
|
||||
}
|
||||
|
||||
public class VaccineSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
public class WorkHourSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string StartHour { get; set; }
|
||||
public string EndHour { get; set; }
|
||||
public bool? IsFixed { get; set; }
|
||||
public bool? Monday { get; set; }
|
||||
public bool? Tuesday { get; set; }
|
||||
public bool? Wednesday { get; set; }
|
||||
public bool? Thursday { get; set; }
|
||||
public bool? Friday { get; set; }
|
||||
public bool? Saturday { get; set; }
|
||||
public bool? Sunday { get; set; }
|
||||
}
|
||||
|
||||
public class ScheduleSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string StartTime { get; set; }
|
||||
public string EndTime { get; set; }
|
||||
public int LessonMinute { get; set; }
|
||||
public int LessonBreakMinute { get; set; }
|
||||
public int LessonCount { get; set; }
|
||||
public string LunchTime { get; set; }
|
||||
public int? LunchMinute { get; set; }
|
||||
public bool? IncludeLunch { get; set; }
|
||||
public bool? Monday { get; set; }
|
||||
public bool? Tuesday { get; set; }
|
||||
public bool? Wednesday { get; set; }
|
||||
public bool? Thursday { get; set; }
|
||||
public bool? Friday { get; set; }
|
||||
public bool? Saturday { get; set; }
|
||||
public bool? Sunday { get; set; }
|
||||
}
|
||||
|
||||
public class SalesRejectionReasonSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public class NoteTypeSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
public class LessonPeriodSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Day { get; set; }
|
||||
|
||||
public string Lesson1 { get; set; }
|
||||
public string Lesson2 { get; set; }
|
||||
public string Lesson3 { get; set; }
|
||||
public string Lesson4 { get; set; }
|
||||
}
|
||||
|
||||
public class InformationSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
public class MeetingMethodSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Type { get; set; }
|
||||
}
|
||||
|
||||
public class MeetingResultSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public short? Order { get; set; }
|
||||
}
|
||||
|
||||
public class ClassCancellationReasonSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public class EventTypeSeedDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
public class EventCategorySeedDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
public class EventSeedDto
|
||||
{
|
||||
public Guid CategoryId { get; set; }
|
||||
public Guid TypeId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Place { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public class SourceSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public class InterestingSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public class ProgramSeedDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public class RegistrationTypeSeedDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public class RegistrationMethodSeedDto
|
||||
{
|
||||
public Guid RegistrationTypeId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public class ClassTypeSeedDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid RegistrationTypeId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int? MinStudentCount { get; set; }
|
||||
public int? MaxStudentCount { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public class ClassSeedDto
|
||||
{
|
||||
public Guid ClassTypeId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public class LevelSeedDto
|
||||
{
|
||||
public Guid ClassTypeId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string LevelType { get; set; }
|
||||
public int LessonCount { get; set; }
|
||||
public string Status { get; set; }
|
||||
public int? LessonDuration { get; set; }
|
||||
public decimal? MonthlyPaymentRate { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,14 @@
|
|||
using System;
|
||||
using Volo.Abp.Domain.Entities.Auditing;
|
||||
using Volo.Abp.MultiTenancy;
|
||||
|
||||
namespace Kurs.Platform.Entities;
|
||||
|
||||
public class Bank : FullAuditedEntity<Guid>
|
||||
public class Bank : FullAuditedEntity<Guid>, IMultiTenant
|
||||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
public Guid? BranchId { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public string IdentifierCode { get; set; }
|
||||
public string AddressLine1 { get; set; }
|
||||
|
|
@ -15,4 +19,6 @@ public class Bank : FullAuditedEntity<Guid>
|
|||
public string PostalCode { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string Email { get; set; }
|
||||
|
||||
Guid? IMultiTenant.TenantId => TenantId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,14 @@
|
|||
using System;
|
||||
using Volo.Abp.Domain.Entities.Auditing;
|
||||
using Volo.Abp.MultiTenancy;
|
||||
|
||||
namespace Kurs.Platform.Entities;
|
||||
|
||||
public class BankAccount : FullAuditedEntity<Guid>
|
||||
public class BankAccount : FullAuditedEntity<Guid>, IMultiTenant
|
||||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
public Guid? BranchId { get; set; }
|
||||
|
||||
public string AccountNumber { get; set; }
|
||||
public Guid BankId { get; set; }
|
||||
public Bank Bank { get; set; }
|
||||
|
|
@ -13,4 +17,6 @@ public class BankAccount : FullAuditedEntity<Guid>
|
|||
public Currency Currency { get; set; }
|
||||
public bool CanTransferMoney { get; set; }
|
||||
public string Company { get; set; }
|
||||
|
||||
Guid? IMultiTenant.TenantId => TenantId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,8 +10,7 @@ public class Class : FullAuditedEntity<Guid>, IMultiTenant
|
|||
public Guid? BranchId { get; set; }
|
||||
|
||||
public Guid ClassTypeId { get; set; }
|
||||
|
||||
public string ClassCode { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Status { get; set; }
|
||||
|
||||
// Navigation
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ public class ClassCancellationReason : FullAuditedEntity<Guid>, IMultiTenant
|
|||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string Reason { get; set; } // SinifTatilEtmeSebebi
|
||||
public string Name { get; set; } // SinifTatilEtmeSebebi
|
||||
public string Status { get; set; } // Durum
|
||||
|
||||
Guid? IMultiTenant.TenantId => TenantId;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public class ClassType : FullAuditedEntity<Guid>, IMultiTenant
|
|||
public Guid? TenantId { get; set; }
|
||||
public Guid? BranchId { get; set; }
|
||||
|
||||
public Guid RegistrationTypeId { get; set; } // KayitTipiId
|
||||
public Guid RegistrationTypeId { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public int? MinStudentCount { get; set; }
|
||||
|
|
@ -21,9 +21,21 @@ public class ClassType : FullAuditedEntity<Guid>, IMultiTenant
|
|||
|
||||
// Navigation
|
||||
public RegistrationType RegistrationType { get; set; }
|
||||
|
||||
public ICollection<Class> Classes { get; set; }
|
||||
|
||||
public ICollection<Level> Levels { get; set; }
|
||||
|
||||
public ClassType()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public ClassType(Guid id, Guid registrationTypeId, string name, int? minStudentCount, int? maxStudentCount, string status)
|
||||
{
|
||||
Id = id;
|
||||
RegistrationTypeId = registrationTypeId;
|
||||
Name = name;
|
||||
MinStudentCount = minStudentCount;
|
||||
MaxStudentCount = maxStudentCount;
|
||||
Status = status;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ public class EducationStatus : Entity<Guid>, IMultiTenant
|
|||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string Name { get; set; } // OgrenimDurumu
|
||||
public short? OrderNo { get; set; } // SiraNo
|
||||
public short? Order { get; set; } // SiraNo
|
||||
|
||||
Guid? IMultiTenant.TenantId => TenantId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,4 +15,15 @@ public class EventCategory : FullAuditedEntity<Guid>, IMultiTenant
|
|||
public ICollection<Event> Events { get; set; }
|
||||
|
||||
Guid? IMultiTenant.TenantId => TenantId;
|
||||
|
||||
public EventCategory()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public EventCategory(Guid id, string name)
|
||||
{
|
||||
Id = id;
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,4 +15,15 @@ public class EventType : FullAuditedEntity<Guid>, IMultiTenant
|
|||
public ICollection<Event> Events { get; set; }
|
||||
|
||||
Guid? IMultiTenant.TenantId => TenantId;
|
||||
|
||||
public EventType()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public EventType(Guid id, string name)
|
||||
{
|
||||
Id = id;
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ public class Information : FullAuditedEntity<Guid>, IMultiTenant
|
|||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string Type { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
Guid? IMultiTenant.TenantId => TenantId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,11 @@ namespace Kurs.Platform.Entities;
|
|||
public class Level : FullAuditedEntity<Guid>, IMultiTenant
|
||||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
public Guid? BranchId { get; set; }
|
||||
|
||||
public Guid ClassTypeId { get; set; } // SinifTipiID (FK)
|
||||
public string Name { get; set; } // SeviyeKodu
|
||||
public string LevelType { get; set; } // SeviyeTipi
|
||||
public string LevelCode { get; set; } // SeviyeKodu
|
||||
public int LessonCount { get; set; } // DersSayisi
|
||||
public string Status { get; set; } // Durum
|
||||
public int? LessonDuration { get; set; } // DersSuresi
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ namespace Kurs.Platform.Entities;
|
|||
public class MeetingMethod : FullAuditedEntity<Guid>, IMultiTenant
|
||||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string Name { get; set; } // GorusmeSekli
|
||||
public string Type { get; set; } // GorusmeTuru
|
||||
public bool? Flag { get; set; }
|
||||
|
||||
Guid? IMultiTenant.TenantId => TenantId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ public class MeetingResult : FullAuditedEntity<Guid>, IMultiTenant
|
|||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string Name { get; set; } // GorusmeSonuc
|
||||
public short? OrderNo { get; set; } // SiraNo
|
||||
public short? Order { get; set; } // SiraNo
|
||||
|
||||
Guid? IMultiTenant.TenantId => TenantId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,4 +18,11 @@ public class RegistrationType : FullAuditedEntity<Guid>, IMultiTenant
|
|||
// Navigation
|
||||
public ICollection<RegistrationMethod> Methods { get; set; }
|
||||
public ICollection<ClassType> ClassTypes { get; set; }
|
||||
|
||||
public RegistrationType(Guid id, string name, string status)
|
||||
{
|
||||
Id = id;
|
||||
Name = name;
|
||||
Status = status;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ public class SalesRejectionReason : FullAuditedEntity<Guid>, IMultiTenant
|
|||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string Reason { get; set; } // SatisOlmamaSebebi
|
||||
public string Name { get; set; } // SatisOlmamaSebebi
|
||||
public string Status { get; set; } // Durum
|
||||
|
||||
Guid? IMultiTenant.TenantId => TenantId;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ public class Schedule : FullAuditedEntity<Guid>, IMultiTenant
|
|||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
public Guid? BranchId { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Status { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ public class ScheduleLesson : FullAuditedEntity<Guid>, IMultiTenant
|
|||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
public Guid? BranchId { get; set; }
|
||||
|
||||
public Guid ScheduleId { get; set; }
|
||||
public string Day { get; set; }
|
||||
public int? LessonNo { get; set; }
|
||||
|
|
|
|||
|
|
@ -1,16 +0,0 @@
|
|||
using System;
|
||||
using Volo.Abp.Domain.Entities;
|
||||
using Volo.Abp.MultiTenancy;
|
||||
|
||||
namespace Kurs.Platform.Entities;
|
||||
|
||||
public class TransactionReason : Entity<Guid>, IMultiTenant
|
||||
{
|
||||
public Guid? TenantId { get; set; }
|
||||
|
||||
public string Name { get; set; } // HareketSebebi
|
||||
public string Type { get; set; } // HareketTuru
|
||||
public string Status { get; set; }
|
||||
|
||||
Guid? IMultiTenant.TenantId => TenantId;
|
||||
}
|
||||
|
|
@ -108,7 +108,6 @@ public class PlatformDbContext :
|
|||
public DbSet<SalesRejectionReason> SalesRejectionReasons { get; set; }
|
||||
public DbSet<Level> Levels { get; set; }
|
||||
public DbSet<ClassCancellationReason> ClassCancellationReasons { get; set; }
|
||||
public DbSet<TransactionReason> TransactionReasons { get; set; }
|
||||
public DbSet<MeetingMethod> MeetingMethods { get; set; }
|
||||
public DbSet<MeetingResult> MeetingResults { get; set; }
|
||||
public DbSet<Vaccine> Vaccines { get; set; }
|
||||
|
|
@ -1060,7 +1059,7 @@ public class PlatformDbContext :
|
|||
b.ToTable(Prefix.DbTableDefinition + nameof(Class), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.ClassCode).IsRequired().HasMaxLength(64);
|
||||
b.Property(x => x.Name).IsRequired().HasMaxLength(64);
|
||||
b.Property(x => x.Status).HasMaxLength(20);
|
||||
});
|
||||
|
||||
|
|
@ -1070,7 +1069,7 @@ public class PlatformDbContext :
|
|||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.LevelType).HasMaxLength(15);
|
||||
b.Property(x => x.LevelCode).HasMaxLength(50).IsRequired();
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
b.Property(x => x.Status).HasMaxLength(10);
|
||||
b.Property(x => x.MonthlyPaymentRate).HasPrecision(18, 4);
|
||||
});
|
||||
|
|
@ -1161,7 +1160,7 @@ public class PlatformDbContext :
|
|||
b.ToTable(Prefix.DbTableDefinition + nameof(SalesRejectionReason), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Reason).HasMaxLength(50).IsRequired();
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
b.Property(x => x.Status).HasMaxLength(10);
|
||||
});
|
||||
|
||||
|
|
@ -1170,17 +1169,7 @@ public class PlatformDbContext :
|
|||
b.ToTable(Prefix.DbTableDefinition + nameof(ClassCancellationReason), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Reason).HasMaxLength(50).IsRequired();
|
||||
b.Property(x => x.Status).HasMaxLength(10);
|
||||
});
|
||||
|
||||
builder.Entity<TransactionReason>(b =>
|
||||
{
|
||||
b.ToTable(Prefix.DbTableDefinition + nameof(TransactionReason), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
b.Property(x => x.Type).HasMaxLength(10).IsRequired();
|
||||
b.Property(x => x.Status).HasMaxLength(10);
|
||||
});
|
||||
|
||||
|
|
@ -1189,7 +1178,7 @@ public class PlatformDbContext :
|
|||
b.ToTable(Prefix.DbTableDefinition + nameof(Information), Prefix.DbSchema);
|
||||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Type).HasMaxLength(50).IsRequired();
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
});
|
||||
|
||||
builder.Entity<LessonPeriod>(b =>
|
||||
|
|
@ -1221,7 +1210,7 @@ public class PlatformDbContext :
|
|||
b.ConfigureByConvention();
|
||||
|
||||
b.Property(x => x.Name).HasMaxLength(50).IsRequired();
|
||||
b.Property(x => x.OrderNo);
|
||||
b.Property(x => x.Order);
|
||||
});
|
||||
|
||||
builder.Entity<Disease>(b =>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
|||
namespace Kurs.Platform.Migrations
|
||||
{
|
||||
[DbContext(typeof(PlatformDbContext))]
|
||||
[Migration("20251003180537_Initial")]
|
||||
[Migration("20251003212541_Initial")]
|
||||
partial class Initial
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
|
@ -863,6 +863,9 @@ namespace Kurs.Platform.Migrations
|
|||
.HasMaxLength(256)
|
||||
.HasColumnType("nvarchar(256)");
|
||||
|
||||
b.Property<Guid?>("BranchId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("City")
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("nvarchar(128)");
|
||||
|
|
@ -926,6 +929,10 @@ namespace Kurs.Platform.Migrations
|
|||
.HasMaxLength(16)
|
||||
.HasColumnType("nvarchar(16)");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DBank", (string)null);
|
||||
|
|
@ -949,6 +956,9 @@ namespace Kurs.Platform.Migrations
|
|||
b.Property<Guid>("BankId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("BranchId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("CanTransferMoney")
|
||||
.HasColumnType("bit");
|
||||
|
||||
|
|
@ -989,6 +999,10 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("BankId");
|
||||
|
|
@ -1434,11 +1448,6 @@ namespace Kurs.Platform.Migrations
|
|||
b.Property<Guid?>("BranchId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("ClassCode")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("nvarchar(64)");
|
||||
|
||||
b.Property<Guid>("ClassTypeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
|
|
@ -1472,6 +1481,11 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("nvarchar(64)");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
|
@ -1522,7 +1536,7 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
|
@ -2906,7 +2920,7 @@ namespace Kurs.Platform.Migrations
|
|||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<short?>("OrderNo")
|
||||
b.Property<short?>("Order")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
|
|
@ -3160,15 +3174,15 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.Property<string>("Type")
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DInformation", (string)null);
|
||||
|
|
@ -3485,6 +3499,9 @@ namespace Kurs.Platform.Migrations
|
|||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("BranchId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("ClassTypeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
|
|
@ -3524,17 +3541,18 @@ namespace Kurs.Platform.Migrations
|
|||
b.Property<int?>("LessonDuration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("LevelCode")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<string>("LevelType")
|
||||
.HasMaxLength(15)
|
||||
.HasColumnType("nvarchar(15)");
|
||||
|
||||
b.Property<decimal?>("MonthlyPaymentRate")
|
||||
.HasColumnType("decimal(18,2)");
|
||||
.HasPrecision(18, 4)
|
||||
.HasColumnType("decimal(18,4)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.HasMaxLength(10)
|
||||
|
|
@ -4282,9 +4300,6 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("datetime2")
|
||||
.HasColumnName("DeletionTime");
|
||||
|
||||
b.Property<bool?>("Flag")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -4358,7 +4373,7 @@ namespace Kurs.Platform.Migrations
|
|||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<short?>("OrderNo")
|
||||
b.Property<short?>("Order")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
|
|
@ -5359,7 +5374,7 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
|
@ -5877,34 +5892,6 @@ namespace Kurs.Platform.Migrations
|
|||
b.ToTable("DSource", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.TransactionReason", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("nvarchar(10)");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.Property<string>("Type")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("nvarchar(10)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DTransactionReason", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Uom", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
|
|
@ -437,6 +437,8 @@ namespace Kurs.Platform.Migrations
|
|||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||
IdentifierCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||
AddressLine1 = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
|
||||
|
|
@ -486,7 +488,7 @@ namespace Kurs.Platform.Migrations
|
|||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
Reason = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
Status = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
|
|
@ -632,7 +634,7 @@ namespace Kurs.Platform.Migrations
|
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
OrderNo = table.Column<short>(type: "smallint", nullable: true)
|
||||
Order = table.Column<short>(type: "smallint", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
|
|
@ -685,7 +687,7 @@ namespace Kurs.Platform.Migrations
|
|||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
|
|
@ -811,7 +813,6 @@ namespace Kurs.Platform.Migrations
|
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
Flag = table.Column<bool>(type: "bit", nullable: true),
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
|
|
@ -832,7 +833,7 @@ namespace Kurs.Platform.Migrations
|
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
OrderNo = table.Column<short>(type: "smallint", nullable: true),
|
||||
Order = table.Column<short>(type: "smallint", nullable: true),
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
|
|
@ -933,7 +934,7 @@ namespace Kurs.Platform.Migrations
|
|||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
Reason = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
Status = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
|
|
@ -1045,21 +1046,6 @@ namespace Kurs.Platform.Migrations
|
|||
table.PrimaryKey("PK_DSource", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "DTransactionReason",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
Type = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: false),
|
||||
Status = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_DTransactionReason", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "DUomCategory",
|
||||
columns: table => new
|
||||
|
|
@ -2292,6 +2278,8 @@ namespace Kurs.Platform.Migrations
|
|||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
AccountNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||
BankId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
AccountOwner = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
||||
|
|
@ -3189,7 +3177,7 @@ namespace Kurs.Platform.Migrations
|
|||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
ClassTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
ClassCode = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||
Status = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
|
|
@ -3216,13 +3204,14 @@ namespace Kurs.Platform.Migrations
|
|||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
ClassTypeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
LevelType = table.Column<string>(type: "nvarchar(15)", maxLength: 15, nullable: true),
|
||||
LevelCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
LessonCount = table.Column<int>(type: "int", nullable: false),
|
||||
Status = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
|
||||
LessonDuration = table.Column<int>(type: "int", nullable: true),
|
||||
MonthlyPaymentRate = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
||||
MonthlyPaymentRate = table.Column<decimal>(type: "decimal(18,4)", precision: 18, scale: 4, nullable: true),
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
|
|
@ -4210,9 +4199,6 @@ namespace Kurs.Platform.Migrations
|
|||
migrationBuilder.DropTable(
|
||||
name: "DSource");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "DTransactionReason");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "DUom");
|
||||
|
||||
|
|
@ -860,6 +860,9 @@ namespace Kurs.Platform.Migrations
|
|||
.HasMaxLength(256)
|
||||
.HasColumnType("nvarchar(256)");
|
||||
|
||||
b.Property<Guid?>("BranchId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("City")
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("nvarchar(128)");
|
||||
|
|
@ -923,6 +926,10 @@ namespace Kurs.Platform.Migrations
|
|||
.HasMaxLength(16)
|
||||
.HasColumnType("nvarchar(16)");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DBank", (string)null);
|
||||
|
|
@ -946,6 +953,9 @@ namespace Kurs.Platform.Migrations
|
|||
b.Property<Guid>("BankId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("BranchId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<bool>("CanTransferMoney")
|
||||
.HasColumnType("bit");
|
||||
|
||||
|
|
@ -986,6 +996,10 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("BankId");
|
||||
|
|
@ -1431,11 +1445,6 @@ namespace Kurs.Platform.Migrations
|
|||
b.Property<Guid?>("BranchId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("ClassCode")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("nvarchar(64)");
|
||||
|
||||
b.Property<Guid>("ClassTypeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
|
|
@ -1469,6 +1478,11 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("nvarchar(64)");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("nvarchar(20)");
|
||||
|
|
@ -1519,7 +1533,7 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
|
@ -2903,7 +2917,7 @@ namespace Kurs.Platform.Migrations
|
|||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<short?>("OrderNo")
|
||||
b.Property<short?>("Order")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
|
|
@ -3157,15 +3171,15 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.Property<string>("Type")
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DInformation", (string)null);
|
||||
|
|
@ -3482,6 +3496,9 @@ namespace Kurs.Platform.Migrations
|
|||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid?>("BranchId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<Guid>("ClassTypeId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
|
|
@ -3521,17 +3538,18 @@ namespace Kurs.Platform.Migrations
|
|||
b.Property<int?>("LessonDuration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("LevelCode")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<string>("LevelType")
|
||||
.HasMaxLength(15)
|
||||
.HasColumnType("nvarchar(15)");
|
||||
|
||||
b.Property<decimal?>("MonthlyPaymentRate")
|
||||
.HasColumnType("decimal(18,2)");
|
||||
.HasPrecision(18, 4)
|
||||
.HasColumnType("decimal(18,4)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.HasMaxLength(10)
|
||||
|
|
@ -4279,9 +4297,6 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("datetime2")
|
||||
.HasColumnName("DeletionTime");
|
||||
|
||||
b.Property<bool?>("Flag")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<bool>("IsDeleted")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bit")
|
||||
|
|
@ -4355,7 +4370,7 @@ namespace Kurs.Platform.Migrations
|
|||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<short?>("OrderNo")
|
||||
b.Property<short?>("Order")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
|
|
@ -5356,7 +5371,7 @@ namespace Kurs.Platform.Migrations
|
|||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("LastModifierId");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
|
@ -5874,34 +5889,6 @@ namespace Kurs.Platform.Migrations
|
|||
b.ToTable("DSource", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.TransactionReason", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("nvarchar(10)");
|
||||
|
||||
b.Property<Guid?>("TenantId")
|
||||
.HasColumnType("uniqueidentifier")
|
||||
.HasColumnName("TenantId");
|
||||
|
||||
b.Property<string>("Type")
|
||||
.IsRequired()
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("nvarchar(10)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DTransactionReason", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Kurs.Platform.Entities.Uom", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
|
|
|
|||
Loading…
Reference in a new issue