script to create minig schema