created model and crud for event