migration, model and JS for todo