Rename column `users.password` to `encrypted_password`
This commit is contained in:
parent
ea51630d5f
commit
ba62facf07
|
@ -3,5 +3,5 @@
|
|||
CREATE TABLE users (
|
||||
id SERIAL PRIMARY KEY,
|
||||
username VARCHAR NOT NULL,
|
||||
password VARCHAR NOT NULL
|
||||
encrypted_password VARCHAR NOT NULL
|
||||
);
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
pub struct User {
|
||||
pub id: i32,
|
||||
pub username: String,
|
||||
pub password: String,
|
||||
pub encrypted_password: String,
|
||||
}
|
||||
|
|
|
@ -2,6 +2,6 @@ table! {
|
|||
users (id) {
|
||||
id -> Int4,
|
||||
username -> Varchar,
|
||||
password -> Varchar,
|
||||
encrypted_password -> Varchar,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<ul>
|
||||
{{#each users}}
|
||||
<li>{{ this.username }}, {{ this.password }}</li>
|
||||
<li>{{ this.username }}, {{ this.encrypted_password }}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
|
|
Reference in New Issue