full blown pg
This commit is contained in:
1 parent
245616acd4
commit
dde9646179
13 files changed
+323
-175
No files matched your search
@@ -0,0 +1,17 @@
|
||||
exports.up = async knex => {
|
||||
await knex.schema.createTable('users', table => {
|
||||
table.uuid('id')
|
||||
.primary()
|
||||
.defaultTo(knex.raw('gen_random_uuid()'));
|
||||
|
||||
table.string('discogs')
|
||||
.unique();
|
||||
|
||||
table.jsonb('data')
|
||||
.notNullable();
|
||||
|
||||
table.timestamps(true, true);
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = async () => true;
|
||||
Reference in new issue
Block a user