add model and migrate script for wiki