decks migration and model