Download server/src/dbUtil.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 210 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/src/dbUtil.js
- Command line
-
hf download hf://spaces/linuxrun/deer/server/src/dbUtil.js
-
curl -L -o dbUtil.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/src/dbUtil.js
210 Bytes
| export function addDefaultColumns (knex, table) { | |
| table.datetime('created_at').defaultTo(knex.fn.now()); | |
| table.datetime('updated_at').defaultTo(knex.raw('CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP')); | |
| } | |