diff --git a/assets/image/icon/hat2.png b/assets/image/icon/hat2.png new file mode 100644 index 0000000..b832bb1 Binary files /dev/null and b/assets/image/icon/hat2.png differ diff --git a/components/settings.vue b/components/settings.vue index 2630895..f4b45af 100644 --- a/components/settings.vue +++ b/components/settings.vue @@ -9,18 +9,33 @@
-

Branch Header

-Letterhead as appears on PDFs. +

Letterhead

+Header as appears on PDFs. avatar
-

Login

+

Profile

+ + + + + + + + +
+ +
+

Login

diff --git a/master.tpl b/master.tpl index f977142..bbf5550 100644 --- a/master.tpl +++ b/master.tpl @@ -5,7 +5,7 @@ content="width=device-width, initial-scale=1, shrink-to-fit=no"> + href="/assets/image/icon/hat2.png" /> Skouter - {{.Title}} diff --git a/migrations/0_29092022_create_main_tables.sql b/migrations/0_29092022_create_main_tables.sql index aa72e08..87d68de 100644 --- a/migrations/0_29092022_create_main_tables.sql +++ b/migrations/0_29092022_create_main_tables.sql @@ -18,6 +18,7 @@ CREATE TABLE user ( first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, password CHAR(64) NOT NULL, + verified BOOLEAN, branch_id INT, /* The password should be a SHA256 hash in hex format. It's length doesn't * vary */ diff --git a/migrations/seed.sql b/migrations/seed.sql index 0cac7de..2d97ba9 100644 --- a/migrations/seed.sql +++ b/migrations/seed.sql @@ -1,7 +1,77 @@ -INSERT INTO user - (firstName, lastName, nmls) +INSERT INTO branch + (type, num ) VALUES - ('Blue Train', 'John Coltrane', 56.99), - ('Giant Steps', 'John Coltrane', 63.99), - ('Jeru', 'Gerry Mulligan', 17.99), - ('Sarah Vaughan', 'Sarah Vaughan', 34.98); + ('NMLS', 'abc123idk'), + ('FSRA', 'another branch'); + +INSERT INTO user + (firstName, + lastName, + password, + nmls, + branch_id, + country, + title, + email, + verified, + status +) VALUES + +( + 'Blue', + 'Coltrane', + sha2('test123', 256), + 'nml415bas', + 0, + 'Canada', + 'Loan Officer', + 'test@example.com', + true, + 'Free' +), + +( + 'Giant', + 'Coltrane', + sha2('test123', 256), + 'jsasd', + 0, + 'USA', + 'Mortgage Broker', + 'unverified@example.com', + false, + 'Free' +), + +( + 'Jeru', + 'Mulligan', + sha2('test123', 256), + 'asb512', + 0, + 'USA', + 'Branch Manager', + 'manager@example.com', + true, + 'Free' +), +; + +INSERT INTO license ( + user_id, + type, + num +) VALUES + +( + (SELECT id FROM user WHERE email='verified@example.com'), + 'NMLS', + 'randomnmls', +), + +( + (SELECT id FROM user WHERE email='manager@example.com'), + 'FSRA', + 'examplefsra', +) +;