You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

11 lines
311 B

import {connect} from "@/db/index"
import User from "@/model/User"
const argv = require('minimist')(process.argv.slice(2));
const isForce = !!(argv._.indexOf("force")!=-1) || false
const isAlter = !!(argv._.indexOf("alter")!=-1) || false
connect().then(()=>{
User.sync({force: isForce,alter: isAlter})
})