Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion data/migrations/20191217151137_users-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ exports.up = function(knex) {
table.string('last_name', 128).notNullable();
table.string('email', 128).notNullable().unique();
table.string('password', 128).notNullable();
table.string('location');
table.string('avatar_url', 256).defaultTo('');
table.string('github', 128).defaultTo(null);
table.string('linkedin', 128).defaultTo(null);
table.string('description', 400);
table.integer('experience_level').notNullable();
table.string('location');
table.integer('rating');
table.float('hourly_rate');
table
.integer('role_id')
.defaultTo(null)
Expand Down
21 changes: 0 additions & 21 deletions data/migrations/20191217151436_interviewers-table.js

This file was deleted.

18 changes: 0 additions & 18 deletions data/migrations/20191217151549_interviewees-table.js

This file was deleted.

8 changes: 4 additions & 4 deletions data/migrations/20200103203521_appointments.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ exports.up = function(knex) {
table.boolean('canceled').defaultTo(false);
table.boolean('finished').defaultTo(false);
table
.integer('coach_id')
.integer('user_id_one')
.notNullable()
.unsigned()
.references('id')
.inTable('coaches');
.inTable('users');
table
.integer('student_id')
.integer('user_id_two')
.notNullable()
.unsigned()
.references('id')
.inTable('students');
.inTable('users');
table
.integer('topic_id')
.notNullable()
Expand Down
4 changes: 2 additions & 2 deletions data/migrations/20200107121442_appointment-feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ exports.up = function(knex) {
.references('id')
.inTable('appointments');
table
.integer('user_role_id')
.integer('user_id')
.unsigned()
.references('id')
.inTable('user_roles');
.inTable('users');
});
};

Expand Down
54 changes: 54 additions & 0 deletions data/seeds/02-users.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ exports.seed = function(knex) {
avatar_url: 'https://bit.ly/325XJrX',
linkedin: 'https://linkedin.com/in/jaynecarmichaelnorrie',
github: 'https://github.com/jaynecn',
description:
'Jayne worked as a singing teacher for 9 years and is now studying with Lambda School',
hourly_rate: 80,
rating: 5,
experience_level: 3,
},
{
first_name: 'Liam',
Expand All @@ -28,6 +33,11 @@ exports.seed = function(knex) {
avatar_url: 'https://bit.ly/2Q0cbgm',
linkedin: 'https://www.linkedin.com/in/liam-sutton-86254618b/',
github: 'https://github.com/curm90',
description:
'Liam is currently studying full-stack web development at Lambda School. He is especially interested in GraphQL, MongoDB, and Javascript and is determined to finish Labs with more git commits than Dom.',
hourly_rate: 100,
rating: 5,
experience_level: 3,
},
{
first_name: 'Funmi',
Expand All @@ -39,6 +49,11 @@ exports.seed = function(knex) {
avatar_url: 'https://bit.ly/36SwAec',
linkedin: 'https://www.linkedin.com/in/funmilayo-talabi/',
github: 'https://github.com/funmi7',
description:
'Funmi is currently studying full stack web development at Lambda School. She is interested in React, Express, and Redux.',
hourly_rate: 100,
rating: 5,
experience_level: 3,
},
{
first_name: 'Bob',
Expand All @@ -49,6 +64,7 @@ exports.seed = function(knex) {
location: 'Aberdeen',
linkedin: '',
github: '',
experience_level: 1,
},
{
first_name: 'Lizzo',
Expand All @@ -59,6 +75,7 @@ exports.seed = function(knex) {
location: 'Aberdeen',
linkedin: '',
github: '',
experience_level: 1,
},
{
first_name: 'Dom',
Expand All @@ -70,6 +87,11 @@ exports.seed = function(knex) {
avatar_url: 'https://bit.ly/2FtdD5O',
linkedin: 'https://www.linkedin.com/in/dom-eccleston/',
github: 'https://github.com/domeccleston',
description:
'I am currently studying full stack web development at Lambda School and in my spare time I enjoy fly fishing, mountain biking, and practicing the guitar',
hourly_rate: 50,
rating: 4,
experience_level: 3,
},
{
first_name: 'Oladimeji',
Expand All @@ -81,6 +103,10 @@ exports.seed = function(knex) {
avatar_url: 'https://bit.ly/35I1kOT',
linkedin: 'https://www.linkedin.com/in/oladimejiojo/',
github: 'https://github.com/ojokure',
description: `Hi, My name is Oladimeji. I'm a software engineer currently studying CS with Lambda School and I'm all about programming. When not working, I find time to mentor on dev-coach and it will be my pleasure to help you land that dream job.`,
hourly_rate: 100,
rating: 5,
experience_level: 3,
},
{
first_name: 'Benjamin',
Expand All @@ -92,6 +118,11 @@ exports.seed = function(knex) {
avatar_url: 'https://avatars2.githubusercontent.com/u/45399252?s=460&v=4',
linkedin: 'https://www.linkedin.com/in/benjamin-grabow/',
github: 'https://github.com/BenjaminGrabow',
description:
"Hi, I am Ben, a full-stack developer from Berlin. I am proficient in Javascript, React, NodeJS, Express, and Python. After working in teams, researching, overcoming challenges, architecting scalable systems, I've developed strong creative problem-solving, communication, and organizational skills.",
hourly_rate: 50,
rating: 5,
experience_level: 3,
},
{
first_name: 'Peter',
Expand All @@ -102,6 +133,11 @@ exports.seed = function(knex) {
location: 'Aberdeen',
linkedin: '',
github: '',
description:
"I'm a full stack web developer hoping to share my skills in React, Redux, Node, and Express. I am happy to coach you toward career success!",
hourly_rate: 44,
rating: 4,
experience_level: 3,
},
{
first_name: 'Riesen',
Expand All @@ -112,6 +148,10 @@ exports.seed = function(knex) {
location: 'Aberdeen',
linkedin: '',
github: '',
description:
"Hi, I'm an experienced software engineer looking to share my knowledge of algorithms and data structures. Please get in touch to find out more.",
hourly_rate: 49,
experience_level: 3,
},
{
first_name: 'Gabriel',
Expand All @@ -122,6 +162,11 @@ exports.seed = function(knex) {
location: 'Aberdeen',
linkedin: '',
github: '',
description:
'Hello there! I am a full-stack web developer with DevCoach. Let me know how I can help you get a job in development',
hourly_rate: 44,
rating: 4,
experience_level: 3,
},
{
first_name: 'Maria',
Expand All @@ -132,6 +177,10 @@ exports.seed = function(knex) {
location: 'Aberdeen',
linkedin: '',
github: '',
description:
"Hi there, I'm an inexperienced web developer but have watched several tutorials on jQuery, PHP, and HTML. Would love to coach you towards career success",
hourly_rate: 20,
experience_level: 3,
},
{
first_name: 'July',
Expand All @@ -142,6 +191,11 @@ exports.seed = function(knex) {
location: 'Aberdeen',
linkedin: '',
github: '',
description:
'I am currently studying full stack web development at Lambda School and in my spare time I enjoy fly fishing, mountain biking, and practicing the guitar',
hourly_rate: 50,
rating: 4,
experience_level: 3,
},
]);
});
Expand Down
104 changes: 0 additions & 104 deletions data/seeds/03-interviewers.js

This file was deleted.

20 changes: 0 additions & 20 deletions data/seeds/04-interviewees.js

This file was deleted.

Loading