| | 1 | | // <auto-generated /> |
| | 2 | | using System; |
| | 3 | | using System.Text.Json; |
| | 4 | | using Microsoft.EntityFrameworkCore; |
| | 5 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | 6 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | 7 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | 8 | | using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; |
| | 9 | | using Syki.Back.Database; |
| | 10 | |
|
| | 11 | | #nullable disable |
| | 12 | |
|
| | 13 | | namespace Back.Migrations |
| | 14 | | { |
| | 15 | | [DbContext(typeof(SykiDbContext))] |
| | 16 | | [Migration("20250712192321_AddCampusCapacityProp")] |
| | 17 | | partial class AddCampusCapacityProp |
| | 18 | | { |
| | 19 | | /// <inheritdoc /> |
| | 20 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | 21 | | { |
| | 22 | | #pragma warning disable 612, 618 |
| 2 | 23 | | modelBuilder |
| 2 | 24 | | .HasDefaultSchema("syki") |
| 2 | 25 | | .HasAnnotation("ProductVersion", "9.0.0") |
| 2 | 26 | | .HasAnnotation("Relational:MaxIdentifierLength", 63); |
| | 27 | |
|
| 2 | 28 | | NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); |
| | 29 | |
|
| 2 | 30 | | modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b => |
| 2 | 31 | | { |
| 2 | 32 | | b.Property<int>("Id") |
| 2 | 33 | | .ValueGeneratedOnAdd() |
| 2 | 34 | | .HasColumnType("integer") |
| 2 | 35 | | .HasColumnName("id"); |
| 2 | 36 | |
|
| 2 | 37 | | NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id")); |
| 2 | 38 | |
|
| 2 | 39 | | b.Property<string>("ClaimType") |
| 2 | 40 | | .HasColumnType("text") |
| 2 | 41 | | .HasColumnName("claim_type"); |
| 2 | 42 | |
|
| 2 | 43 | | b.Property<string>("ClaimValue") |
| 2 | 44 | | .HasColumnType("text") |
| 2 | 45 | | .HasColumnName("claim_value"); |
| 2 | 46 | |
|
| 2 | 47 | | b.Property<Guid>("RoleId") |
| 2 | 48 | | .HasColumnType("uuid") |
| 2 | 49 | | .HasColumnName("role_id"); |
| 2 | 50 | |
|
| 2 | 51 | | b.HasKey("Id") |
| 2 | 52 | | .HasName("pk_role_claims"); |
| 2 | 53 | |
|
| 2 | 54 | | b.HasIndex("RoleId") |
| 2 | 55 | | .HasDatabaseName("ix_role_claims_role_id"); |
| 2 | 56 | |
|
| 2 | 57 | | b.ToTable("role_claims", "syki"); |
| 4 | 58 | | }); |
| | 59 | |
|
| 2 | 60 | | modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b => |
| 2 | 61 | | { |
| 2 | 62 | | b.Property<int>("Id") |
| 2 | 63 | | .ValueGeneratedOnAdd() |
| 2 | 64 | | .HasColumnType("integer") |
| 2 | 65 | | .HasColumnName("id"); |
| 2 | 66 | |
|
| 2 | 67 | | NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id")); |
| 2 | 68 | |
|
| 2 | 69 | | b.Property<string>("ClaimType") |
| 2 | 70 | | .HasColumnType("text") |
| 2 | 71 | | .HasColumnName("claim_type"); |
| 2 | 72 | |
|
| 2 | 73 | | b.Property<string>("ClaimValue") |
| 2 | 74 | | .HasColumnType("text") |
| 2 | 75 | | .HasColumnName("claim_value"); |
| 2 | 76 | |
|
| 2 | 77 | | b.Property<Guid>("UserId") |
| 2 | 78 | | .HasColumnType("uuid") |
| 2 | 79 | | .HasColumnName("user_id"); |
| 2 | 80 | |
|
| 2 | 81 | | b.HasKey("Id") |
| 2 | 82 | | .HasName("pk_user_claims"); |
| 2 | 83 | |
|
| 2 | 84 | | b.HasIndex("UserId") |
| 2 | 85 | | .HasDatabaseName("ix_user_claims_user_id"); |
| 2 | 86 | |
|
| 2 | 87 | | b.ToTable("user_claims", "syki"); |
| 4 | 88 | | }); |
| | 89 | |
|
| 2 | 90 | | modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b => |
| 2 | 91 | | { |
| 2 | 92 | | b.Property<string>("LoginProvider") |
| 2 | 93 | | .HasColumnType("text") |
| 2 | 94 | | .HasColumnName("login_provider"); |
| 2 | 95 | |
|
| 2 | 96 | | b.Property<string>("ProviderKey") |
| 2 | 97 | | .HasColumnType("text") |
| 2 | 98 | | .HasColumnName("provider_key"); |
| 2 | 99 | |
|
| 2 | 100 | | b.Property<string>("ProviderDisplayName") |
| 2 | 101 | | .HasColumnType("text") |
| 2 | 102 | | .HasColumnName("provider_display_name"); |
| 2 | 103 | |
|
| 2 | 104 | | b.Property<Guid>("UserId") |
| 2 | 105 | | .HasColumnType("uuid") |
| 2 | 106 | | .HasColumnName("user_id"); |
| 2 | 107 | |
|
| 2 | 108 | | b.HasKey("LoginProvider", "ProviderKey") |
| 2 | 109 | | .HasName("pk_user_logins"); |
| 2 | 110 | |
|
| 2 | 111 | | b.HasIndex("UserId") |
| 2 | 112 | | .HasDatabaseName("ix_user_logins_user_id"); |
| 2 | 113 | |
|
| 2 | 114 | | b.ToTable("user_logins", "syki"); |
| 4 | 115 | | }); |
| | 116 | |
|
| 2 | 117 | | modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b => |
| 2 | 118 | | { |
| 2 | 119 | | b.Property<Guid>("UserId") |
| 2 | 120 | | .HasColumnType("uuid") |
| 2 | 121 | | .HasColumnName("user_id"); |
| 2 | 122 | |
|
| 2 | 123 | | b.Property<Guid>("RoleId") |
| 2 | 124 | | .HasColumnType("uuid") |
| 2 | 125 | | .HasColumnName("role_id"); |
| 2 | 126 | |
|
| 2 | 127 | | b.HasKey("UserId", "RoleId") |
| 2 | 128 | | .HasName("pk_user_roles"); |
| 2 | 129 | |
|
| 2 | 130 | | b.HasIndex("RoleId") |
| 2 | 131 | | .HasDatabaseName("ix_user_roles_role_id"); |
| 2 | 132 | |
|
| 2 | 133 | | b.ToTable("user_roles", "syki"); |
| 4 | 134 | | }); |
| | 135 | |
|
| 2 | 136 | | modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b => |
| 2 | 137 | | { |
| 2 | 138 | | b.Property<Guid>("UserId") |
| 2 | 139 | | .HasColumnType("uuid") |
| 2 | 140 | | .HasColumnName("user_id"); |
| 2 | 141 | |
|
| 2 | 142 | | b.Property<string>("LoginProvider") |
| 2 | 143 | | .HasColumnType("text") |
| 2 | 144 | | .HasColumnName("login_provider"); |
| 2 | 145 | |
|
| 2 | 146 | | b.Property<string>("Name") |
| 2 | 147 | | .HasColumnType("text") |
| 2 | 148 | | .HasColumnName("name"); |
| 2 | 149 | |
|
| 2 | 150 | | b.Property<string>("Value") |
| 2 | 151 | | .HasColumnType("text") |
| 2 | 152 | | .HasColumnName("value"); |
| 2 | 153 | |
|
| 2 | 154 | | b.HasKey("UserId", "LoginProvider", "Name") |
| 2 | 155 | | .HasName("pk_user_tokens"); |
| 2 | 156 | |
|
| 2 | 157 | | b.ToTable("user_tokens", "syki"); |
| 4 | 158 | | }); |
| | 159 | |
|
| 2 | 160 | | modelBuilder.Entity("Syki.Back.Audit.AuditLog", b => |
| 2 | 161 | | { |
| 2 | 162 | | b.Property<Guid>("Id") |
| 2 | 163 | | .HasColumnType("uuid") |
| 2 | 164 | | .HasColumnName("id"); |
| 2 | 165 | |
|
| 2 | 166 | | b.Property<string>("Action") |
| 2 | 167 | | .IsRequired() |
| 2 | 168 | | .HasColumnType("text") |
| 2 | 169 | | .HasColumnName("action"); |
| 2 | 170 | |
|
| 2 | 171 | | b.Property<DateTime>("CreatedAt") |
| 2 | 172 | | .HasColumnType("timestamp with time zone") |
| 2 | 173 | | .HasColumnName("created_at"); |
| 2 | 174 | |
|
| 2 | 175 | | b.Property<JsonDocument>("Data") |
| 2 | 176 | | .IsRequired() |
| 2 | 177 | | .HasColumnType("jsonb") |
| 2 | 178 | | .HasColumnName("data"); |
| 2 | 179 | |
|
| 2 | 180 | | b.Property<Guid>("EntityId") |
| 2 | 181 | | .HasColumnType("uuid") |
| 2 | 182 | | .HasColumnName("entity_id"); |
| 2 | 183 | |
|
| 2 | 184 | | b.Property<string>("EntityType") |
| 2 | 185 | | .IsRequired() |
| 2 | 186 | | .HasColumnType("text") |
| 2 | 187 | | .HasColumnName("entity_type"); |
| 2 | 188 | |
|
| 2 | 189 | | b.Property<Guid>("InstitutionId") |
| 2 | 190 | | .HasColumnType("uuid") |
| 2 | 191 | | .HasColumnName("institution_id"); |
| 2 | 192 | |
|
| 2 | 193 | | b.Property<Guid>("UserId") |
| 2 | 194 | | .HasColumnType("uuid") |
| 2 | 195 | | .HasColumnName("user_id"); |
| 2 | 196 | |
|
| 2 | 197 | | b.HasKey("Id") |
| 2 | 198 | | .HasName("pk_audit_logs"); |
| 2 | 199 | |
|
| 2 | 200 | | b.HasIndex("InstitutionId", "UserId") |
| 2 | 201 | | .HasDatabaseName("ix_audit_logs_institution_id_user_id"); |
| 2 | 202 | |
|
| 2 | 203 | | b.ToTable("audit_logs", "syki"); |
| 4 | 204 | | }); |
| | 205 | |
|
| 2 | 206 | | modelBuilder.Entity("Syki.Back.Commands.Command", b => |
| 2 | 207 | | { |
| 2 | 208 | | b.Property<Guid>("Id") |
| 2 | 209 | | .HasColumnType("uuid") |
| 2 | 210 | | .HasColumnName("id"); |
| 2 | 211 | |
|
| 2 | 212 | | b.Property<string>("ActivityId") |
| 2 | 213 | | .HasColumnType("text") |
| 2 | 214 | | .HasColumnName("activity_id"); |
| 2 | 215 | |
|
| 2 | 216 | | b.Property<Guid?>("BatchId") |
| 2 | 217 | | .HasColumnType("uuid") |
| 2 | 218 | | .HasColumnName("batch_id"); |
| 2 | 219 | |
|
| 2 | 220 | | b.Property<DateTime>("CreatedAt") |
| 2 | 221 | | .HasColumnType("timestamp with time zone") |
| 2 | 222 | | .HasColumnName("created_at"); |
| 2 | 223 | |
|
| 2 | 224 | | b.Property<string>("Data") |
| 2 | 225 | | .IsRequired() |
| 2 | 226 | | .HasColumnType("text") |
| 2 | 227 | | .HasColumnName("data"); |
| 2 | 228 | |
|
| 2 | 229 | | b.Property<int>("Duration") |
| 2 | 230 | | .HasColumnType("integer") |
| 2 | 231 | | .HasColumnName("duration"); |
| 2 | 232 | |
|
| 2 | 233 | | b.Property<string>("Error") |
| 2 | 234 | | .HasColumnType("text") |
| 2 | 235 | | .HasColumnName("error"); |
| 2 | 236 | |
|
| 2 | 237 | | b.Property<Guid?>("EventId") |
| 2 | 238 | | .HasColumnType("uuid") |
| 2 | 239 | | .HasColumnName("event_id"); |
| 2 | 240 | |
|
| 2 | 241 | | b.Property<Guid>("InstitutionId") |
| 2 | 242 | | .HasColumnType("uuid") |
| 2 | 243 | | .HasColumnName("institution_id"); |
| 2 | 244 | |
|
| 2 | 245 | | b.Property<DateTime?>("NotBefore") |
| 2 | 246 | | .HasColumnType("timestamp with time zone") |
| 2 | 247 | | .HasColumnName("not_before"); |
| 2 | 248 | |
|
| 2 | 249 | | b.Property<Guid?>("OriginalId") |
| 2 | 250 | | .HasColumnType("uuid") |
| 2 | 251 | | .HasColumnName("original_id"); |
| 2 | 252 | |
|
| 2 | 253 | | b.Property<Guid?>("ParentId") |
| 2 | 254 | | .HasColumnType("uuid") |
| 2 | 255 | | .HasColumnName("parent_id"); |
| 2 | 256 | |
|
| 2 | 257 | | b.Property<DateTime?>("ProcessedAt") |
| 2 | 258 | | .HasColumnType("timestamp with time zone") |
| 2 | 259 | | .HasColumnName("processed_at"); |
| 2 | 260 | |
|
| 2 | 261 | | b.Property<Guid?>("ProcessorId") |
| 2 | 262 | | .HasColumnType("uuid") |
| 2 | 263 | | .HasColumnName("processor_id"); |
| 2 | 264 | |
|
| 2 | 265 | | b.Property<string>("Status") |
| 2 | 266 | | .IsRequired() |
| 2 | 267 | | .HasColumnType("text") |
| 2 | 268 | | .HasColumnName("status"); |
| 2 | 269 | |
|
| 2 | 270 | | b.Property<string>("Type") |
| 2 | 271 | | .IsRequired() |
| 2 | 272 | | .HasColumnType("text") |
| 2 | 273 | | .HasColumnName("type"); |
| 2 | 274 | |
|
| 2 | 275 | | b.HasKey("Id") |
| 2 | 276 | | .HasName("pk_commands"); |
| 2 | 277 | |
|
| 2 | 278 | | b.ToTable("commands", "syki"); |
| 4 | 279 | | }); |
| | 280 | |
|
| 2 | 281 | | modelBuilder.Entity("Syki.Back.Commands.CommandBatch", b => |
| 2 | 282 | | { |
| 2 | 283 | | b.Property<Guid>("Id") |
| 2 | 284 | | .HasColumnType("uuid") |
| 2 | 285 | | .HasColumnName("id"); |
| 2 | 286 | |
|
| 2 | 287 | | b.Property<DateTime>("CreatedAt") |
| 2 | 288 | | .HasColumnType("timestamp with time zone") |
| 2 | 289 | | .HasColumnName("created_at"); |
| 2 | 290 | |
|
| 2 | 291 | | b.Property<Guid?>("EventId") |
| 2 | 292 | | .HasColumnType("uuid") |
| 2 | 293 | | .HasColumnName("event_id"); |
| 2 | 294 | |
|
| 2 | 295 | | b.Property<Guid>("InstitutionId") |
| 2 | 296 | | .HasColumnType("uuid") |
| 2 | 297 | | .HasColumnName("institution_id"); |
| 2 | 298 | |
|
| 2 | 299 | | b.Property<Guid?>("NextCommandId") |
| 2 | 300 | | .HasColumnType("uuid") |
| 2 | 301 | | .HasColumnName("next_command_id"); |
| 2 | 302 | |
|
| 2 | 303 | | b.Property<DateTime?>("ProcessedAt") |
| 2 | 304 | | .HasColumnType("timestamp with time zone") |
| 2 | 305 | | .HasColumnName("processed_at"); |
| 2 | 306 | |
|
| 2 | 307 | | b.Property<int>("Size") |
| 2 | 308 | | .HasColumnType("integer") |
| 2 | 309 | | .HasColumnName("size"); |
| 2 | 310 | |
|
| 2 | 311 | | b.Property<Guid?>("SourceCommandId") |
| 2 | 312 | | .HasColumnType("uuid") |
| 2 | 313 | | .HasColumnName("source_command_id"); |
| 2 | 314 | |
|
| 2 | 315 | | b.Property<string>("Status") |
| 2 | 316 | | .IsRequired() |
| 2 | 317 | | .HasColumnType("text") |
| 2 | 318 | | .HasColumnName("status"); |
| 2 | 319 | |
|
| 2 | 320 | | b.Property<string>("Type") |
| 2 | 321 | | .IsRequired() |
| 2 | 322 | | .HasColumnType("text") |
| 2 | 323 | | .HasColumnName("type"); |
| 2 | 324 | |
|
| 2 | 325 | | b.HasKey("Id") |
| 2 | 326 | | .HasName("pk_command_batches"); |
| 2 | 327 | |
|
| 2 | 328 | | b.ToTable("command_batches", "syki"); |
| 4 | 329 | | }); |
| | 330 | |
|
| 2 | 331 | | modelBuilder.Entity("Syki.Back.Events.DomainEvent", b => |
| 2 | 332 | | { |
| 2 | 333 | | b.Property<Guid>("Id") |
| 2 | 334 | | .HasColumnType("uuid") |
| 2 | 335 | | .HasColumnName("id"); |
| 2 | 336 | |
|
| 2 | 337 | | b.Property<string>("ActivityId") |
| 2 | 338 | | .HasColumnType("text") |
| 2 | 339 | | .HasColumnName("activity_id"); |
| 2 | 340 | |
|
| 2 | 341 | | b.Property<string>("Data") |
| 2 | 342 | | .IsRequired() |
| 2 | 343 | | .HasColumnType("text") |
| 2 | 344 | | .HasColumnName("data"); |
| 2 | 345 | |
|
| 2 | 346 | | b.Property<int>("Duration") |
| 2 | 347 | | .HasColumnType("integer") |
| 2 | 348 | | .HasColumnName("duration"); |
| 2 | 349 | |
|
| 2 | 350 | | b.Property<Guid>("EntityId") |
| 2 | 351 | | .HasColumnType("uuid") |
| 2 | 352 | | .HasColumnName("entity_id"); |
| 2 | 353 | |
|
| 2 | 354 | | b.Property<string>("Error") |
| 2 | 355 | | .HasColumnType("text") |
| 2 | 356 | | .HasColumnName("error"); |
| 2 | 357 | |
|
| 2 | 358 | | b.Property<Guid>("InstitutionId") |
| 2 | 359 | | .HasColumnType("uuid") |
| 2 | 360 | | .HasColumnName("institution_id"); |
| 2 | 361 | |
|
| 2 | 362 | | b.Property<DateTime>("OccurredAt") |
| 2 | 363 | | .HasColumnType("timestamp with time zone") |
| 2 | 364 | | .HasColumnName("occurred_at"); |
| 2 | 365 | |
|
| 2 | 366 | | b.Property<DateTime?>("ProcessedAt") |
| 2 | 367 | | .HasColumnType("timestamp with time zone") |
| 2 | 368 | | .HasColumnName("processed_at"); |
| 2 | 369 | |
|
| 2 | 370 | | b.Property<Guid?>("ProcessorId") |
| 2 | 371 | | .HasColumnType("uuid") |
| 2 | 372 | | .HasColumnName("processor_id"); |
| 2 | 373 | |
|
| 2 | 374 | | b.Property<string>("Status") |
| 2 | 375 | | .IsRequired() |
| 2 | 376 | | .HasColumnType("text") |
| 2 | 377 | | .HasColumnName("status"); |
| 2 | 378 | |
|
| 2 | 379 | | b.Property<string>("Type") |
| 2 | 380 | | .IsRequired() |
| 2 | 381 | | .HasColumnType("text") |
| 2 | 382 | | .HasColumnName("type"); |
| 2 | 383 | |
|
| 2 | 384 | | b.HasKey("Id") |
| 2 | 385 | | .HasName("pk_domain_events"); |
| 2 | 386 | |
|
| 2 | 387 | | b.ToTable("domain_events", "syki"); |
| 4 | 388 | | }); |
| | 389 | |
|
| 2 | 390 | | modelBuilder.Entity("Syki.Back.Features.Academic.CallWebhooks.WebhookCall", b => |
| 2 | 391 | | { |
| 2 | 392 | | b.Property<Guid>("Id") |
| 2 | 393 | | .HasColumnType("uuid") |
| 2 | 394 | | .HasColumnName("id"); |
| 2 | 395 | |
|
| 2 | 396 | | b.Property<int>("AttemptsCount") |
| 2 | 397 | | .HasColumnType("integer") |
| 2 | 398 | | .HasColumnName("attempts_count"); |
| 2 | 399 | |
|
| 2 | 400 | | b.Property<DateTime>("CreatedAt") |
| 2 | 401 | | .HasColumnType("timestamp with time zone") |
| 2 | 402 | | .HasColumnName("created_at"); |
| 2 | 403 | |
|
| 2 | 404 | | b.Property<string>("Event") |
| 2 | 405 | | .IsRequired() |
| 2 | 406 | | .HasColumnType("text") |
| 2 | 407 | | .HasColumnName("event"); |
| 2 | 408 | |
|
| 2 | 409 | | b.Property<Guid>("InstitutionId") |
| 2 | 410 | | .HasColumnType("uuid") |
| 2 | 411 | | .HasColumnName("institution_id"); |
| 2 | 412 | |
|
| 2 | 413 | | b.Property<string>("Payload") |
| 2 | 414 | | .IsRequired() |
| 2 | 415 | | .HasColumnType("text") |
| 2 | 416 | | .HasColumnName("payload"); |
| 2 | 417 | |
|
| 2 | 418 | | b.Property<string>("Status") |
| 2 | 419 | | .IsRequired() |
| 2 | 420 | | .HasColumnType("text") |
| 2 | 421 | | .HasColumnName("status"); |
| 2 | 422 | |
|
| 2 | 423 | | b.Property<Guid>("WebhookId") |
| 2 | 424 | | .HasColumnType("uuid") |
| 2 | 425 | | .HasColumnName("webhook_id"); |
| 2 | 426 | |
|
| 2 | 427 | | b.HasKey("Id") |
| 2 | 428 | | .HasName("pk_webhook_calls"); |
| 2 | 429 | |
|
| 2 | 430 | | b.HasIndex("InstitutionId") |
| 2 | 431 | | .HasDatabaseName("ix_webhook_calls_institution_id"); |
| 2 | 432 | |
|
| 2 | 433 | | b.HasIndex("WebhookId") |
| 2 | 434 | | .HasDatabaseName("ix_webhook_calls_webhook_id"); |
| 2 | 435 | |
|
| 2 | 436 | | b.ToTable("webhook_calls", "syki"); |
| 4 | 437 | | }); |
| | 438 | |
|
| 2 | 439 | | modelBuilder.Entity("Syki.Back.Features.Academic.CallWebhooks.WebhookCallAttempt", b => |
| 2 | 440 | | { |
| 2 | 441 | | b.Property<Guid>("Id") |
| 2 | 442 | | .HasColumnType("uuid") |
| 2 | 443 | | .HasColumnName("id"); |
| 2 | 444 | |
|
| 2 | 445 | | b.Property<DateTime>("CreatedAt") |
| 2 | 446 | | .HasColumnType("timestamp with time zone") |
| 2 | 447 | | .HasColumnName("created_at"); |
| 2 | 448 | |
|
| 2 | 449 | | b.Property<string>("Response") |
| 2 | 450 | | .IsRequired() |
| 2 | 451 | | .HasColumnType("text") |
| 2 | 452 | | .HasColumnName("response"); |
| 2 | 453 | |
|
| 2 | 454 | | b.Property<string>("Status") |
| 2 | 455 | | .IsRequired() |
| 2 | 456 | | .HasColumnType("text") |
| 2 | 457 | | .HasColumnName("status"); |
| 2 | 458 | |
|
| 2 | 459 | | b.Property<int>("StatusCode") |
| 2 | 460 | | .HasColumnType("integer") |
| 2 | 461 | | .HasColumnName("status_code"); |
| 2 | 462 | |
|
| 2 | 463 | | b.Property<Guid>("WebhookCallId") |
| 2 | 464 | | .HasColumnType("uuid") |
| 2 | 465 | | .HasColumnName("webhook_call_id"); |
| 2 | 466 | |
|
| 2 | 467 | | b.HasKey("Id") |
| 2 | 468 | | .HasName("pk_webhook_call_attempts"); |
| 2 | 469 | |
|
| 2 | 470 | | b.HasIndex("WebhookCallId") |
| 2 | 471 | | .HasDatabaseName("ix_webhook_call_attempts_webhook_call_id"); |
| 2 | 472 | |
|
| 2 | 473 | | b.ToTable("webhook_call_attempts", "syki"); |
| 4 | 474 | | }); |
| | 475 | |
|
| 2 | 476 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateAcademicPeriod.AcademicPeriod", b => |
| 2 | 477 | | { |
| 2 | 478 | | b.Property<string>("Id") |
| 2 | 479 | | .HasColumnType("text") |
| 2 | 480 | | .HasColumnName("id"); |
| 2 | 481 | |
|
| 2 | 482 | | b.Property<Guid>("InstitutionId") |
| 2 | 483 | | .HasColumnType("uuid") |
| 2 | 484 | | .HasColumnName("institution_id"); |
| 2 | 485 | |
|
| 2 | 486 | | b.Property<DateOnly>("EndAt") |
| 2 | 487 | | .HasColumnType("date") |
| 2 | 488 | | .HasColumnName("end_at"); |
| 2 | 489 | |
|
| 2 | 490 | | b.Property<DateOnly>("StartAt") |
| 2 | 491 | | .HasColumnType("date") |
| 2 | 492 | | .HasColumnName("start_at"); |
| 2 | 493 | |
|
| 2 | 494 | | b.HasKey("Id", "InstitutionId") |
| 2 | 495 | | .HasName("pk_academic_periods"); |
| 2 | 496 | |
|
| 2 | 497 | | b.HasIndex("InstitutionId") |
| 2 | 498 | | .HasDatabaseName("ix_academic_periods_institution_id"); |
| 2 | 499 | |
|
| 2 | 500 | | b.ToTable("academic_periods", "syki"); |
| 4 | 501 | | }); |
| | 502 | |
|
| 2 | 503 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCampus.Campus", b => |
| 2 | 504 | | { |
| 2 | 505 | | b.Property<Guid>("Id") |
| 2 | 506 | | .HasColumnType("uuid") |
| 2 | 507 | | .HasColumnName("id"); |
| 2 | 508 | |
|
| 2 | 509 | | b.Property<int>("Capacity") |
| 2 | 510 | | .HasColumnType("integer") |
| 2 | 511 | | .HasColumnName("capacity"); |
| 2 | 512 | |
|
| 2 | 513 | | b.Property<string>("City") |
| 2 | 514 | | .IsRequired() |
| 2 | 515 | | .HasColumnType("text") |
| 2 | 516 | | .HasColumnName("city"); |
| 2 | 517 | |
|
| 2 | 518 | | b.Property<Guid>("InstitutionId") |
| 2 | 519 | | .HasColumnType("uuid") |
| 2 | 520 | | .HasColumnName("institution_id"); |
| 2 | 521 | |
|
| 2 | 522 | | b.Property<string>("Name") |
| 2 | 523 | | .IsRequired() |
| 2 | 524 | | .HasColumnType("text") |
| 2 | 525 | | .HasColumnName("name"); |
| 2 | 526 | |
|
| 2 | 527 | | b.Property<string>("State") |
| 2 | 528 | | .IsRequired() |
| 2 | 529 | | .HasColumnType("text") |
| 2 | 530 | | .HasColumnName("state"); |
| 2 | 531 | |
|
| 2 | 532 | | b.HasKey("Id") |
| 2 | 533 | | .HasName("pk_campi"); |
| 2 | 534 | |
|
| 2 | 535 | | b.HasIndex("InstitutionId") |
| 2 | 536 | | .HasDatabaseName("ix_campi_institution_id"); |
| 2 | 537 | |
|
| 2 | 538 | | b.ToTable("campi", "syki"); |
| 4 | 539 | | }); |
| | 540 | |
|
| 2 | 541 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateClass.Class", b => |
| 2 | 542 | | { |
| 2 | 543 | | b.Property<Guid>("Id") |
| 2 | 544 | | .HasColumnType("uuid") |
| 2 | 545 | | .HasColumnName("id"); |
| 2 | 546 | |
|
| 2 | 547 | | b.Property<Guid>("DisciplineId") |
| 2 | 548 | | .HasColumnType("uuid") |
| 2 | 549 | | .HasColumnName("discipline_id"); |
| 2 | 550 | |
|
| 2 | 551 | | b.Property<Guid>("InstitutionId") |
| 2 | 552 | | .HasColumnType("uuid") |
| 2 | 553 | | .HasColumnName("institution_id"); |
| 2 | 554 | |
|
| 2 | 555 | | b.Property<string>("PeriodId") |
| 2 | 556 | | .IsRequired() |
| 2 | 557 | | .HasColumnType("text") |
| 2 | 558 | | .HasColumnName("period_id"); |
| 2 | 559 | |
|
| 2 | 560 | | b.Property<string>("Status") |
| 2 | 561 | | .IsRequired() |
| 2 | 562 | | .HasColumnType("text") |
| 2 | 563 | | .HasColumnName("status"); |
| 2 | 564 | |
|
| 2 | 565 | | b.Property<Guid>("TeacherId") |
| 2 | 566 | | .HasColumnType("uuid") |
| 2 | 567 | | .HasColumnName("teacher_id"); |
| 2 | 568 | |
|
| 2 | 569 | | b.Property<int>("Vacancies") |
| 2 | 570 | | .HasColumnType("integer") |
| 2 | 571 | | .HasColumnName("vacancies"); |
| 2 | 572 | |
|
| 2 | 573 | | b.Property<int>("Workload") |
| 2 | 574 | | .HasColumnType("integer") |
| 2 | 575 | | .HasColumnName("workload"); |
| 2 | 576 | |
|
| 2 | 577 | | b.HasKey("Id") |
| 2 | 578 | | .HasName("pk_classes"); |
| 2 | 579 | |
|
| 2 | 580 | | b.HasIndex("DisciplineId") |
| 2 | 581 | | .HasDatabaseName("ix_classes_discipline_id"); |
| 2 | 582 | |
|
| 2 | 583 | | b.HasIndex("TeacherId") |
| 2 | 584 | | .HasDatabaseName("ix_classes_teacher_id"); |
| 2 | 585 | |
|
| 2 | 586 | | b.HasIndex("PeriodId", "InstitutionId") |
| 2 | 587 | | .HasDatabaseName("ix_classes_period_id_institution_id"); |
| 2 | 588 | |
|
| 2 | 589 | | b.ToTable("classes", "syki"); |
| 4 | 590 | | }); |
| | 591 | |
|
| 2 | 592 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateClass.ClassLesson", b => |
| 2 | 593 | | { |
| 2 | 594 | | b.Property<Guid>("Id") |
| 2 | 595 | | .HasColumnType("uuid") |
| 2 | 596 | | .HasColumnName("id"); |
| 2 | 597 | |
|
| 2 | 598 | | b.Property<Guid>("ClassId") |
| 2 | 599 | | .HasColumnType("uuid") |
| 2 | 600 | | .HasColumnName("class_id"); |
| 2 | 601 | |
|
| 2 | 602 | | b.Property<DateOnly>("Date") |
| 2 | 603 | | .HasColumnType("date") |
| 2 | 604 | | .HasColumnName("date"); |
| 2 | 605 | |
|
| 2 | 606 | | b.Property<string>("EndAt") |
| 2 | 607 | | .IsRequired() |
| 2 | 608 | | .HasColumnType("text") |
| 2 | 609 | | .HasColumnName("end_at"); |
| 2 | 610 | |
|
| 2 | 611 | | b.Property<int>("Number") |
| 2 | 612 | | .HasColumnType("integer") |
| 2 | 613 | | .HasColumnName("number"); |
| 2 | 614 | |
|
| 2 | 615 | | b.Property<string>("StartAt") |
| 2 | 616 | | .IsRequired() |
| 2 | 617 | | .HasColumnType("text") |
| 2 | 618 | | .HasColumnName("start_at"); |
| 2 | 619 | |
|
| 2 | 620 | | b.Property<string>("Status") |
| 2 | 621 | | .IsRequired() |
| 2 | 622 | | .HasColumnType("text") |
| 2 | 623 | | .HasColumnName("status"); |
| 2 | 624 | |
|
| 2 | 625 | | b.HasKey("Id") |
| 2 | 626 | | .HasName("pk_class_lessons"); |
| 2 | 627 | |
|
| 2 | 628 | | b.HasIndex("ClassId") |
| 2 | 629 | | .HasDatabaseName("ix_class_lessons_class_id"); |
| 2 | 630 | |
|
| 2 | 631 | | b.ToTable("class_lessons", "syki"); |
| 4 | 632 | | }); |
| | 633 | |
|
| 2 | 634 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateClass.Schedule", b => |
| 2 | 635 | | { |
| 2 | 636 | | b.Property<Guid>("Id") |
| 2 | 637 | | .HasColumnType("uuid") |
| 2 | 638 | | .HasColumnName("id"); |
| 2 | 639 | |
|
| 2 | 640 | | b.Property<Guid>("ClassId") |
| 2 | 641 | | .HasColumnType("uuid") |
| 2 | 642 | | .HasColumnName("class_id"); |
| 2 | 643 | |
|
| 2 | 644 | | b.Property<string>("Day") |
| 2 | 645 | | .IsRequired() |
| 2 | 646 | | .HasColumnType("text") |
| 2 | 647 | | .HasColumnName("day"); |
| 2 | 648 | |
|
| 2 | 649 | | b.Property<string>("EndAt") |
| 2 | 650 | | .IsRequired() |
| 2 | 651 | | .HasColumnType("text") |
| 2 | 652 | | .HasColumnName("end_at"); |
| 2 | 653 | |
|
| 2 | 654 | | b.Property<string>("StartAt") |
| 2 | 655 | | .IsRequired() |
| 2 | 656 | | .HasColumnType("text") |
| 2 | 657 | | .HasColumnName("start_at"); |
| 2 | 658 | |
|
| 2 | 659 | | b.HasKey("Id") |
| 2 | 660 | | .HasName("pk_schedules"); |
| 2 | 661 | |
|
| 2 | 662 | | b.HasIndex("ClassId") |
| 2 | 663 | | .HasDatabaseName("ix_schedules_class_id"); |
| 2 | 664 | |
|
| 2 | 665 | | b.ToTable("schedules", "syki"); |
| 4 | 666 | | }); |
| | 667 | |
|
| 2 | 668 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCourse.Course", b => |
| 2 | 669 | | { |
| 2 | 670 | | b.Property<Guid>("Id") |
| 2 | 671 | | .HasColumnType("uuid") |
| 2 | 672 | | .HasColumnName("id"); |
| 2 | 673 | |
|
| 2 | 674 | | b.Property<Guid>("InstitutionId") |
| 2 | 675 | | .HasColumnType("uuid") |
| 2 | 676 | | .HasColumnName("institution_id"); |
| 2 | 677 | |
|
| 2 | 678 | | b.Property<string>("Name") |
| 2 | 679 | | .IsRequired() |
| 2 | 680 | | .HasColumnType("text") |
| 2 | 681 | | .HasColumnName("name"); |
| 2 | 682 | |
|
| 2 | 683 | | b.Property<string>("Type") |
| 2 | 684 | | .IsRequired() |
| 2 | 685 | | .HasColumnType("text") |
| 2 | 686 | | .HasColumnName("type"); |
| 2 | 687 | |
|
| 2 | 688 | | b.HasKey("Id") |
| 2 | 689 | | .HasName("pk_courses"); |
| 2 | 690 | |
|
| 2 | 691 | | b.HasIndex("InstitutionId") |
| 2 | 692 | | .HasDatabaseName("ix_courses_institution_id"); |
| 2 | 693 | |
|
| 2 | 694 | | b.ToTable("courses", "syki"); |
| 4 | 695 | | }); |
| | 696 | |
|
| 2 | 697 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCourseCurriculum.CourseCurriculum", b => |
| 2 | 698 | | { |
| 2 | 699 | | b.Property<Guid>("Id") |
| 2 | 700 | | .HasColumnType("uuid") |
| 2 | 701 | | .HasColumnName("id"); |
| 2 | 702 | |
|
| 2 | 703 | | b.Property<Guid>("CourseId") |
| 2 | 704 | | .HasColumnType("uuid") |
| 2 | 705 | | .HasColumnName("course_id"); |
| 2 | 706 | |
|
| 2 | 707 | | b.Property<Guid>("InstitutionId") |
| 2 | 708 | | .HasColumnType("uuid") |
| 2 | 709 | | .HasColumnName("institution_id"); |
| 2 | 710 | |
|
| 2 | 711 | | b.Property<string>("Name") |
| 2 | 712 | | .IsRequired() |
| 2 | 713 | | .HasColumnType("text") |
| 2 | 714 | | .HasColumnName("name"); |
| 2 | 715 | |
|
| 2 | 716 | | b.HasKey("Id") |
| 2 | 717 | | .HasName("pk_course_curriculums"); |
| 2 | 718 | |
|
| 2 | 719 | | b.HasIndex("CourseId") |
| 2 | 720 | | .HasDatabaseName("ix_course_curriculums_course_id"); |
| 2 | 721 | |
|
| 2 | 722 | | b.HasIndex("InstitutionId") |
| 2 | 723 | | .HasDatabaseName("ix_course_curriculums_institution_id"); |
| 2 | 724 | |
|
| 2 | 725 | | b.ToTable("course_curriculums", "syki"); |
| 4 | 726 | | }); |
| | 727 | |
|
| 2 | 728 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCourseCurriculum.CourseCurriculumDiscipline", b => |
| 2 | 729 | | { |
| 2 | 730 | | b.Property<Guid>("CourseCurriculumId") |
| 2 | 731 | | .HasColumnType("uuid") |
| 2 | 732 | | .HasColumnName("course_curriculum_id"); |
| 2 | 733 | |
|
| 2 | 734 | | b.Property<Guid>("DisciplineId") |
| 2 | 735 | | .HasColumnType("uuid") |
| 2 | 736 | | .HasColumnName("discipline_id"); |
| 2 | 737 | |
|
| 2 | 738 | | b.Property<byte>("Credits") |
| 2 | 739 | | .HasColumnType("smallint") |
| 2 | 740 | | .HasColumnName("credits"); |
| 2 | 741 | |
|
| 2 | 742 | | b.Property<byte>("Period") |
| 2 | 743 | | .HasColumnType("smallint") |
| 2 | 744 | | .HasColumnName("period"); |
| 2 | 745 | |
|
| 2 | 746 | | b.Property<int>("Workload") |
| 2 | 747 | | .HasColumnType("integer") |
| 2 | 748 | | .HasColumnName("workload"); |
| 2 | 749 | |
|
| 2 | 750 | | b.HasKey("CourseCurriculumId", "DisciplineId") |
| 2 | 751 | | .HasName("pk_course_curriculums__disciplines"); |
| 2 | 752 | |
|
| 2 | 753 | | b.HasIndex("DisciplineId") |
| 2 | 754 | | .HasDatabaseName("ix_course_curriculums__disciplines_discipline_id"); |
| 2 | 755 | |
|
| 2 | 756 | | b.ToTable("course_curriculums__disciplines", "syki"); |
| 4 | 757 | | }); |
| | 758 | |
|
| 2 | 759 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCourseOffering.CourseOffering", b => |
| 2 | 760 | | { |
| 2 | 761 | | b.Property<Guid>("Id") |
| 2 | 762 | | .HasColumnType("uuid") |
| 2 | 763 | | .HasColumnName("id"); |
| 2 | 764 | |
|
| 2 | 765 | | b.Property<Guid>("CampusId") |
| 2 | 766 | | .HasColumnType("uuid") |
| 2 | 767 | | .HasColumnName("campus_id"); |
| 2 | 768 | |
|
| 2 | 769 | | b.Property<Guid>("CourseCurriculumId") |
| 2 | 770 | | .HasColumnType("uuid") |
| 2 | 771 | | .HasColumnName("course_curriculum_id"); |
| 2 | 772 | |
|
| 2 | 773 | | b.Property<Guid>("CourseId") |
| 2 | 774 | | .HasColumnType("uuid") |
| 2 | 775 | | .HasColumnName("course_id"); |
| 2 | 776 | |
|
| 2 | 777 | | b.Property<Guid>("InstitutionId") |
| 2 | 778 | | .HasColumnType("uuid") |
| 2 | 779 | | .HasColumnName("institution_id"); |
| 2 | 780 | |
|
| 2 | 781 | | b.Property<string>("Period") |
| 2 | 782 | | .IsRequired() |
| 2 | 783 | | .HasColumnType("text") |
| 2 | 784 | | .HasColumnName("period"); |
| 2 | 785 | |
|
| 2 | 786 | | b.Property<string>("Shift") |
| 2 | 787 | | .IsRequired() |
| 2 | 788 | | .HasColumnType("text") |
| 2 | 789 | | .HasColumnName("shift"); |
| 2 | 790 | |
|
| 2 | 791 | | b.HasKey("Id") |
| 2 | 792 | | .HasName("pk_course_offerings"); |
| 2 | 793 | |
|
| 2 | 794 | | b.HasIndex("CampusId") |
| 2 | 795 | | .HasDatabaseName("ix_course_offerings_campus_id"); |
| 2 | 796 | |
|
| 2 | 797 | | b.HasIndex("CourseCurriculumId") |
| 2 | 798 | | .HasDatabaseName("ix_course_offerings_course_curriculum_id"); |
| 2 | 799 | |
|
| 2 | 800 | | b.HasIndex("CourseId") |
| 2 | 801 | | .HasDatabaseName("ix_course_offerings_course_id"); |
| 2 | 802 | |
|
| 2 | 803 | | b.HasIndex("InstitutionId") |
| 2 | 804 | | .HasDatabaseName("ix_course_offerings_institution_id"); |
| 2 | 805 | |
|
| 2 | 806 | | b.HasIndex("Period", "InstitutionId") |
| 2 | 807 | | .HasDatabaseName("ix_course_offerings_period_institution_id"); |
| 2 | 808 | |
|
| 2 | 809 | | b.ToTable("course_offerings", "syki"); |
| 4 | 810 | | }); |
| | 811 | |
|
| 2 | 812 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateDiscipline.CourseDiscipline", b => |
| 2 | 813 | | { |
| 2 | 814 | | b.Property<Guid>("CourseId") |
| 2 | 815 | | .HasColumnType("uuid") |
| 2 | 816 | | .HasColumnName("course_id"); |
| 2 | 817 | |
|
| 2 | 818 | | b.Property<Guid>("DisciplineId") |
| 2 | 819 | | .HasColumnType("uuid") |
| 2 | 820 | | .HasColumnName("discipline_id"); |
| 2 | 821 | |
|
| 2 | 822 | | b.HasKey("CourseId", "DisciplineId") |
| 2 | 823 | | .HasName("pk_courses__disciplines"); |
| 2 | 824 | |
|
| 2 | 825 | | b.HasIndex("DisciplineId") |
| 2 | 826 | | .HasDatabaseName("ix_courses__disciplines_discipline_id"); |
| 2 | 827 | |
|
| 2 | 828 | | b.ToTable("courses__disciplines", "syki"); |
| 4 | 829 | | }); |
| | 830 | |
|
| 2 | 831 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateDiscipline.Discipline", b => |
| 2 | 832 | | { |
| 2 | 833 | | b.Property<Guid>("Id") |
| 2 | 834 | | .HasColumnType("uuid") |
| 2 | 835 | | .HasColumnName("id"); |
| 2 | 836 | |
|
| 2 | 837 | | b.Property<string>("Code") |
| 2 | 838 | | .IsRequired() |
| 2 | 839 | | .HasColumnType("text") |
| 2 | 840 | | .HasColumnName("code"); |
| 2 | 841 | |
|
| 2 | 842 | | b.Property<Guid>("InstitutionId") |
| 2 | 843 | | .HasColumnType("uuid") |
| 2 | 844 | | .HasColumnName("institution_id"); |
| 2 | 845 | |
|
| 2 | 846 | | b.Property<string>("Name") |
| 2 | 847 | | .IsRequired() |
| 2 | 848 | | .HasColumnType("text") |
| 2 | 849 | | .HasColumnName("name"); |
| 2 | 850 | |
|
| 2 | 851 | | b.HasKey("Id") |
| 2 | 852 | | .HasName("pk_disciplines"); |
| 2 | 853 | |
|
| 2 | 854 | | b.HasIndex("InstitutionId") |
| 2 | 855 | | .HasDatabaseName("ix_disciplines_institution_id"); |
| 2 | 856 | |
|
| 2 | 857 | | b.ToTable("disciplines", "syki"); |
| 4 | 858 | | }); |
| | 859 | |
|
| 2 | 860 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateEnrollmentPeriod.EnrollmentPeriod", b => |
| 2 | 861 | | { |
| 2 | 862 | | b.Property<string>("Id") |
| 2 | 863 | | .HasColumnType("text") |
| 2 | 864 | | .HasColumnName("id"); |
| 2 | 865 | |
|
| 2 | 866 | | b.Property<Guid>("InstitutionId") |
| 2 | 867 | | .HasColumnType("uuid") |
| 2 | 868 | | .HasColumnName("institution_id"); |
| 2 | 869 | |
|
| 2 | 870 | | b.Property<DateOnly>("EndAt") |
| 2 | 871 | | .HasColumnType("date") |
| 2 | 872 | | .HasColumnName("end_at"); |
| 2 | 873 | |
|
| 2 | 874 | | b.Property<DateOnly>("StartAt") |
| 2 | 875 | | .HasColumnType("date") |
| 2 | 876 | | .HasColumnName("start_at"); |
| 2 | 877 | |
|
| 2 | 878 | | b.HasKey("Id", "InstitutionId") |
| 2 | 879 | | .HasName("pk_enrollment_periods"); |
| 2 | 880 | |
|
| 2 | 881 | | b.ToTable("enrollment_periods", "syki"); |
| 4 | 882 | | }); |
| | 883 | |
|
| 2 | 884 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateNotification.Notification", b => |
| 2 | 885 | | { |
| 2 | 886 | | b.Property<Guid>("Id") |
| 2 | 887 | | .HasColumnType("uuid") |
| 2 | 888 | | .HasColumnName("id"); |
| 2 | 889 | |
|
| 2 | 890 | | b.Property<DateTime>("CreatedAt") |
| 2 | 891 | | .HasColumnType("timestamp with time zone") |
| 2 | 892 | | .HasColumnName("created_at"); |
| 2 | 893 | |
|
| 2 | 894 | | b.Property<string>("Description") |
| 2 | 895 | | .IsRequired() |
| 2 | 896 | | .HasColumnType("text") |
| 2 | 897 | | .HasColumnName("description"); |
| 2 | 898 | |
|
| 2 | 899 | | b.Property<Guid>("InstitutionId") |
| 2 | 900 | | .HasColumnType("uuid") |
| 2 | 901 | | .HasColumnName("institution_id"); |
| 2 | 902 | |
|
| 2 | 903 | | b.Property<string>("Target") |
| 2 | 904 | | .IsRequired() |
| 2 | 905 | | .HasColumnType("text") |
| 2 | 906 | | .HasColumnName("target"); |
| 2 | 907 | |
|
| 2 | 908 | | b.Property<bool>("Timeless") |
| 2 | 909 | | .HasColumnType("boolean") |
| 2 | 910 | | .HasColumnName("timeless"); |
| 2 | 911 | |
|
| 2 | 912 | | b.Property<string>("Title") |
| 2 | 913 | | .IsRequired() |
| 2 | 914 | | .HasColumnType("text") |
| 2 | 915 | | .HasColumnName("title"); |
| 2 | 916 | |
|
| 2 | 917 | | b.HasKey("Id") |
| 2 | 918 | | .HasName("pk_notifications"); |
| 2 | 919 | |
|
| 2 | 920 | | b.HasIndex("InstitutionId") |
| 2 | 921 | | .HasDatabaseName("ix_notifications_institution_id"); |
| 2 | 922 | |
|
| 2 | 923 | | b.ToTable("notifications", "syki"); |
| 4 | 924 | | }); |
| | 925 | |
|
| 2 | 926 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateNotification.UserNotification", b => |
| 2 | 927 | | { |
| 2 | 928 | | b.Property<Guid>("UserId") |
| 2 | 929 | | .HasColumnType("uuid") |
| 2 | 930 | | .HasColumnName("user_id"); |
| 2 | 931 | |
|
| 2 | 932 | | b.Property<Guid>("NotificationId") |
| 2 | 933 | | .HasColumnType("uuid") |
| 2 | 934 | | .HasColumnName("notification_id"); |
| 2 | 935 | |
|
| 2 | 936 | | b.Property<DateTime?>("ViewedAt") |
| 2 | 937 | | .HasColumnType("timestamp with time zone") |
| 2 | 938 | | .HasColumnName("viewed_at"); |
| 2 | 939 | |
|
| 2 | 940 | | b.HasKey("UserId", "NotificationId") |
| 2 | 941 | | .HasName("pk_users__notifications"); |
| 2 | 942 | |
|
| 2 | 943 | | b.HasIndex("NotificationId") |
| 2 | 944 | | .HasDatabaseName("ix_users__notifications_notification_id"); |
| 2 | 945 | |
|
| 2 | 946 | | b.ToTable("users__notifications", "syki"); |
| 4 | 947 | | }); |
| | 948 | |
|
| 2 | 949 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateStudent.SykiStudent", b => |
| 2 | 950 | | { |
| 2 | 951 | | b.Property<Guid>("Id") |
| 2 | 952 | | .HasColumnType("uuid") |
| 2 | 953 | | .HasColumnName("id"); |
| 2 | 954 | |
|
| 2 | 955 | | b.Property<Guid>("CourseOfferingId") |
| 2 | 956 | | .HasColumnType("uuid") |
| 2 | 957 | | .HasColumnName("course_offering_id"); |
| 2 | 958 | |
|
| 2 | 959 | | b.Property<string>("EnrollmentCode") |
| 2 | 960 | | .IsRequired() |
| 2 | 961 | | .HasColumnType("text") |
| 2 | 962 | | .HasColumnName("enrollment_code"); |
| 2 | 963 | |
|
| 2 | 964 | | b.Property<Guid>("InstitutionId") |
| 2 | 965 | | .HasColumnType("uuid") |
| 2 | 966 | | .HasColumnName("institution_id"); |
| 2 | 967 | |
|
| 2 | 968 | | b.Property<string>("Name") |
| 2 | 969 | | .IsRequired() |
| 2 | 970 | | .HasColumnType("text") |
| 2 | 971 | | .HasColumnName("name"); |
| 2 | 972 | |
|
| 2 | 973 | | b.Property<string>("Status") |
| 2 | 974 | | .IsRequired() |
| 2 | 975 | | .HasColumnType("text") |
| 2 | 976 | | .HasColumnName("status"); |
| 2 | 977 | |
|
| 2 | 978 | | b.Property<decimal>("YieldCoefficient") |
| 2 | 979 | | .HasPrecision(4, 2) |
| 2 | 980 | | .HasColumnType("numeric(4,2)") |
| 2 | 981 | | .HasColumnName("yield_coefficient"); |
| 2 | 982 | |
|
| 2 | 983 | | b.HasKey("Id") |
| 2 | 984 | | .HasName("pk_students"); |
| 2 | 985 | |
|
| 2 | 986 | | b.HasIndex("CourseOfferingId") |
| 2 | 987 | | .HasDatabaseName("ix_students_course_offering_id"); |
| 2 | 988 | |
|
| 2 | 989 | | b.HasIndex("EnrollmentCode") |
| 2 | 990 | | .IsUnique() |
| 2 | 991 | | .HasDatabaseName("ix_students_enrollment_code"); |
| 2 | 992 | |
|
| 2 | 993 | | b.HasIndex("InstitutionId", "Id") |
| 2 | 994 | | .IsUnique() |
| 2 | 995 | | .HasDatabaseName("ix_students_institution_id_id"); |
| 2 | 996 | |
|
| 2 | 997 | | b.ToTable("students", "syki"); |
| 4 | 998 | | }); |
| | 999 | |
|
| 2 | 1000 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateTeacher.SykiTeacher", b => |
| 2 | 1001 | | { |
| 2 | 1002 | | b.Property<Guid>("Id") |
| 2 | 1003 | | .HasColumnType("uuid") |
| 2 | 1004 | | .HasColumnName("id"); |
| 2 | 1005 | |
|
| 2 | 1006 | | b.Property<Guid>("InstitutionId") |
| 2 | 1007 | | .HasColumnType("uuid") |
| 2 | 1008 | | .HasColumnName("institution_id"); |
| 2 | 1009 | |
|
| 2 | 1010 | | b.Property<string>("Name") |
| 2 | 1011 | | .IsRequired() |
| 2 | 1012 | | .HasColumnType("text") |
| 2 | 1013 | | .HasColumnName("name"); |
| 2 | 1014 | |
|
| 2 | 1015 | | b.HasKey("Id") |
| 2 | 1016 | | .HasName("pk_teachers"); |
| 2 | 1017 | |
|
| 2 | 1018 | | b.HasIndex("InstitutionId", "Id") |
| 2 | 1019 | | .IsUnique() |
| 2 | 1020 | | .HasDatabaseName("ix_teachers_institution_id_id"); |
| 2 | 1021 | |
|
| 2 | 1022 | | b.ToTable("teachers", "syki"); |
| 4 | 1023 | | }); |
| | 1024 | |
|
| 2 | 1025 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateWebhookSubscription.WebhookAuthentication", b => |
| 2 | 1026 | | { |
| 2 | 1027 | | b.Property<Guid>("Id") |
| 2 | 1028 | | .HasColumnType("uuid") |
| 2 | 1029 | | .HasColumnName("id"); |
| 2 | 1030 | |
|
| 2 | 1031 | | b.Property<string>("ApiKey") |
| 2 | 1032 | | .IsRequired() |
| 2 | 1033 | | .HasColumnType("text") |
| 2 | 1034 | | .HasColumnName("api_key"); |
| 2 | 1035 | |
|
| 2 | 1036 | | b.Property<string>("Type") |
| 2 | 1037 | | .IsRequired() |
| 2 | 1038 | | .HasColumnType("text") |
| 2 | 1039 | | .HasColumnName("type"); |
| 2 | 1040 | |
|
| 2 | 1041 | | b.Property<Guid>("WebhookId") |
| 2 | 1042 | | .HasColumnType("uuid") |
| 2 | 1043 | | .HasColumnName("webhook_id"); |
| 2 | 1044 | |
|
| 2 | 1045 | | b.HasKey("Id") |
| 2 | 1046 | | .HasName("pk_webhook_authentications"); |
| 2 | 1047 | |
|
| 2 | 1048 | | b.HasIndex("WebhookId") |
| 2 | 1049 | | .IsUnique() |
| 2 | 1050 | | .HasDatabaseName("ix_webhook_authentications_webhook_id"); |
| 2 | 1051 | |
|
| 2 | 1052 | | b.ToTable("webhook_authentications", "syki"); |
| 4 | 1053 | | }); |
| | 1054 | |
|
| 2 | 1055 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateWebhookSubscription.WebhookSubscription", b => |
| 2 | 1056 | | { |
| 2 | 1057 | | b.Property<Guid>("Id") |
| 2 | 1058 | | .HasColumnType("uuid") |
| 2 | 1059 | | .HasColumnName("id"); |
| 2 | 1060 | |
|
| 2 | 1061 | | b.Property<DateTime>("CreatedAt") |
| 2 | 1062 | | .HasColumnType("timestamp with time zone") |
| 2 | 1063 | | .HasColumnName("created_at"); |
| 2 | 1064 | |
|
| 2 | 1065 | | b.PrimitiveCollection<string[]>("Events") |
| 2 | 1066 | | .IsRequired() |
| 2 | 1067 | | .HasColumnType("text[]") |
| 2 | 1068 | | .HasColumnName("events"); |
| 2 | 1069 | |
|
| 2 | 1070 | | b.Property<Guid>("InstitutionId") |
| 2 | 1071 | | .HasColumnType("uuid") |
| 2 | 1072 | | .HasColumnName("institution_id"); |
| 2 | 1073 | |
|
| 2 | 1074 | | b.Property<string>("Name") |
| 2 | 1075 | | .IsRequired() |
| 2 | 1076 | | .HasColumnType("text") |
| 2 | 1077 | | .HasColumnName("name"); |
| 2 | 1078 | |
|
| 2 | 1079 | | b.Property<string>("Url") |
| 2 | 1080 | | .IsRequired() |
| 2 | 1081 | | .HasColumnType("text") |
| 2 | 1082 | | .HasColumnName("url"); |
| 2 | 1083 | |
|
| 2 | 1084 | | b.HasKey("Id") |
| 2 | 1085 | | .HasName("pk_webhook_subscriptions"); |
| 2 | 1086 | |
|
| 2 | 1087 | | b.HasIndex("InstitutionId") |
| 2 | 1088 | | .HasDatabaseName("ix_webhook_subscriptions_institution_id"); |
| 2 | 1089 | |
|
| 2 | 1090 | | b.ToTable("webhook_subscriptions", "syki"); |
| 4 | 1091 | | }); |
| | 1092 | |
|
| 2 | 1093 | | modelBuilder.Entity("Syki.Back.Features.Cross.CreateInstitution.Institution", b => |
| 2 | 1094 | | { |
| 2 | 1095 | | b.Property<Guid>("Id") |
| 2 | 1096 | | .HasColumnType("uuid") |
| 2 | 1097 | | .HasColumnName("id"); |
| 2 | 1098 | |
|
| 2 | 1099 | | b.Property<DateTime>("CreatedAt") |
| 2 | 1100 | | .HasColumnType("timestamp with time zone") |
| 2 | 1101 | | .HasColumnName("created_at"); |
| 2 | 1102 | |
|
| 2 | 1103 | | b.Property<string>("Name") |
| 2 | 1104 | | .IsRequired() |
| 2 | 1105 | | .HasColumnType("text") |
| 2 | 1106 | | .HasColumnName("name"); |
| 2 | 1107 | |
|
| 2 | 1108 | | b.HasKey("Id") |
| 2 | 1109 | | .HasName("pk_institutions"); |
| 2 | 1110 | |
|
| 2 | 1111 | | b.ToTable("institutions", "syki"); |
| 4 | 1112 | | }); |
| | 1113 | |
|
| 2 | 1114 | | modelBuilder.Entity("Syki.Back.Features.Cross.CreateInstitution.InstitutionConfigs", b => |
| 2 | 1115 | | { |
| 2 | 1116 | | b.Property<Guid>("InstitutionId") |
| 2 | 1117 | | .HasColumnType("uuid") |
| 2 | 1118 | | .HasColumnName("institution_id"); |
| 2 | 1119 | |
|
| 2 | 1120 | | b.Property<decimal>("FrequencyLimit") |
| 2 | 1121 | | .HasPrecision(4, 2) |
| 2 | 1122 | | .HasColumnType("numeric(4,2)") |
| 2 | 1123 | | .HasColumnName("frequency_limit"); |
| 2 | 1124 | |
|
| 2 | 1125 | | b.Property<decimal>("NoteLimit") |
| 2 | 1126 | | .HasColumnType("numeric") |
| 2 | 1127 | | .HasColumnName("note_limit"); |
| 2 | 1128 | |
|
| 2 | 1129 | | b.HasKey("InstitutionId") |
| 2 | 1130 | | .HasName("pk_institution_configs"); |
| 2 | 1131 | |
|
| 2 | 1132 | | b.ToTable("institution_configs", "syki"); |
| 4 | 1133 | | }); |
| | 1134 | |
|
| 2 | 1135 | | modelBuilder.Entity("Syki.Back.Features.Cross.CreatePendingUserRegister.UserRegister", b => |
| 2 | 1136 | | { |
| 2 | 1137 | | b.Property<Guid>("Id") |
| 2 | 1138 | | .HasColumnType("uuid") |
| 2 | 1139 | | .HasColumnName("id"); |
| 2 | 1140 | |
|
| 2 | 1141 | | b.Property<string>("Email") |
| 2 | 1142 | | .IsRequired() |
| 2 | 1143 | | .HasColumnType("text") |
| 2 | 1144 | | .HasColumnName("email"); |
| 2 | 1145 | |
|
| 2 | 1146 | | b.Property<Guid>("InstitutionId") |
| 2 | 1147 | | .HasColumnType("uuid") |
| 2 | 1148 | | .HasColumnName("institution_id"); |
| 2 | 1149 | |
|
| 2 | 1150 | | b.Property<string>("Status") |
| 2 | 1151 | | .IsRequired() |
| 2 | 1152 | | .HasColumnType("text") |
| 2 | 1153 | | .HasColumnName("status"); |
| 2 | 1154 | |
|
| 2 | 1155 | | b.HasKey("Id") |
| 2 | 1156 | | .HasName("pk_user_registers"); |
| 2 | 1157 | |
|
| 2 | 1158 | | b.HasIndex("Email") |
| 2 | 1159 | | .IsUnique() |
| 2 | 1160 | | .HasDatabaseName("ix_user_registers_email"); |
| 2 | 1161 | |
|
| 2 | 1162 | | b.ToTable("user_registers", "syki"); |
| 4 | 1163 | | }); |
| | 1164 | |
|
| 2 | 1165 | | modelBuilder.Entity("Syki.Back.Features.Cross.CreateUser.SykiRole", b => |
| 2 | 1166 | | { |
| 2 | 1167 | | b.Property<Guid>("Id") |
| 2 | 1168 | | .ValueGeneratedOnAdd() |
| 2 | 1169 | | .HasColumnType("uuid") |
| 2 | 1170 | | .HasColumnName("id"); |
| 2 | 1171 | |
|
| 2 | 1172 | | b.Property<string>("ConcurrencyStamp") |
| 2 | 1173 | | .IsConcurrencyToken() |
| 2 | 1174 | | .HasColumnType("text") |
| 2 | 1175 | | .HasColumnName("concurrency_stamp"); |
| 2 | 1176 | |
|
| 2 | 1177 | | b.Property<string>("Name") |
| 2 | 1178 | | .HasMaxLength(256) |
| 2 | 1179 | | .HasColumnType("character varying(256)") |
| 2 | 1180 | | .HasColumnName("name"); |
| 2 | 1181 | |
|
| 2 | 1182 | | b.Property<string>("NormalizedName") |
| 2 | 1183 | | .HasMaxLength(256) |
| 2 | 1184 | | .HasColumnType("character varying(256)") |
| 2 | 1185 | | .HasColumnName("normalized_name"); |
| 2 | 1186 | |
|
| 2 | 1187 | | b.HasKey("Id") |
| 2 | 1188 | | .HasName("pk_roles"); |
| 2 | 1189 | |
|
| 2 | 1190 | | b.HasIndex("NormalizedName") |
| 2 | 1191 | | .IsUnique() |
| 2 | 1192 | | .HasDatabaseName("role_name_index"); |
| 2 | 1193 | |
|
| 2 | 1194 | | b.ToTable("roles", "syki"); |
| 2 | 1195 | |
|
| 2 | 1196 | | b.HasData( |
| 2 | 1197 | | new |
| 2 | 1198 | | { |
| 2 | 1199 | | Id = new Guid("5912ebe1-9e6a-4ce1-90bf-8490534fb4e1"), |
| 2 | 1200 | | ConcurrencyStamp = "5912ebe1-9e6a-4ce1-90bf-8490534fb4e1", |
| 2 | 1201 | | Name = "Adm", |
| 2 | 1202 | | NormalizedName = "ADM" |
| 2 | 1203 | | }, |
| 2 | 1204 | | new |
| 2 | 1205 | | { |
| 2 | 1206 | | Id = new Guid("78691a7a-f554-42d7-a5cf-8d474b6de0dd"), |
| 2 | 1207 | | ConcurrencyStamp = "78691a7a-f554-42d7-a5cf-8d474b6de0dd", |
| 2 | 1208 | | Name = "Academic", |
| 2 | 1209 | | NormalizedName = "ACADEMIC" |
| 2 | 1210 | | }, |
| 2 | 1211 | | new |
| 2 | 1212 | | { |
| 2 | 1213 | | Id = new Guid("ca6f394f-6fd9-48cc-90a8-b379636a24e7"), |
| 2 | 1214 | | ConcurrencyStamp = "ca6f394f-6fd9-48cc-90a8-b379636a24e7", |
| 2 | 1215 | | Name = "Teacher", |
| 2 | 1216 | | NormalizedName = "TEACHER" |
| 2 | 1217 | | }, |
| 2 | 1218 | | new |
| 2 | 1219 | | { |
| 2 | 1220 | | Id = new Guid("f9ad5139-06c3-4ce2-9748-ecc498b087c7"), |
| 2 | 1221 | | ConcurrencyStamp = "f9ad5139-06c3-4ce2-9748-ecc498b087c7", |
| 2 | 1222 | | Name = "Student", |
| 2 | 1223 | | NormalizedName = "STUDENT" |
| 2 | 1224 | | }); |
| 4 | 1225 | | }); |
| | 1226 | |
|
| 2 | 1227 | | modelBuilder.Entity("Syki.Back.Features.Cross.CreateUser.SykiUser", b => |
| 2 | 1228 | | { |
| 2 | 1229 | | b.Property<Guid>("Id") |
| 2 | 1230 | | .ValueGeneratedOnAdd() |
| 2 | 1231 | | .HasColumnType("uuid") |
| 2 | 1232 | | .HasColumnName("id"); |
| 2 | 1233 | |
|
| 2 | 1234 | | b.Property<int>("AccessFailedCount") |
| 2 | 1235 | | .HasColumnType("integer") |
| 2 | 1236 | | .HasColumnName("access_failed_count"); |
| 2 | 1237 | |
|
| 2 | 1238 | | b.Property<string>("ConcurrencyStamp") |
| 2 | 1239 | | .IsConcurrencyToken() |
| 2 | 1240 | | .HasColumnType("text") |
| 2 | 1241 | | .HasColumnName("concurrency_stamp"); |
| 2 | 1242 | |
|
| 2 | 1243 | | b.Property<DateTime>("CreatedAt") |
| 2 | 1244 | | .HasColumnType("timestamp with time zone") |
| 2 | 1245 | | .HasColumnName("created_at"); |
| 2 | 1246 | |
|
| 2 | 1247 | | b.Property<string>("Email") |
| 2 | 1248 | | .HasMaxLength(256) |
| 2 | 1249 | | .HasColumnType("character varying(256)") |
| 2 | 1250 | | .HasColumnName("email"); |
| 2 | 1251 | |
|
| 2 | 1252 | | b.Property<bool>("EmailConfirmed") |
| 2 | 1253 | | .HasColumnType("boolean") |
| 2 | 1254 | | .HasColumnName("email_confirmed"); |
| 2 | 1255 | |
|
| 2 | 1256 | | b.Property<Guid>("InstitutionId") |
| 2 | 1257 | | .HasColumnType("uuid") |
| 2 | 1258 | | .HasColumnName("institution_id"); |
| 2 | 1259 | |
|
| 2 | 1260 | | b.Property<bool>("LockoutEnabled") |
| 2 | 1261 | | .HasColumnType("boolean") |
| 2 | 1262 | | .HasColumnName("lockout_enabled"); |
| 2 | 1263 | |
|
| 2 | 1264 | | b.Property<DateTimeOffset?>("LockoutEnd") |
| 2 | 1265 | | .HasColumnType("timestamp with time zone") |
| 2 | 1266 | | .HasColumnName("lockout_end"); |
| 2 | 1267 | |
|
| 2 | 1268 | | b.Property<string>("Name") |
| 2 | 1269 | | .IsRequired() |
| 2 | 1270 | | .HasColumnType("text") |
| 2 | 1271 | | .HasColumnName("name"); |
| 2 | 1272 | |
|
| 2 | 1273 | | b.Property<string>("NormalizedEmail") |
| 2 | 1274 | | .HasMaxLength(256) |
| 2 | 1275 | | .HasColumnType("character varying(256)") |
| 2 | 1276 | | .HasColumnName("normalized_email"); |
| 2 | 1277 | |
|
| 2 | 1278 | | b.Property<string>("NormalizedUserName") |
| 2 | 1279 | | .HasMaxLength(256) |
| 2 | 1280 | | .HasColumnType("character varying(256)") |
| 2 | 1281 | | .HasColumnName("normalized_user_name"); |
| 2 | 1282 | |
|
| 2 | 1283 | | b.Property<string>("PasswordHash") |
| 2 | 1284 | | .HasColumnType("text") |
| 2 | 1285 | | .HasColumnName("password_hash"); |
| 2 | 1286 | |
|
| 2 | 1287 | | b.Property<string>("PhoneNumber") |
| 2 | 1288 | | .HasColumnType("text") |
| 2 | 1289 | | .HasColumnName("phone_number"); |
| 2 | 1290 | |
|
| 2 | 1291 | | b.Property<bool>("PhoneNumberConfirmed") |
| 2 | 1292 | | .HasColumnType("boolean") |
| 2 | 1293 | | .HasColumnName("phone_number_confirmed"); |
| 2 | 1294 | |
|
| 2 | 1295 | | b.Property<string>("ProfilePhoto") |
| 2 | 1296 | | .HasColumnType("text") |
| 2 | 1297 | | .HasColumnName("profile_photo"); |
| 2 | 1298 | |
|
| 2 | 1299 | | b.Property<string>("SecurityStamp") |
| 2 | 1300 | | .HasColumnType("text") |
| 2 | 1301 | | .HasColumnName("security_stamp"); |
| 2 | 1302 | |
|
| 2 | 1303 | | b.Property<bool>("TwoFactorEnabled") |
| 2 | 1304 | | .HasColumnType("boolean") |
| 2 | 1305 | | .HasColumnName("two_factor_enabled"); |
| 2 | 1306 | |
|
| 2 | 1307 | | b.Property<string>("UserName") |
| 2 | 1308 | | .HasMaxLength(256) |
| 2 | 1309 | | .HasColumnType("character varying(256)") |
| 2 | 1310 | | .HasColumnName("user_name"); |
| 2 | 1311 | |
|
| 2 | 1312 | | b.HasKey("Id") |
| 2 | 1313 | | .HasName("pk_users"); |
| 2 | 1314 | |
|
| 2 | 1315 | | b.HasAlternateKey("InstitutionId", "Id") |
| 2 | 1316 | | .HasName("ak_asp_net_users_institution_id_id"); |
| 2 | 1317 | |
|
| 2 | 1318 | | b.HasIndex("NormalizedEmail") |
| 2 | 1319 | | .HasDatabaseName("email_index"); |
| 2 | 1320 | |
|
| 2 | 1321 | | b.HasIndex("NormalizedUserName") |
| 2 | 1322 | | .IsUnique() |
| 2 | 1323 | | .HasDatabaseName("user_name_index"); |
| 2 | 1324 | |
|
| 2 | 1325 | | b.ToTable("users", "syki"); |
| 4 | 1326 | | }); |
| | 1327 | |
|
| 2 | 1328 | | modelBuilder.Entity("Syki.Back.Features.Cross.SendResetPasswordToken.ResetPasswordToken", b => |
| 2 | 1329 | | { |
| 2 | 1330 | | b.Property<Guid>("Id") |
| 2 | 1331 | | .HasColumnType("uuid") |
| 2 | 1332 | | .HasColumnName("id"); |
| 2 | 1333 | |
|
| 2 | 1334 | | b.Property<DateTime>("CreatedAt") |
| 2 | 1335 | | .HasColumnType("timestamp with time zone") |
| 2 | 1336 | | .HasColumnName("created_at"); |
| 2 | 1337 | |
|
| 2 | 1338 | | b.Property<Guid>("InstitutionId") |
| 2 | 1339 | | .HasColumnType("uuid") |
| 2 | 1340 | | .HasColumnName("institution_id"); |
| 2 | 1341 | |
|
| 2 | 1342 | | b.Property<string>("Token") |
| 2 | 1343 | | .IsRequired() |
| 2 | 1344 | | .HasColumnType("text") |
| 2 | 1345 | | .HasColumnName("token"); |
| 2 | 1346 | |
|
| 2 | 1347 | | b.Property<DateTime?>("UsedAt") |
| 2 | 1348 | | .HasColumnType("timestamp with time zone") |
| 2 | 1349 | | .HasColumnName("used_at"); |
| 2 | 1350 | |
|
| 2 | 1351 | | b.Property<Guid>("UserId") |
| 2 | 1352 | | .HasColumnType("uuid") |
| 2 | 1353 | | .HasColumnName("user_id"); |
| 2 | 1354 | |
|
| 2 | 1355 | | b.HasKey("Id") |
| 2 | 1356 | | .HasName("pk_reset_password_tokens"); |
| 2 | 1357 | |
|
| 2 | 1358 | | b.HasIndex("InstitutionId") |
| 2 | 1359 | | .HasDatabaseName("ix_reset_password_tokens_institution_id"); |
| 2 | 1360 | |
|
| 2 | 1361 | | b.HasIndex("Token") |
| 2 | 1362 | | .IsUnique() |
| 2 | 1363 | | .HasDatabaseName("ix_reset_password_tokens_token"); |
| 2 | 1364 | |
|
| 2 | 1365 | | b.HasIndex("UserId") |
| 2 | 1366 | | .HasDatabaseName("ix_reset_password_tokens_user_id"); |
| 2 | 1367 | |
|
| 2 | 1368 | | b.ToTable("reset_password_tokens", "syki"); |
| 4 | 1369 | | }); |
| | 1370 | |
|
| 2 | 1371 | | modelBuilder.Entity("Syki.Back.Features.Cross.SetupFeatureFlags.FeatureFlags", b => |
| 2 | 1372 | | { |
| 2 | 1373 | | b.Property<Guid>("Id") |
| 2 | 1374 | | .HasColumnType("uuid") |
| 2 | 1375 | | .HasColumnName("id"); |
| 2 | 1376 | |
|
| 2 | 1377 | | b.Property<bool>("CrossLogin") |
| 2 | 1378 | | .HasColumnType("boolean") |
| 2 | 1379 | | .HasColumnName("cross_login"); |
| 2 | 1380 | |
|
| 2 | 1381 | | b.HasKey("Id") |
| 2 | 1382 | | .HasName("pk_feature_flags"); |
| 2 | 1383 | |
|
| 2 | 1384 | | b.ToTable("feature_flags", "syki"); |
| 4 | 1385 | | }); |
| | 1386 | |
|
| 2 | 1387 | | modelBuilder.Entity("Syki.Back.Features.Student.CreateClassActivityWork.ClassActivityWork", b => |
| 2 | 1388 | | { |
| 2 | 1389 | | b.Property<Guid>("Id") |
| 2 | 1390 | | .HasColumnType("uuid") |
| 2 | 1391 | | .HasColumnName("id"); |
| 2 | 1392 | |
|
| 2 | 1393 | | b.Property<Guid>("ClassActivityId") |
| 2 | 1394 | | .HasColumnType("uuid") |
| 2 | 1395 | | .HasColumnName("class_activity_id"); |
| 2 | 1396 | |
|
| 2 | 1397 | | b.Property<string>("Link") |
| 2 | 1398 | | .HasColumnType("text") |
| 2 | 1399 | | .HasColumnName("link"); |
| 2 | 1400 | |
|
| 2 | 1401 | | b.Property<decimal>("Note") |
| 2 | 1402 | | .HasColumnType("numeric") |
| 2 | 1403 | | .HasColumnName("note"); |
| 2 | 1404 | |
|
| 2 | 1405 | | b.Property<string>("Status") |
| 2 | 1406 | | .IsRequired() |
| 2 | 1407 | | .HasColumnType("text") |
| 2 | 1408 | | .HasColumnName("status"); |
| 2 | 1409 | |
|
| 2 | 1410 | | b.Property<Guid>("SykiStudentId") |
| 2 | 1411 | | .HasColumnType("uuid") |
| 2 | 1412 | | .HasColumnName("syki_student_id"); |
| 2 | 1413 | |
|
| 2 | 1414 | | b.HasKey("Id") |
| 2 | 1415 | | .HasName("pk_class_activity_works"); |
| 2 | 1416 | |
|
| 2 | 1417 | | b.HasIndex("ClassActivityId") |
| 2 | 1418 | | .HasDatabaseName("ix_class_activity_works_class_activity_id"); |
| 2 | 1419 | |
|
| 2 | 1420 | | b.HasIndex("SykiStudentId") |
| 2 | 1421 | | .HasDatabaseName("ix_class_activity_works_syki_student_id"); |
| 2 | 1422 | |
|
| 2 | 1423 | | b.ToTable("class_activity_works", "syki"); |
| 4 | 1424 | | }); |
| | 1425 | |
|
| 2 | 1426 | | modelBuilder.Entity("Syki.Back.Features.Student.CreateStudentEnrollment.ClassStudent", b => |
| 2 | 1427 | | { |
| 2 | 1428 | | b.Property<Guid>("ClassId") |
| 2 | 1429 | | .HasColumnType("uuid") |
| 2 | 1430 | | .HasColumnName("class_id"); |
| 2 | 1431 | |
|
| 2 | 1432 | | b.Property<Guid>("SykiStudentId") |
| 2 | 1433 | | .HasColumnType("uuid") |
| 2 | 1434 | | .HasColumnName("syki_student_id"); |
| 2 | 1435 | |
|
| 2 | 1436 | | b.Property<string>("StudentDisciplineStatus") |
| 2 | 1437 | | .IsRequired() |
| 2 | 1438 | | .HasColumnType("text") |
| 2 | 1439 | | .HasColumnName("student_discipline_status"); |
| 2 | 1440 | |
|
| 2 | 1441 | | b.HasKey("ClassId", "SykiStudentId") |
| 2 | 1442 | | .HasName("pk_classes__students"); |
| 2 | 1443 | |
|
| 2 | 1444 | | b.HasIndex("SykiStudentId") |
| 2 | 1445 | | .HasDatabaseName("ix_classes__students_syki_student_id"); |
| 2 | 1446 | |
|
| 2 | 1447 | | b.ToTable("classes__students", "syki"); |
| 4 | 1448 | | }); |
| | 1449 | |
|
| 2 | 1450 | | modelBuilder.Entity("Syki.Back.Features.Teacher.AddClassActivityNote.StudentClassNote", b => |
| 2 | 1451 | | { |
| 2 | 1452 | | b.Property<Guid>("Id") |
| 2 | 1453 | | .HasColumnType("uuid") |
| 2 | 1454 | | .HasColumnName("id"); |
| 2 | 1455 | |
|
| 2 | 1456 | | b.Property<Guid>("ClassId") |
| 2 | 1457 | | .HasColumnType("uuid") |
| 2 | 1458 | | .HasColumnName("class_id"); |
| 2 | 1459 | |
|
| 2 | 1460 | | b.Property<decimal>("Note") |
| 2 | 1461 | | .HasPrecision(4, 2) |
| 2 | 1462 | | .HasColumnType("numeric(4,2)") |
| 2 | 1463 | | .HasColumnName("note"); |
| 2 | 1464 | |
|
| 2 | 1465 | | b.Property<Guid>("StudentId") |
| 2 | 1466 | | .HasColumnType("uuid") |
| 2 | 1467 | | .HasColumnName("student_id"); |
| 2 | 1468 | |
|
| 2 | 1469 | | b.Property<string>("Type") |
| 2 | 1470 | | .IsRequired() |
| 2 | 1471 | | .HasColumnType("text") |
| 2 | 1472 | | .HasColumnName("type"); |
| 2 | 1473 | |
|
| 2 | 1474 | | b.HasKey("Id") |
| 2 | 1475 | | .HasName("pk_student_class_notes"); |
| 2 | 1476 | |
|
| 2 | 1477 | | b.HasIndex("StudentId") |
| 2 | 1478 | | .HasDatabaseName("ix_student_class_notes_student_id"); |
| 2 | 1479 | |
|
| 2 | 1480 | | b.HasIndex("ClassId", "StudentId", "Type") |
| 2 | 1481 | | .IsUnique() |
| 2 | 1482 | | .HasDatabaseName("ix_student_class_notes_class_id_student_id_type"); |
| 2 | 1483 | |
|
| 2 | 1484 | | b.ToTable("student_class_notes", "syki"); |
| 4 | 1485 | | }); |
| | 1486 | |
|
| 2 | 1487 | | modelBuilder.Entity("Syki.Back.Features.Teacher.CreateClassActivity.ClassActivity", b => |
| 2 | 1488 | | { |
| 2 | 1489 | | b.Property<Guid>("Id") |
| 2 | 1490 | | .HasColumnType("uuid") |
| 2 | 1491 | | .HasColumnName("id"); |
| 2 | 1492 | |
|
| 2 | 1493 | | b.Property<Guid>("ClassId") |
| 2 | 1494 | | .HasColumnType("uuid") |
| 2 | 1495 | | .HasColumnName("class_id"); |
| 2 | 1496 | |
|
| 2 | 1497 | | b.Property<DateTime>("CreatedAt") |
| 2 | 1498 | | .HasColumnType("timestamp with time zone") |
| 2 | 1499 | | .HasColumnName("created_at"); |
| 2 | 1500 | |
|
| 2 | 1501 | | b.Property<string>("Description") |
| 2 | 1502 | | .IsRequired() |
| 2 | 1503 | | .HasColumnType("text") |
| 2 | 1504 | | .HasColumnName("description"); |
| 2 | 1505 | |
|
| 2 | 1506 | | b.Property<DateOnly>("DueDate") |
| 2 | 1507 | | .HasColumnType("date") |
| 2 | 1508 | | .HasColumnName("due_date"); |
| 2 | 1509 | |
|
| 2 | 1510 | | b.Property<string>("DueHour") |
| 2 | 1511 | | .IsRequired() |
| 2 | 1512 | | .HasColumnType("text") |
| 2 | 1513 | | .HasColumnName("due_hour"); |
| 2 | 1514 | |
|
| 2 | 1515 | | b.Property<string>("Note") |
| 2 | 1516 | | .IsRequired() |
| 2 | 1517 | | .HasColumnType("text") |
| 2 | 1518 | | .HasColumnName("note"); |
| 2 | 1519 | |
|
| 2 | 1520 | | b.Property<string>("Status") |
| 2 | 1521 | | .IsRequired() |
| 2 | 1522 | | .HasColumnType("text") |
| 2 | 1523 | | .HasColumnName("status"); |
| 2 | 1524 | |
|
| 2 | 1525 | | b.Property<string>("Title") |
| 2 | 1526 | | .IsRequired() |
| 2 | 1527 | | .HasColumnType("text") |
| 2 | 1528 | | .HasColumnName("title"); |
| 2 | 1529 | |
|
| 2 | 1530 | | b.Property<string>("Type") |
| 2 | 1531 | | .IsRequired() |
| 2 | 1532 | | .HasColumnType("text") |
| 2 | 1533 | | .HasColumnName("type"); |
| 2 | 1534 | |
|
| 2 | 1535 | | b.Property<int>("Weight") |
| 2 | 1536 | | .HasColumnType("integer") |
| 2 | 1537 | | .HasColumnName("weight"); |
| 2 | 1538 | |
|
| 2 | 1539 | | b.HasKey("Id") |
| 2 | 1540 | | .HasName("pk_class_activities"); |
| 2 | 1541 | |
|
| 2 | 1542 | | b.HasIndex("ClassId") |
| 2 | 1543 | | .HasDatabaseName("ix_class_activities_class_id"); |
| 2 | 1544 | |
|
| 2 | 1545 | | b.ToTable("class_activities", "syki"); |
| 4 | 1546 | | }); |
| | 1547 | |
|
| 2 | 1548 | | modelBuilder.Entity("Syki.Back.Features.Teacher.CreateLessonAttendance.ClassLessonAttendance", b => |
| 2 | 1549 | | { |
| 2 | 1550 | | b.Property<Guid>("Id") |
| 2 | 1551 | | .HasColumnType("uuid") |
| 2 | 1552 | | .HasColumnName("id"); |
| 2 | 1553 | |
|
| 2 | 1554 | | b.Property<Guid>("ClassId") |
| 2 | 1555 | | .HasColumnType("uuid") |
| 2 | 1556 | | .HasColumnName("class_id"); |
| 2 | 1557 | |
|
| 2 | 1558 | | b.Property<Guid>("LessonId") |
| 2 | 1559 | | .HasColumnType("uuid") |
| 2 | 1560 | | .HasColumnName("lesson_id"); |
| 2 | 1561 | |
|
| 2 | 1562 | | b.Property<bool>("Present") |
| 2 | 1563 | | .HasColumnType("boolean") |
| 2 | 1564 | | .HasColumnName("present"); |
| 2 | 1565 | |
|
| 2 | 1566 | | b.Property<Guid>("StudentId") |
| 2 | 1567 | | .HasColumnType("uuid") |
| 2 | 1568 | | .HasColumnName("student_id"); |
| 2 | 1569 | |
|
| 2 | 1570 | | b.HasKey("Id") |
| 2 | 1571 | | .HasName("pk_class_lesson_attendances"); |
| 2 | 1572 | |
|
| 2 | 1573 | | b.HasIndex("ClassId") |
| 2 | 1574 | | .HasDatabaseName("ix_class_lesson_attendances_class_id"); |
| 2 | 1575 | |
|
| 2 | 1576 | | b.HasIndex("StudentId") |
| 2 | 1577 | | .HasDatabaseName("ix_class_lesson_attendances_student_id"); |
| 2 | 1578 | |
|
| 2 | 1579 | | b.HasIndex("LessonId", "StudentId") |
| 2 | 1580 | | .IsUnique() |
| 2 | 1581 | | .HasDatabaseName("ix_class_lesson_attendances_lesson_id_student_id"); |
| 2 | 1582 | |
|
| 2 | 1583 | | b.ToTable("class_lesson_attendances", "syki"); |
| 4 | 1584 | | }); |
| | 1585 | |
|
| 2 | 1586 | | modelBuilder.Entity("Syki.Back.Metrics.RequestMetrics", b => |
| 2 | 1587 | | { |
| 2 | 1588 | | b.Property<Guid>("Id") |
| 2 | 1589 | | .HasColumnType("uuid") |
| 2 | 1590 | | .HasColumnName("id"); |
| 2 | 1591 | |
|
| 2 | 1592 | | b.Property<DateTime>("Start") |
| 2 | 1593 | | .HasColumnType("timestamp with time zone") |
| 2 | 1594 | | .HasColumnName("start"); |
| 2 | 1595 | |
|
| 2 | 1596 | | b.Property<DateTime>("Stop") |
| 2 | 1597 | | .HasColumnType("timestamp with time zone") |
| 2 | 1598 | | .HasColumnName("stop"); |
| 2 | 1599 | |
|
| 2 | 1600 | | b.HasKey("Id") |
| 2 | 1601 | | .HasName("pk_request_metrics"); |
| 2 | 1602 | |
|
| 2 | 1603 | | b.ToTable("request_metrics", "syki"); |
| 4 | 1604 | | }); |
| | 1605 | |
|
| 2 | 1606 | | modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b => |
| 2 | 1607 | | { |
| 2 | 1608 | | b.HasOne("Syki.Back.Features.Cross.CreateUser.SykiRole", null) |
| 2 | 1609 | | .WithMany() |
| 2 | 1610 | | .HasForeignKey("RoleId") |
| 2 | 1611 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1612 | | .IsRequired() |
| 2 | 1613 | | .HasConstraintName("fk_role_claims_asp_net_roles_role_id"); |
| 4 | 1614 | | }); |
| | 1615 | |
|
| 2 | 1616 | | modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b => |
| 2 | 1617 | | { |
| 2 | 1618 | | b.HasOne("Syki.Back.Features.Cross.CreateUser.SykiUser", null) |
| 2 | 1619 | | .WithMany() |
| 2 | 1620 | | .HasForeignKey("UserId") |
| 2 | 1621 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1622 | | .IsRequired() |
| 2 | 1623 | | .HasConstraintName("fk_user_claims_asp_net_users_user_id"); |
| 4 | 1624 | | }); |
| | 1625 | |
|
| 2 | 1626 | | modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b => |
| 2 | 1627 | | { |
| 2 | 1628 | | b.HasOne("Syki.Back.Features.Cross.CreateUser.SykiUser", null) |
| 2 | 1629 | | .WithMany() |
| 2 | 1630 | | .HasForeignKey("UserId") |
| 2 | 1631 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1632 | | .IsRequired() |
| 2 | 1633 | | .HasConstraintName("fk_user_logins_asp_net_users_user_id"); |
| 4 | 1634 | | }); |
| | 1635 | |
|
| 2 | 1636 | | modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b => |
| 2 | 1637 | | { |
| 2 | 1638 | | b.HasOne("Syki.Back.Features.Cross.CreateUser.SykiRole", null) |
| 2 | 1639 | | .WithMany() |
| 2 | 1640 | | .HasForeignKey("RoleId") |
| 2 | 1641 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1642 | | .IsRequired() |
| 2 | 1643 | | .HasConstraintName("fk_user_roles_asp_net_roles_role_id"); |
| 2 | 1644 | |
|
| 2 | 1645 | | b.HasOne("Syki.Back.Features.Cross.CreateUser.SykiUser", null) |
| 2 | 1646 | | .WithMany() |
| 2 | 1647 | | .HasForeignKey("UserId") |
| 2 | 1648 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1649 | | .IsRequired() |
| 2 | 1650 | | .HasConstraintName("fk_user_roles_asp_net_users_user_id"); |
| 4 | 1651 | | }); |
| | 1652 | |
|
| 2 | 1653 | | modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b => |
| 2 | 1654 | | { |
| 2 | 1655 | | b.HasOne("Syki.Back.Features.Cross.CreateUser.SykiUser", null) |
| 2 | 1656 | | .WithMany() |
| 2 | 1657 | | .HasForeignKey("UserId") |
| 2 | 1658 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1659 | | .IsRequired() |
| 2 | 1660 | | .HasConstraintName("fk_user_tokens_asp_net_users_user_id"); |
| 4 | 1661 | | }); |
| | 1662 | |
|
| 2 | 1663 | | modelBuilder.Entity("Syki.Back.Audit.AuditLog", b => |
| 2 | 1664 | | { |
| 2 | 1665 | | b.HasOne("Syki.Back.Features.Cross.CreateUser.SykiUser", null) |
| 2 | 1666 | | .WithMany() |
| 2 | 1667 | | .HasForeignKey("InstitutionId", "UserId") |
| 2 | 1668 | | .HasPrincipalKey("InstitutionId", "Id") |
| 2 | 1669 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1670 | | .IsRequired() |
| 2 | 1671 | | .HasConstraintName("fk_audit_logs_asp_net_users_institution_id_user_id"); |
| 4 | 1672 | | }); |
| | 1673 | |
|
| 2 | 1674 | | modelBuilder.Entity("Syki.Back.Features.Academic.CallWebhooks.WebhookCall", b => |
| 2 | 1675 | | { |
| 2 | 1676 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1677 | | .WithMany("WebhookCalls") |
| 2 | 1678 | | .HasForeignKey("InstitutionId") |
| 2 | 1679 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1680 | | .IsRequired() |
| 2 | 1681 | | .HasConstraintName("fk_webhook_calls_institutions_institution_id"); |
| 2 | 1682 | |
|
| 2 | 1683 | | b.HasOne("Syki.Back.Features.Academic.CreateWebhookSubscription.WebhookSubscription", null) |
| 2 | 1684 | | .WithMany("Calls") |
| 2 | 1685 | | .HasForeignKey("WebhookId") |
| 2 | 1686 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1687 | | .IsRequired() |
| 2 | 1688 | | .HasConstraintName("fk_webhook_calls_webhook_subscriptions_webhook_id"); |
| 4 | 1689 | | }); |
| | 1690 | |
|
| 2 | 1691 | | modelBuilder.Entity("Syki.Back.Features.Academic.CallWebhooks.WebhookCallAttempt", b => |
| 2 | 1692 | | { |
| 2 | 1693 | | b.HasOne("Syki.Back.Features.Academic.CallWebhooks.WebhookCall", null) |
| 2 | 1694 | | .WithMany("Attempts") |
| 2 | 1695 | | .HasForeignKey("WebhookCallId") |
| 2 | 1696 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1697 | | .IsRequired() |
| 2 | 1698 | | .HasConstraintName("fk_webhook_call_attempts_webhook_calls_webhook_call_id"); |
| 4 | 1699 | | }); |
| | 1700 | |
|
| 2 | 1701 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateAcademicPeriod.AcademicPeriod", b => |
| 2 | 1702 | | { |
| 2 | 1703 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1704 | | .WithMany("AcademicPeriods") |
| 2 | 1705 | | .HasForeignKey("InstitutionId") |
| 2 | 1706 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1707 | | .IsRequired() |
| 2 | 1708 | | .HasConstraintName("fk_academic_periods_institutions_institution_id"); |
| 4 | 1709 | | }); |
| | 1710 | |
|
| 2 | 1711 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCampus.Campus", b => |
| 2 | 1712 | | { |
| 2 | 1713 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1714 | | .WithMany("Campi") |
| 2 | 1715 | | .HasForeignKey("InstitutionId") |
| 2 | 1716 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1717 | | .IsRequired() |
| 2 | 1718 | | .HasConstraintName("fk_campi_institutions_institution_id"); |
| 4 | 1719 | | }); |
| | 1720 | |
|
| 2 | 1721 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateClass.Class", b => |
| 2 | 1722 | | { |
| 2 | 1723 | | b.HasOne("Syki.Back.Features.Academic.CreateDiscipline.Discipline", "Discipline") |
| 2 | 1724 | | .WithMany() |
| 2 | 1725 | | .HasForeignKey("DisciplineId") |
| 2 | 1726 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1727 | | .IsRequired() |
| 2 | 1728 | | .HasConstraintName("fk_classes_disciplines_discipline_id"); |
| 2 | 1729 | |
|
| 2 | 1730 | | b.HasOne("Syki.Back.Features.Academic.CreateTeacher.SykiTeacher", "Teacher") |
| 2 | 1731 | | .WithMany() |
| 2 | 1732 | | .HasForeignKey("TeacherId") |
| 2 | 1733 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1734 | | .IsRequired() |
| 2 | 1735 | | .HasConstraintName("fk_classes_teachers_teacher_id"); |
| 2 | 1736 | |
|
| 2 | 1737 | | b.HasOne("Syki.Back.Features.Academic.CreateAcademicPeriod.AcademicPeriod", "Period") |
| 2 | 1738 | | .WithMany() |
| 2 | 1739 | | .HasForeignKey("PeriodId", "InstitutionId") |
| 2 | 1740 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1741 | | .IsRequired() |
| 2 | 1742 | | .HasConstraintName("fk_classes_academic_periods_period_id_institution_id"); |
| 2 | 1743 | |
|
| 2 | 1744 | | b.Navigation("Discipline"); |
| 2 | 1745 | |
|
| 2 | 1746 | | b.Navigation("Period"); |
| 2 | 1747 | |
|
| 2 | 1748 | | b.Navigation("Teacher"); |
| 4 | 1749 | | }); |
| | 1750 | |
|
| 2 | 1751 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateClass.ClassLesson", b => |
| 2 | 1752 | | { |
| 2 | 1753 | | b.HasOne("Syki.Back.Features.Academic.CreateClass.Class", null) |
| 2 | 1754 | | .WithMany("Lessons") |
| 2 | 1755 | | .HasForeignKey("ClassId") |
| 2 | 1756 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1757 | | .IsRequired() |
| 2 | 1758 | | .HasConstraintName("fk_class_lessons_classes_class_id"); |
| 4 | 1759 | | }); |
| | 1760 | |
|
| 2 | 1761 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateClass.Schedule", b => |
| 2 | 1762 | | { |
| 2 | 1763 | | b.HasOne("Syki.Back.Features.Academic.CreateClass.Class", null) |
| 2 | 1764 | | .WithMany("Schedules") |
| 2 | 1765 | | .HasForeignKey("ClassId") |
| 2 | 1766 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1767 | | .IsRequired() |
| 2 | 1768 | | .HasConstraintName("fk_schedules_classes_class_id"); |
| 4 | 1769 | | }); |
| | 1770 | |
|
| 2 | 1771 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCourse.Course", b => |
| 2 | 1772 | | { |
| 2 | 1773 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1774 | | .WithMany("Courses") |
| 2 | 1775 | | .HasForeignKey("InstitutionId") |
| 2 | 1776 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1777 | | .IsRequired() |
| 2 | 1778 | | .HasConstraintName("fk_courses_institutions_institution_id"); |
| 4 | 1779 | | }); |
| | 1780 | |
|
| 2 | 1781 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCourseCurriculum.CourseCurriculum", b => |
| 2 | 1782 | | { |
| 2 | 1783 | | b.HasOne("Syki.Back.Features.Academic.CreateCourse.Course", "Course") |
| 2 | 1784 | | .WithMany("CourseCurriculums") |
| 2 | 1785 | | .HasForeignKey("CourseId") |
| 2 | 1786 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1787 | | .IsRequired() |
| 2 | 1788 | | .HasConstraintName("fk_course_curriculums_courses_course_id"); |
| 2 | 1789 | |
|
| 2 | 1790 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1791 | | .WithMany("CourseCurriculums") |
| 2 | 1792 | | .HasForeignKey("InstitutionId") |
| 2 | 1793 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1794 | | .IsRequired() |
| 2 | 1795 | | .HasConstraintName("fk_course_curriculums_institutions_institution_id"); |
| 2 | 1796 | |
|
| 2 | 1797 | | b.Navigation("Course"); |
| 4 | 1798 | | }); |
| | 1799 | |
|
| 2 | 1800 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCourseCurriculum.CourseCurriculumDiscipline", b => |
| 2 | 1801 | | { |
| 2 | 1802 | | b.HasOne("Syki.Back.Features.Academic.CreateCourseCurriculum.CourseCurriculum", null) |
| 2 | 1803 | | .WithMany("Links") |
| 2 | 1804 | | .HasForeignKey("CourseCurriculumId") |
| 2 | 1805 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1806 | | .IsRequired() |
| 2 | 1807 | | .HasConstraintName("fk_course_curriculums__disciplines_course_curriculums_course_c"); |
| 2 | 1808 | |
|
| 2 | 1809 | | b.HasOne("Syki.Back.Features.Academic.CreateDiscipline.Discipline", null) |
| 2 | 1810 | | .WithMany() |
| 2 | 1811 | | .HasForeignKey("DisciplineId") |
| 2 | 1812 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1813 | | .IsRequired() |
| 2 | 1814 | | .HasConstraintName("fk_course_curriculums__disciplines_disciplines_discipline_id"); |
| 4 | 1815 | | }); |
| | 1816 | |
|
| 2 | 1817 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCourseOffering.CourseOffering", b => |
| 2 | 1818 | | { |
| 2 | 1819 | | b.HasOne("Syki.Back.Features.Academic.CreateCampus.Campus", "Campus") |
| 2 | 1820 | | .WithMany() |
| 2 | 1821 | | .HasForeignKey("CampusId") |
| 2 | 1822 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1823 | | .IsRequired() |
| 2 | 1824 | | .HasConstraintName("fk_course_offerings_campi_campus_id"); |
| 2 | 1825 | |
|
| 2 | 1826 | | b.HasOne("Syki.Back.Features.Academic.CreateCourseCurriculum.CourseCurriculum", "CourseCurriculum") |
| 2 | 1827 | | .WithMany() |
| 2 | 1828 | | .HasForeignKey("CourseCurriculumId") |
| 2 | 1829 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1830 | | .IsRequired() |
| 2 | 1831 | | .HasConstraintName("fk_course_offerings_course_curriculums_course_curriculum_id"); |
| 2 | 1832 | |
|
| 2 | 1833 | | b.HasOne("Syki.Back.Features.Academic.CreateCourse.Course", "Course") |
| 2 | 1834 | | .WithMany() |
| 2 | 1835 | | .HasForeignKey("CourseId") |
| 2 | 1836 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1837 | | .IsRequired() |
| 2 | 1838 | | .HasConstraintName("fk_course_offerings_courses_course_id"); |
| 2 | 1839 | |
|
| 2 | 1840 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1841 | | .WithMany("CourseOfferings") |
| 2 | 1842 | | .HasForeignKey("InstitutionId") |
| 2 | 1843 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1844 | | .IsRequired() |
| 2 | 1845 | | .HasConstraintName("fk_course_offerings_institutions_institution_id"); |
| 2 | 1846 | |
|
| 2 | 1847 | | b.HasOne("Syki.Back.Features.Academic.CreateAcademicPeriod.AcademicPeriod", null) |
| 2 | 1848 | | .WithMany() |
| 2 | 1849 | | .HasForeignKey("Period", "InstitutionId") |
| 2 | 1850 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1851 | | .IsRequired() |
| 2 | 1852 | | .HasConstraintName("fk_course_offerings_academic_periods_period_institution_id"); |
| 2 | 1853 | |
|
| 2 | 1854 | | b.Navigation("Campus"); |
| 2 | 1855 | |
|
| 2 | 1856 | | b.Navigation("Course"); |
| 2 | 1857 | |
|
| 2 | 1858 | | b.Navigation("CourseCurriculum"); |
| 4 | 1859 | | }); |
| | 1860 | |
|
| 2 | 1861 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateDiscipline.CourseDiscipline", b => |
| 2 | 1862 | | { |
| 2 | 1863 | | b.HasOne("Syki.Back.Features.Academic.CreateCourse.Course", null) |
| 2 | 1864 | | .WithMany("Links") |
| 2 | 1865 | | .HasForeignKey("CourseId") |
| 2 | 1866 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1867 | | .IsRequired() |
| 2 | 1868 | | .HasConstraintName("fk_courses__disciplines_courses_course_id"); |
| 2 | 1869 | |
|
| 2 | 1870 | | b.HasOne("Syki.Back.Features.Academic.CreateDiscipline.Discipline", null) |
| 2 | 1871 | | .WithMany("Links") |
| 2 | 1872 | | .HasForeignKey("DisciplineId") |
| 2 | 1873 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1874 | | .IsRequired() |
| 2 | 1875 | | .HasConstraintName("fk_courses__disciplines_disciplines_discipline_id"); |
| 4 | 1876 | | }); |
| | 1877 | |
|
| 2 | 1878 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateDiscipline.Discipline", b => |
| 2 | 1879 | | { |
| 2 | 1880 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1881 | | .WithMany("Disciplines") |
| 2 | 1882 | | .HasForeignKey("InstitutionId") |
| 2 | 1883 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1884 | | .IsRequired() |
| 2 | 1885 | | .HasConstraintName("fk_disciplines_institutions_institution_id"); |
| 4 | 1886 | | }); |
| | 1887 | |
|
| 2 | 1888 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateEnrollmentPeriod.EnrollmentPeriod", b => |
| 2 | 1889 | | { |
| 2 | 1890 | | b.HasOne("Syki.Back.Features.Academic.CreateAcademicPeriod.AcademicPeriod", null) |
| 2 | 1891 | | .WithOne() |
| 2 | 1892 | | .HasForeignKey("Syki.Back.Features.Academic.CreateEnrollmentPeriod.EnrollmentPeriod", "Id", "Ins |
| 2 | 1893 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1894 | | .IsRequired() |
| 2 | 1895 | | .HasConstraintName("fk_enrollment_periods_academic_periods_id_institution_id"); |
| 4 | 1896 | | }); |
| | 1897 | |
|
| 2 | 1898 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateNotification.Notification", b => |
| 2 | 1899 | | { |
| 2 | 1900 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1901 | | .WithMany("Notifications") |
| 2 | 1902 | | .HasForeignKey("InstitutionId") |
| 2 | 1903 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1904 | | .IsRequired() |
| 2 | 1905 | | .HasConstraintName("fk_notifications_institutions_institution_id"); |
| 4 | 1906 | | }); |
| | 1907 | |
|
| 2 | 1908 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateNotification.UserNotification", b => |
| 2 | 1909 | | { |
| 2 | 1910 | | b.HasOne("Syki.Back.Features.Academic.CreateNotification.Notification", "Notification") |
| 2 | 1911 | | .WithMany("Users") |
| 2 | 1912 | | .HasForeignKey("NotificationId") |
| 2 | 1913 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1914 | | .IsRequired() |
| 2 | 1915 | | .HasConstraintName("fk_users__notifications_notifications_notification_id"); |
| 2 | 1916 | |
|
| 2 | 1917 | | b.HasOne("Syki.Back.Features.Cross.CreateUser.SykiUser", null) |
| 2 | 1918 | | .WithMany() |
| 2 | 1919 | | .HasForeignKey("UserId") |
| 2 | 1920 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1921 | | .IsRequired() |
| 2 | 1922 | | .HasConstraintName("fk_users__notifications_asp_net_users_user_id"); |
| 2 | 1923 | |
|
| 2 | 1924 | | b.Navigation("Notification"); |
| 4 | 1925 | | }); |
| | 1926 | |
|
| 2 | 1927 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateStudent.SykiStudent", b => |
| 2 | 1928 | | { |
| 2 | 1929 | | b.HasOne("Syki.Back.Features.Academic.CreateCourseOffering.CourseOffering", "CourseOffering") |
| 2 | 1930 | | .WithMany() |
| 2 | 1931 | | .HasForeignKey("CourseOfferingId") |
| 2 | 1932 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1933 | | .IsRequired() |
| 2 | 1934 | | .HasConstraintName("fk_students_course_offerings_course_offering_id"); |
| 2 | 1935 | |
|
| 2 | 1936 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1937 | | .WithMany("Students") |
| 2 | 1938 | | .HasForeignKey("InstitutionId") |
| 2 | 1939 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1940 | | .IsRequired() |
| 2 | 1941 | | .HasConstraintName("fk_students_institutions_institution_id"); |
| 2 | 1942 | |
|
| 2 | 1943 | | b.HasOne("Syki.Back.Features.Cross.CreateUser.SykiUser", "User") |
| 2 | 1944 | | .WithOne() |
| 2 | 1945 | | .HasForeignKey("Syki.Back.Features.Academic.CreateStudent.SykiStudent", "InstitutionId", "Id") |
| 2 | 1946 | | .HasPrincipalKey("Syki.Back.Features.Cross.CreateUser.SykiUser", "InstitutionId", "Id") |
| 2 | 1947 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1948 | | .IsRequired() |
| 2 | 1949 | | .HasConstraintName("fk_students_asp_net_users_institution_id_id"); |
| 2 | 1950 | |
|
| 2 | 1951 | | b.Navigation("CourseOffering"); |
| 2 | 1952 | |
|
| 2 | 1953 | | b.Navigation("User"); |
| 4 | 1954 | | }); |
| | 1955 | |
|
| 2 | 1956 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateTeacher.SykiTeacher", b => |
| 2 | 1957 | | { |
| 2 | 1958 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1959 | | .WithMany("Teachers") |
| 2 | 1960 | | .HasForeignKey("InstitutionId") |
| 2 | 1961 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1962 | | .IsRequired() |
| 2 | 1963 | | .HasConstraintName("fk_teachers_institutions_institution_id"); |
| 2 | 1964 | |
|
| 2 | 1965 | | b.HasOne("Syki.Back.Features.Cross.CreateUser.SykiUser", null) |
| 2 | 1966 | | .WithOne() |
| 2 | 1967 | | .HasForeignKey("Syki.Back.Features.Academic.CreateTeacher.SykiTeacher", "InstitutionId", "Id") |
| 2 | 1968 | | .HasPrincipalKey("Syki.Back.Features.Cross.CreateUser.SykiUser", "InstitutionId", "Id") |
| 2 | 1969 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1970 | | .IsRequired() |
| 2 | 1971 | | .HasConstraintName("fk_teachers_asp_net_users_institution_id_id"); |
| 4 | 1972 | | }); |
| | 1973 | |
|
| 2 | 1974 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateWebhookSubscription.WebhookAuthentication", b => |
| 2 | 1975 | | { |
| 2 | 1976 | | b.HasOne("Syki.Back.Features.Academic.CreateWebhookSubscription.WebhookSubscription", null) |
| 2 | 1977 | | .WithOne("Authentication") |
| 2 | 1978 | | .HasForeignKey("Syki.Back.Features.Academic.CreateWebhookSubscription.WebhookAuthentication", "W |
| 2 | 1979 | | .HasConstraintName("fk_webhook_authentications_webhook_subscriptions_webhook_id"); |
| 4 | 1980 | | }); |
| | 1981 | |
|
| 2 | 1982 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateWebhookSubscription.WebhookSubscription", b => |
| 2 | 1983 | | { |
| 2 | 1984 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1985 | | .WithMany("Webhooks") |
| 2 | 1986 | | .HasForeignKey("InstitutionId") |
| 2 | 1987 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1988 | | .IsRequired() |
| 2 | 1989 | | .HasConstraintName("fk_webhook_subscriptions_institutions_institution_id"); |
| 4 | 1990 | | }); |
| | 1991 | |
|
| 2 | 1992 | | modelBuilder.Entity("Syki.Back.Features.Cross.CreateInstitution.InstitutionConfigs", b => |
| 2 | 1993 | | { |
| 2 | 1994 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 1995 | | .WithOne("Configs") |
| 2 | 1996 | | .HasForeignKey("Syki.Back.Features.Cross.CreateInstitution.InstitutionConfigs", "InstitutionId") |
| 2 | 1997 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 1998 | | .IsRequired() |
| 2 | 1999 | | .HasConstraintName("fk_institution_configs_institutions_institution_id"); |
| 4 | 2000 | | }); |
| | 2001 | |
|
| 2 | 2002 | | modelBuilder.Entity("Syki.Back.Features.Cross.CreateUser.SykiUser", b => |
| 2 | 2003 | | { |
| 2 | 2004 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 2005 | | .WithMany("Users") |
| 2 | 2006 | | .HasForeignKey("InstitutionId") |
| 2 | 2007 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2008 | | .IsRequired() |
| 2 | 2009 | | .HasConstraintName("fk_users_institutions_institution_id"); |
| 4 | 2010 | | }); |
| | 2011 | |
|
| 2 | 2012 | | modelBuilder.Entity("Syki.Back.Features.Cross.SendResetPasswordToken.ResetPasswordToken", b => |
| 2 | 2013 | | { |
| 2 | 2014 | | b.HasOne("Syki.Back.Features.Cross.CreateInstitution.Institution", null) |
| 2 | 2015 | | .WithMany() |
| 2 | 2016 | | .HasForeignKey("InstitutionId") |
| 2 | 2017 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2018 | | .IsRequired() |
| 2 | 2019 | | .HasConstraintName("fk_reset_password_tokens_institutions_institution_id"); |
| 2 | 2020 | |
|
| 2 | 2021 | | b.HasOne("Syki.Back.Features.Cross.CreateUser.SykiUser", null) |
| 2 | 2022 | | .WithMany() |
| 2 | 2023 | | .HasForeignKey("UserId") |
| 2 | 2024 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2025 | | .IsRequired() |
| 2 | 2026 | | .HasConstraintName("fk_reset_password_tokens_asp_net_users_user_id"); |
| 4 | 2027 | | }); |
| | 2028 | |
|
| 2 | 2029 | | modelBuilder.Entity("Syki.Back.Features.Student.CreateClassActivityWork.ClassActivityWork", b => |
| 2 | 2030 | | { |
| 2 | 2031 | | b.HasOne("Syki.Back.Features.Teacher.CreateClassActivity.ClassActivity", null) |
| 2 | 2032 | | .WithMany("Works") |
| 2 | 2033 | | .HasForeignKey("ClassActivityId") |
| 2 | 2034 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2035 | | .IsRequired() |
| 2 | 2036 | | .HasConstraintName("fk_class_activity_works_class_activities_class_activity_id"); |
| 2 | 2037 | |
|
| 2 | 2038 | | b.HasOne("Syki.Back.Features.Academic.CreateStudent.SykiStudent", "SykiStudent") |
| 2 | 2039 | | .WithMany() |
| 2 | 2040 | | .HasForeignKey("SykiStudentId") |
| 2 | 2041 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2042 | | .IsRequired() |
| 2 | 2043 | | .HasConstraintName("fk_class_activity_works_students_syki_student_id"); |
| 2 | 2044 | |
|
| 2 | 2045 | | b.Navigation("SykiStudent"); |
| 4 | 2046 | | }); |
| | 2047 | |
|
| 2 | 2048 | | modelBuilder.Entity("Syki.Back.Features.Student.CreateStudentEnrollment.ClassStudent", b => |
| 2 | 2049 | | { |
| 2 | 2050 | | b.HasOne("Syki.Back.Features.Academic.CreateClass.Class", null) |
| 2 | 2051 | | .WithMany() |
| 2 | 2052 | | .HasForeignKey("ClassId") |
| 2 | 2053 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2054 | | .IsRequired() |
| 2 | 2055 | | .HasConstraintName("fk_classes__students_classes_class_id"); |
| 2 | 2056 | |
|
| 2 | 2057 | | b.HasOne("Syki.Back.Features.Academic.CreateStudent.SykiStudent", null) |
| 2 | 2058 | | .WithMany() |
| 2 | 2059 | | .HasForeignKey("SykiStudentId") |
| 2 | 2060 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2061 | | .IsRequired() |
| 2 | 2062 | | .HasConstraintName("fk_classes__students_students_syki_student_id"); |
| 4 | 2063 | | }); |
| | 2064 | |
|
| 2 | 2065 | | modelBuilder.Entity("Syki.Back.Features.Teacher.AddClassActivityNote.StudentClassNote", b => |
| 2 | 2066 | | { |
| 2 | 2067 | | b.HasOne("Syki.Back.Features.Academic.CreateClass.Class", null) |
| 2 | 2068 | | .WithMany("Notes") |
| 2 | 2069 | | .HasForeignKey("ClassId") |
| 2 | 2070 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2071 | | .IsRequired() |
| 2 | 2072 | | .HasConstraintName("fk_student_class_notes_classes_class_id"); |
| 2 | 2073 | |
|
| 2 | 2074 | | b.HasOne("Syki.Back.Features.Academic.CreateStudent.SykiStudent", null) |
| 2 | 2075 | | .WithMany() |
| 2 | 2076 | | .HasForeignKey("StudentId") |
| 2 | 2077 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2078 | | .IsRequired() |
| 2 | 2079 | | .HasConstraintName("fk_student_class_notes_students_student_id"); |
| 4 | 2080 | | }); |
| | 2081 | |
|
| 2 | 2082 | | modelBuilder.Entity("Syki.Back.Features.Teacher.CreateClassActivity.ClassActivity", b => |
| 2 | 2083 | | { |
| 2 | 2084 | | b.HasOne("Syki.Back.Features.Academic.CreateClass.Class", null) |
| 2 | 2085 | | .WithMany("Activities") |
| 2 | 2086 | | .HasForeignKey("ClassId") |
| 2 | 2087 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2088 | | .IsRequired() |
| 2 | 2089 | | .HasConstraintName("fk_class_activities_classes_class_id"); |
| 4 | 2090 | | }); |
| | 2091 | |
|
| 2 | 2092 | | modelBuilder.Entity("Syki.Back.Features.Teacher.CreateLessonAttendance.ClassLessonAttendance", b => |
| 2 | 2093 | | { |
| 2 | 2094 | | b.HasOne("Syki.Back.Features.Academic.CreateClass.Class", null) |
| 2 | 2095 | | .WithMany() |
| 2 | 2096 | | .HasForeignKey("ClassId") |
| 2 | 2097 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2098 | | .IsRequired() |
| 2 | 2099 | | .HasConstraintName("fk_class_lesson_attendances_classes_class_id"); |
| 2 | 2100 | |
|
| 2 | 2101 | | b.HasOne("Syki.Back.Features.Academic.CreateClass.ClassLesson", null) |
| 2 | 2102 | | .WithMany("Attendances") |
| 2 | 2103 | | .HasForeignKey("LessonId") |
| 2 | 2104 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2105 | | .IsRequired() |
| 2 | 2106 | | .HasConstraintName("fk_class_lesson_attendances_class_lessons_lesson_id"); |
| 2 | 2107 | |
|
| 2 | 2108 | | b.HasOne("Syki.Back.Features.Academic.CreateStudent.SykiStudent", null) |
| 2 | 2109 | | .WithMany() |
| 2 | 2110 | | .HasForeignKey("StudentId") |
| 2 | 2111 | | .OnDelete(DeleteBehavior.Cascade) |
| 2 | 2112 | | .IsRequired() |
| 2 | 2113 | | .HasConstraintName("fk_class_lesson_attendances_students_student_id"); |
| 4 | 2114 | | }); |
| | 2115 | |
|
| 2 | 2116 | | modelBuilder.Entity("Syki.Back.Metrics.RequestMetrics", b => |
| 2 | 2117 | | { |
| 2 | 2118 | | b.OwnsMany("Syki.Back.Metrics.RequestData", "Requests", b1 => |
| 2 | 2119 | | { |
| 2 | 2120 | | b1.Property<Guid>("RequestMetricsId") |
| 2 | 2121 | | .HasColumnType("uuid"); |
| 2 | 2122 | |
|
| 2 | 2123 | | b1.Property<int>("__synthesizedOrdinal") |
| 2 | 2124 | | .ValueGeneratedOnAdd() |
| 2 | 2125 | | .HasColumnType("integer"); |
| 2 | 2126 | |
|
| 2 | 2127 | | b1.Property<string>("Endpoint") |
| 2 | 2128 | | .IsRequired() |
| 2 | 2129 | | .HasColumnType("text"); |
| 2 | 2130 | |
|
| 2 | 2131 | | b1.Property<string>("Values") |
| 2 | 2132 | | .IsRequired() |
| 2 | 2133 | | .HasColumnType("text"); |
| 2 | 2134 | |
|
| 2 | 2135 | | b1.HasKey("RequestMetricsId", "__synthesizedOrdinal") |
| 2 | 2136 | | .HasName("pk_request_metrics"); |
| 2 | 2137 | |
|
| 2 | 2138 | | b1.ToTable("request_metrics", "syki"); |
| 2 | 2139 | |
|
| 2 | 2140 | | b1.ToJson("requests"); |
| 2 | 2141 | |
|
| 2 | 2142 | | b1.WithOwner() |
| 2 | 2143 | | .HasForeignKey("RequestMetricsId") |
| 2 | 2144 | | .HasConstraintName("fk_request_metrics_request_metrics_request_metrics_id"); |
| 4 | 2145 | | }); |
| 2 | 2146 | |
|
| 2 | 2147 | | b.OwnsOne("Syki.Back.Metrics.ResumeData", "Resume", b1 => |
| 2 | 2148 | | { |
| 2 | 2149 | | b1.Property<Guid>("RequestMetricsId") |
| 2 | 2150 | | .HasColumnType("uuid"); |
| 2 | 2151 | |
|
| 2 | 2152 | | b1.Property<int>("Get") |
| 2 | 2153 | | .HasColumnType("integer"); |
| 2 | 2154 | |
|
| 2 | 2155 | | b1.Property<int>("Post") |
| 2 | 2156 | | .HasColumnType("integer"); |
| 2 | 2157 | |
|
| 2 | 2158 | | b1.Property<int>("Put") |
| 2 | 2159 | | .HasColumnType("integer"); |
| 2 | 2160 | |
|
| 2 | 2161 | | b1.Property<int>("Total") |
| 2 | 2162 | | .HasColumnType("integer"); |
| 2 | 2163 | |
|
| 2 | 2164 | | b1.HasKey("RequestMetricsId") |
| 2 | 2165 | | .HasName("pk_request_metrics"); |
| 2 | 2166 | |
|
| 2 | 2167 | | b1.ToTable("request_metrics", "syki"); |
| 2 | 2168 | |
|
| 2 | 2169 | | b1.ToJson("resume"); |
| 2 | 2170 | |
|
| 2 | 2171 | | b1.WithOwner() |
| 2 | 2172 | | .HasForeignKey("RequestMetricsId") |
| 2 | 2173 | | .HasConstraintName("fk_request_metrics_request_metrics_request_metrics_id"); |
| 4 | 2174 | | }); |
| 2 | 2175 | |
|
| 2 | 2176 | | b.Navigation("Requests"); |
| 2 | 2177 | |
|
| 2 | 2178 | | b.Navigation("Resume") |
| 2 | 2179 | | .IsRequired(); |
| 4 | 2180 | | }); |
| | 2181 | |
|
| 2 | 2182 | | modelBuilder.Entity("Syki.Back.Features.Academic.CallWebhooks.WebhookCall", b => |
| 2 | 2183 | | { |
| 2 | 2184 | | b.Navigation("Attempts"); |
| 4 | 2185 | | }); |
| | 2186 | |
|
| 2 | 2187 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateClass.Class", b => |
| 2 | 2188 | | { |
| 2 | 2189 | | b.Navigation("Activities"); |
| 2 | 2190 | |
|
| 2 | 2191 | | b.Navigation("Lessons"); |
| 2 | 2192 | |
|
| 2 | 2193 | | b.Navigation("Notes"); |
| 2 | 2194 | |
|
| 2 | 2195 | | b.Navigation("Schedules"); |
| 4 | 2196 | | }); |
| | 2197 | |
|
| 2 | 2198 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateClass.ClassLesson", b => |
| 2 | 2199 | | { |
| 2 | 2200 | | b.Navigation("Attendances"); |
| 4 | 2201 | | }); |
| | 2202 | |
|
| 2 | 2203 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCourse.Course", b => |
| 2 | 2204 | | { |
| 2 | 2205 | | b.Navigation("CourseCurriculums"); |
| 2 | 2206 | |
|
| 2 | 2207 | | b.Navigation("Links"); |
| 4 | 2208 | | }); |
| | 2209 | |
|
| 2 | 2210 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateCourseCurriculum.CourseCurriculum", b => |
| 2 | 2211 | | { |
| 2 | 2212 | | b.Navigation("Links"); |
| 4 | 2213 | | }); |
| | 2214 | |
|
| 2 | 2215 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateDiscipline.Discipline", b => |
| 2 | 2216 | | { |
| 2 | 2217 | | b.Navigation("Links"); |
| 4 | 2218 | | }); |
| | 2219 | |
|
| 2 | 2220 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateNotification.Notification", b => |
| 2 | 2221 | | { |
| 2 | 2222 | | b.Navigation("Users"); |
| 4 | 2223 | | }); |
| | 2224 | |
|
| 2 | 2225 | | modelBuilder.Entity("Syki.Back.Features.Academic.CreateWebhookSubscription.WebhookSubscription", b => |
| 2 | 2226 | | { |
| 2 | 2227 | | b.Navigation("Authentication") |
| 2 | 2228 | | .IsRequired(); |
| 2 | 2229 | |
|
| 2 | 2230 | | b.Navigation("Calls"); |
| 4 | 2231 | | }); |
| | 2232 | |
|
| 2 | 2233 | | modelBuilder.Entity("Syki.Back.Features.Cross.CreateInstitution.Institution", b => |
| 2 | 2234 | | { |
| 2 | 2235 | | b.Navigation("AcademicPeriods"); |
| 2 | 2236 | |
|
| 2 | 2237 | | b.Navigation("Campi"); |
| 2 | 2238 | |
|
| 2 | 2239 | | b.Navigation("Configs") |
| 2 | 2240 | | .IsRequired(); |
| 2 | 2241 | |
|
| 2 | 2242 | | b.Navigation("CourseCurriculums"); |
| 2 | 2243 | |
|
| 2 | 2244 | | b.Navigation("CourseOfferings"); |
| 2 | 2245 | |
|
| 2 | 2246 | | b.Navigation("Courses"); |
| 2 | 2247 | |
|
| 2 | 2248 | | b.Navigation("Disciplines"); |
| 2 | 2249 | |
|
| 2 | 2250 | | b.Navigation("Notifications"); |
| 2 | 2251 | |
|
| 2 | 2252 | | b.Navigation("Students"); |
| 2 | 2253 | |
|
| 2 | 2254 | | b.Navigation("Teachers"); |
| 2 | 2255 | |
|
| 2 | 2256 | | b.Navigation("Users"); |
| 2 | 2257 | |
|
| 2 | 2258 | | b.Navigation("WebhookCalls"); |
| 2 | 2259 | |
|
| 2 | 2260 | | b.Navigation("Webhooks"); |
| 4 | 2261 | | }); |
| | 2262 | |
|
| 2 | 2263 | | modelBuilder.Entity("Syki.Back.Features.Teacher.CreateClassActivity.ClassActivity", b => |
| 2 | 2264 | | { |
| 2 | 2265 | | b.Navigation("Works"); |
| 4 | 2266 | | }); |
| | 2267 | | #pragma warning restore 612, 618 |
| 2 | 2268 | | } |
| | 2269 | | } |
| | 2270 | | } |