diff --git a/migrations/2020-10-21-044318_create_employees/up.sql b/migrations/2020-10-21-044318_create_employees/up.sql index 5f216eb..27bd055 100644 --- a/migrations/2020-10-21-044318_create_employees/up.sql +++ b/migrations/2020-10-21-044318_create_employees/up.sql @@ -11,6 +11,7 @@ CREATE TABLE employee_infos ( employee_id SERIAL NOT NULL, locale VARCHAR NOT NULL, name VARCHAR NOT NULL, + role VARCHAR NOT NULL, CONSTRAINT employee_id_fk FOREIGN KEY (employee_id) REFERENCES employees(id) ); diff --git a/src/schema.rs b/src/schema.rs index 98741ee..4189ca7 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -4,6 +4,7 @@ table! { employee_id -> Int4, locale -> Varchar, name -> Varchar, + role -> Varchar, } }