Composite primary key on attendance table, changed default to be 0 on isRegistered attribute of attendance table