milimoe 2827c53d14
补全数据库表、查询常量类 (#118)
* 补充数据库表

* 更新sqlite

* 添加商店相关的数据库常量类

* add Update_UpdateRoomMaster

* 修改常量类

* 添加  NOTICE 文件

* 添加市场、报价、库存的数据库常量类

* 优化表结构和查询常量类

* 添加 UserCenter 和 Inventory 相关枚举;数据表和 Query 常量类修改

* 添加报价的核心操作

* 涉及库存的物品获取应该使用 Guid 而不是 ItemId

---------

Co-authored-by: yeziuku <yezi@wrss.org>
2025-04-04 23:39:49 +08:00

23 lines
779 B
C#

using Milimoe.FunGame.Core.Interface.Entity;
using Milimoe.FunGame.Core.Library.Constant;
namespace Milimoe.FunGame.Core.Entity
{
public class Offer : BaseEntity
{
public long Offeror { get; set; } = 0;
public long Offeree { get; set; } = 0;
public HashSet<Guid> OfferorItems { get; set; } = [];
public HashSet<Guid> OffereeItems { get; set; } = [];
public DateTime CreateTime { get; set; } = DateTime.Now;
public DateTime? FinishTime { get; set; } = null;
public OfferState Status { get; set; } = OfferState.Created;
public int NegotiatedTimes { get; set; } = 0;
public override bool Equals(IBaseEntity? other)
{
return other is Offer && other?.Id == Id;
}
}
}