loc: user and book models