2023-10-21 06:34:12 +00:00
|
|
|
using FluentNHibernate.Mapping;
|
|
|
|
|
2023-10-14 20:32:12 +00:00
|
|
|
namespace Tiger.Game.Rooms;
|
|
|
|
|
2023-10-21 06:34:12 +00:00
|
|
|
public class RoomPrivateCategoryMap : ClassMap<RoomPrivateCategory>
|
2023-10-14 20:32:12 +00:00
|
|
|
{
|
2023-10-21 06:34:12 +00:00
|
|
|
public RoomPrivateCategoryMap()
|
|
|
|
{
|
|
|
|
Table("room_private_categories");
|
|
|
|
LazyLoad();
|
|
|
|
Id(rpc => rpc.Id).Column("id").GeneratedBy.Identity();
|
|
|
|
Map(rpc => rpc.MinRank).Column("min_rank").Not.Nullable();
|
|
|
|
Map(rpc => rpc.Code).Column("code").Not.Nullable();
|
|
|
|
Map(rpc => rpc.Name).Column("name").Not.Nullable();
|
|
|
|
Map(rpc => rpc.CanTrade).Column("can_trade").Not.Nullable();
|
|
|
|
}
|
2023-10-14 20:32:12 +00:00
|
|
|
}
|