NightHist To Help for Developers

This table records actions that affect a member's free nights and free program.

Table: night_hist

action
a number from 1 to 5 indicating the action
  1. Set Nights
  2. Take Nights
  3. Clear Free Program
  4. Take Free Program
  5. Set Free Program
id
unique id
member_id
foreign key to member
num_nights
how many nights?
reg_id
foreign key to registration - i.e. for which program the nights were taken.
the_date
date this record was created
time
time this record was created
user_id
foreign key to user

Relations

membermemberbelongs_to
registrationregistrationbelongs_to
whouserbelongs_to