数据结构-1

user(用户表)
 名称类型 解释
 accountString学号/工号
 nameString姓名
 phoneString手机号
 passwordString密码
 isBindPhone

BigInteger

是否绑定手机号 1表示绑定 0表示未绑定
 role

BigInteger

角色
 status

BigInteger

 逻辑删除、 1表示删除、0表示未删除

place(自提点地址表)

名称 类型解释 
placeIdString uuid、用于唯一标识
 placeNameString自提点名称 
 placeAddress String自提点地址 
placeManagerAccountString  自提点管理员工号
status BigInteger 逻辑删除、1表示删除、0表示未删除 

place_asset(自提点资产表)

名称 类型  解释
 placeAssetId String uuid、用于唯一标识
 placeId String 对应自提点唯一标识
 assetId String 对应资产唯一标识
 count BigInteger 余量
 status BigInteger 逻辑删除、1表示删除、0表示未删除

asset(资产表)

 名称 类型 解释
 assetId String uuid、用于唯一标识
 assetName String 资产名
 isApplyBigInteger 是否需要进行借用审核,1需要进行审核,0不需要
pictureUrl String 照片路径
 price BigInteger 价值(人民币)
 count BigInteger 总量
 status BigInteger 逻辑删除、1表示删除、0表示未删除

asset_detail(资产状态明细表)

名称 类型  解释
 assetDetailId Stringuuid、 每个明细资产对应的唯一标识,和二维码绑定一起
currentUserAccountString 当前使用者学号 
 assetId String 资产唯一标识
 placeId String 地点
beginTime  String 开始时间
 endTime String结束时间 
 currentStatusBigInteger 当前状态、1为使用中、0为可借用 、2为审核中、3丢失、4损坏、5已下架
status BigInteger 逻辑删除、1表示删除、0表示未删除 

audit(物资申请审核表)

名称  类型 解释
 auditId String uuid、用于唯一标识
  assetId String 资产Id
 placeId String自提点Id 
 borrowerAccount String 借用者学号
 applyTime String 申请时间
 beginTime String开始时间 
endTime  String结束时间 

 borrowReason

String  借用原因
count  BigInteger借用数量 
 auditAccountString 审核人 
reviewStatus  BigInteger1待审核、 2审核通过、3审核未通过、4、撤销审核

reviewReason String  审核原因
reviewTime  String 审核时间

borrow_history(借用明细表)

名称 类型 解释 
 id String uuid
 assetDetailId String 资产明细id
 borrowerAccount
 String 借用者
 beginTime String 开始时间
 endTime String 结束时间
 updateReason String 归还原因
 status BigInteger 1按时归还 2延期归还 3手动归还

通知表(notice)

名称类型  解释
 id String uuid
 type String 1:借用通知;2:审批通知;3:通用通知;4:仓库管理员通知;
 noticerAccount String 通知人账号
 createTime BigInteger 生成通知信息时间 yyyyMMddHHmmss
 isRead Boolean是否已读; true、false
 content String 内容


事件表(event)

 名称类型  解释
 id String uuid
 type String 1.状态手动更新、2.创建、3.上架、4.下架、5.扫码归还、6.编辑信息、7.扫码借用、8.提交申请、9.审批结果


 assetDetailId String 明细物资
 placeId String 仓库
 operatorAccount String 操作人
 createTime BigInteger 生成时间的时间yyyyMMddHHmmss
 content String 事件内容
 status String 状态