极客正式套餐开通tx
This commit is contained in:
14
Services/Hncore.Pass.Vpn/Domain/AgreementEntity.cs
Normal file
14
Services/Hncore.Pass.Vpn/Domain/AgreementEntity.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Hncore.Infrastructure.DDD;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.Vpn.Domain
|
||||
{
|
||||
public partial class AgreementEntity
|
||||
{
|
||||
public int id { get; set; }
|
||||
public int user_id { get; set; }
|
||||
public int status { get; set; }
|
||||
public string username { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -148,6 +148,15 @@ namespace Hncore.Pass.Vpn.Domain
|
||||
entity.HasKey(p => p.id);
|
||||
entity.Property(e => e.id).ValueGeneratedOnAdd();
|
||||
});
|
||||
|
||||
//上传tx认证
|
||||
modelBuilder.Entity<AgreementEntity>(entity =>
|
||||
{
|
||||
entity.ToTable("use_agreement");
|
||||
|
||||
entity.HasKey(p => p.id);
|
||||
entity.Property(e => e.id).ValueGeneratedOnAdd();
|
||||
});
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user