1
0
Fork 0

Rename column `users.password` to `encrypted_password`

This commit is contained in:
Alex Kotov 2020-10-15 04:17:55 +05:00
parent ea51630d5f
commit ba62facf07
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
4 changed files with 4 additions and 4 deletions

View File

@ -3,5 +3,5 @@
CREATE TABLE users (
id SERIAL PRIMARY KEY,
username VARCHAR NOT NULL,
password VARCHAR NOT NULL
encrypted_password VARCHAR NOT NULL
);

View File

@ -2,5 +2,5 @@
pub struct User {
pub id: i32,
pub username: String,
pub password: String,
pub encrypted_password: String,
}

View File

@ -2,6 +2,6 @@ table! {
users (id) {
id -> Int4,
username -> Varchar,
password -> Varchar,
encrypted_password -> Varchar,
}
}

View File

@ -4,7 +4,7 @@
<ul>
{{#each users}}
<li>{{ this.username }}, {{ this.password }}</li>
<li>{{ this.username }}, {{ this.encrypted_password }}</li>
{{/each}}
</ul>