title: how to use strpad in expressjs with sequelize
body: <p>how to implement strpad using expressjs.
  I use sequelize</p>
  <pre class="lang-js prettyprint-override"><code>Order.addHook(&quot;beforeCreate&quot;, async (order, options)=&gt; {
      let count = await Order.count()
      let orderNumber = strpad.left(5,count)
      order.order_number = orderNumber
      order.createdAt = createdAt
      order.updatedAt = null
  })
  
  </code></pre>