diff --git a/src/main/java/Model/Account.java b/src/main/java/Model/Account.java index 63d60bb..7f06ad6 100644 --- a/src/main/java/Model/Account.java +++ b/src/main/java/Model/Account.java @@ -112,7 +112,7 @@ public String toString() { return "Account{" + "account_id=" + account_id + ", username='" + username + '\'' + - ", password='" + password + '\'' + + ", password_='" + password + '\'' + '}'; } } diff --git a/src/main/resources/SocialMedia.sql b/src/main/resources/SocialMedia.sql index 4eb1bc5..15b62f7 100644 --- a/src/main/resources/SocialMedia.sql +++ b/src/main/resources/SocialMedia.sql @@ -3,7 +3,7 @@ drop table if exists account; create table account ( account_id int primary key auto_increment, username varchar(255) unique, - password varchar(255) + password_ varchar(255) ); create table message ( message_id int primary key auto_increment, @@ -13,5 +13,5 @@ create table message ( foreign key (posted_by) references account(account_id) ); -insert into account (username, password) values ('testuser1', 'password'); +insert into account (username, password_) values ('testuser1', 'password'); insert into message (posted_by, message_text, time_posted_epoch) values (1,'test message 1',1669947792);