表名:water_electricity

字段:

  • id:主键,自增长
  • dormitory_id:宿舍ID,外键,关联宿舍表
  • year:年份,如2021
  • month:月份,如1代表1月
  • water_amount:本月水费金额
  • electricity_amount:本月电费金额
  • status:缴费状态,0代表未缴费,1代表已缴费
  • created_time:记录创建时间
  • updated_time:记录更新时间

表名:dormitory

字段:

  • id:主键,自增长
  • building_id:所在楼号,外键,关联楼房表
  • room_number:房间号
  • bed_number:床位数量
  • created_time:记录创建时间
  • updated_time:记录更新时间

表名:building

字段:

  • id:主键,自增长
  • name:楼名
  • created_time:记录创建时间
  • updated_time:记录更新时间
设计一个宿舍管理系统的水电缴费功能的数据库表

原文地址: http://www.cveoy.top/t/topic/bmvf 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录