How to add/set an expiration date on the knex

后端 未结 0 1064
春和景丽
春和景丽 2020-12-02 12:59

I have this in mongodb createdAt: { type: Date, expires: 21600, default: Date.now }, and I need this in knex. ex: table.timestamp(\'expires_at\').defaultTo(knex.fn.now() + 2

相关标签:
回答
  • 消灭零回复
提交回复
热议问题