Download server/migrations/20191130220324_create-user.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/migrations/20191130220324_create-user.js
- Command line
-
hf download hf://spaces/linuxrun/deer/server/migrations/20191130220324_create-user.js
-
curl -L -o 20191130220324_create-user.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/migrations/20191130220324_create-user.js
376 Bytes
| import { addDefaultColumns } from '../src/dbUtil'; | |
| exports.up = async function(knex) { | |
| await knex.schema.createTable('user', table => { | |
| table.increments(); | |
| table.string('account'); | |
| table.string('password'); | |
| table.string('is_vip'); | |
| addDefaultColumns(knex, table); | |
| }); | |
| }; | |
| exports.down = async function(knex) { | |
| await knex.schema.dropTable('user'); | |
| }; | |