Write models js for bakup app.