Skip to content

Commit 54248ab

Browse files
AllesandriaAllesandria
authored andcommitted
build up export for project table
1 parent 423f995 commit 54248ab

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

data/migrations/20220819053947_projects_table.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11

22
exports.up = function(knex) {
3-
3+
return knex.schema.createTable('projects', tbl => {
4+
tbl.increments('project_id');
5+
tbl.varchar('project_name').notNullable();
6+
tbl.varchar('project_description');
7+
tbl.boolean('project_completed');
8+
})
49

510

611

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
// start your server here
2+
const express

0 commit comments

Comments
 (0)