Learn how to: define the model by code, setup custom login, setup extended class, use restricting query.