@@ -10,8 +10,8 @@ You are not allowed to collaborate during the sprint challenge.
1010
1111## Project Set Up
1212
13- - [ ] Run ` npm install ` to install your dependencies.
14- - [ ] Run tests locally executing ` npm test ` .
13+ - [ x ] Run ` npm install ` to install your dependencies.
14+ - [ x ] Run tests locally executing ` npm test ` .
1515
1616## Project Instructions
1717
@@ -43,23 +43,23 @@ Build the migration(s) in Knex inside the `data/migrations` folder using appropr
4343
4444- [ ] A ** project** is what needs to be done and is stored in a ` projects ` table with the following columns:
4545
46- - [ ] ` project_id ` - primary key
47- - [ ] ` project_name ` - required
48- - [ ] ` project_description ` - optional
49- - [ ] ` project_completed ` - the database defaults it to ` false ` (integer 0) if not provided
46+ - [ ] ` project_id ` - primary key - table.increments("project_id")
47+ - [ ] ` project_name ` - required - varchar -notNullable()
48+ - [ ] ` project_description ` - optional - varchar
49+ - [ ] ` project_completed ` - the database defaults it to ` false ` (integer 0) if not provided - boolean - false(0)
5050
51- - [ ] A ** resource** is anything needed to complete a project and is stored in a ` resources ` table with the following columns:
51+ - [ ] A ** resource** is anything needed to complete a project and is stored in a ` resources ` table with the following columns:
5252
53- - [ ] ` resource_id ` - primary key
54- - [ ] ` resource_name ` - required and unique
55- - [ ] ` resource_description ` - optional
53+ - [ ] ` resource_id ` - primary key - table.increments("resource_id")
54+ - [ ] ` resource_name ` - required and unique - notNullable - varchar
55+ - [ ] ` resource_description ` - optional - varchar
5656
5757- [ ] A ** task** is one of the steps needed to complete a project and is stored in a ` tasks ` table with the following columns:
5858
59- - [ ] ` task_id ` - primary key
60- - [ ] ` task_description ` - required
61- - [ ] ` task_notes ` - optional
62- - [ ] ` task_completed ` - the database defaults it to ` false ` (integer 0) if not provided
59+ - [ ] ` task_id ` - primary key - table.increments("task_id")
60+ - [ ] ` task_description ` - required - notNullable - varchar
61+ - [ ] ` task_notes ` - optional - varchar
62+ - [ ] ` task_completed ` - the database defaults it to ` false ` (integer 0) if not provided -boolean (fals)
6363 - [ ] ` project_id ` - required and points to an actual ` project_id ` in the ` projects ` table
6464
6565- [ ] A ** resource assignment** connects a resource and a project, and is stored in a ` project_resources ` table. You decide what columns to use.
0 commit comments