首次提交
This commit is contained in:
parent
1101681331
commit
ed171eda88
107 changed files with 1370 additions and 524 deletions
|
|
@ -34,7 +34,7 @@ public class Member extends AbstractBaseEntity {
|
|||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@Column(name = "phone", nullable = false, length = 11)
|
||||
@Column(name = "phone", length = 11)
|
||||
@Comment("手机号")
|
||||
private String phone;
|
||||
|
||||
|
|
@ -55,14 +55,14 @@ public class Member extends AbstractBaseEntity {
|
|||
/**
|
||||
* 累计订单数
|
||||
*/
|
||||
@Column(name = "total_orders", nullable = false)
|
||||
@Column(name = "total_orders")
|
||||
@Comment("累计订单数")
|
||||
private Integer totalOrders = 0;
|
||||
|
||||
/**
|
||||
* 累计消费金额
|
||||
*/
|
||||
@Column(name = "total_amount", nullable = false, precision = 12, scale = 2)
|
||||
@Column(name = "total_amount", precision = 12, scale = 2)
|
||||
@Comment("累计消费金额")
|
||||
private BigDecimal totalAmount = BigDecimal.ZERO;
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ public class Member extends AbstractBaseEntity {
|
|||
|
||||
// ============ 关联关系 ============
|
||||
/**
|
||||
* 商户
|
||||
* 商家
|
||||
*/
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "merchant_id", insertable = false, updatable = false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue