Defines the hooks for each model