You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.8 KiB

2 years ago
  1. using Microsoft.EntityFrameworkCore;
  2. using Microsoft.EntityFrameworkCore.Metadata.Builders;
  3. using Shentun.WebPeis.Models;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using Volo.Abp.Domain.Entities;
  10. namespace Shentun.WebPeis.Configures
  11. {
  12. internal class AppointScheduleConfigure : IEntityTypeConfiguration<AppointSchedule>
  13. {
  14. public void Configure(EntityTypeBuilder<AppointSchedule> entity)
  15. {
  16. entity.HasKey(e => e.AppointScheduleId).HasName("appoint_schedule_pkey");
  17. entity.ToTable("appoint_schedule");
  18. entity.HasIndex(e => e.AppointDate, "ix_appoint_schedule").IsUnique();
  19. entity.Property(e => e.AppointScheduleId)
  20. .ValueGeneratedNever()
  21. .HasColumnName("appoint_schedule_id");
  22. entity.Property(e => e.AppointDate)
  23. .HasColumnType("timestamp(0) without time zone")
  24. .HasColumnName("appoint_date");
  25. entity.Property(e => e.ConcurrencyStamp)
  26. .HasMaxLength(40)
  27. .HasColumnName("concurrency_stamp");
  28. entity.Property(e => e.CreationTime)
  29. .HasColumnType("timestamp without time zone")
  30. .HasColumnName("creation_time");
  31. entity.Property(e => e.CreatorId).HasColumnName("creator_id");
  32. entity.Property(e => e.LastModificationTime)
  33. .HasColumnType("timestamp without time zone")
  34. .HasColumnName("last_modification_time");
  35. entity.Property(e => e.LastModifierId).HasColumnName("last_modifier_id");
  36. entity.Property(e => e.AmNumberLimit).HasColumnName("number_limit");
  37. entity.Property(e => e.PmNumberLimit).HasColumnName("pm_number_limit");
  38. }
  39. }
  40. }