Skip to content

Commit

Permalink
feat: udpated user_details schema role default to user when signing up
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Jul 6, 2022
1 parent 183c3d4 commit af3f573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/migrations/20220604090530_schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function up(knex) {
id SERIAL PRIMARY KEY,
first_name VARCHAR(250),
last_name VARCHAR(250),
role VARCHAR(250),
role VARCHAR(250) NOT NULL DEFAULT 'user',
birth_date DATE,
weight INT,
profile_picture_url VARCHAR(500),
Expand Down

0 comments on commit af3f573

Please sign in to comment.