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
44 lines
1.8 KiB
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
using Shentun.WebPeis.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.Domain.Entities;
|
|
|
|
namespace Shentun.WebPeis.Configures
|
|
{
|
|
internal class AppointScheduleConfigure : IEntityTypeConfiguration<AppointSchedule>
|
|
{
|
|
public void Configure(EntityTypeBuilder<AppointSchedule> entity)
|
|
{
|
|
entity.HasKey(e => e.AppointScheduleId).HasName("appoint_schedule_pkey");
|
|
|
|
entity.ToTable("appoint_schedule");
|
|
|
|
entity.HasIndex(e => e.AppointDate, "ix_appoint_schedule").IsUnique();
|
|
|
|
entity.Property(e => e.AppointScheduleId)
|
|
.ValueGeneratedNever()
|
|
.HasColumnName("appoint_schedule_id");
|
|
entity.Property(e => e.AppointDate)
|
|
.HasColumnType("timestamp(0) without time zone")
|
|
.HasColumnName("appoint_date");
|
|
entity.Property(e => e.ConcurrencyStamp)
|
|
.HasMaxLength(40)
|
|
.HasColumnName("concurrency_stamp");
|
|
entity.Property(e => e.CreationTime)
|
|
.HasColumnType("timestamp without time zone")
|
|
.HasColumnName("creation_time");
|
|
entity.Property(e => e.CreatorId).HasColumnName("creator_id");
|
|
entity.Property(e => e.LastModificationTime)
|
|
.HasColumnType("timestamp without time zone")
|
|
.HasColumnName("last_modification_time");
|
|
entity.Property(e => e.LastModifierId).HasColumnName("last_modifier_id");
|
|
entity.Property(e => e.AmNumberLimit).HasColumnName("number_limit");
|
|
entity.Property(e => e.PmNumberLimit).HasColumnName("pm_number_limit");
|
|
}
|
|
}
|
|
}
|