Commit 1b6a3b48 authored by Sreenidhi Iyangar's avatar Sreenidhi Iyangar
Browse files

Fix for 'user' keyword in PostgreSQL

parent 1b39b224
......@@ -24,7 +24,7 @@ import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
@Entity
@Entity(name = "users")
public class User {
public enum Role {
......
......@@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS property (
type VARCHAR(255) NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE IF NOT EXISTS user (
CREATE TABLE IF NOT EXISTS users (
email VARCHAR(255) NOT NULL,
role VARCHAR(255),
PRIMARY KEY (email)
......
insert into user VALUES ('testEditor@gmail.com','ROLE_EDITOR');
insert into user VALUES ('testUser@gmail.com','ROLE_USER');
insert into user VALUES ('testAdmin@gmail.com','ROLE_ADMIN');
\ No newline at end of file
insert into users VALUES ('testEditor@gmail.com','ROLE_EDITOR');
insert into users VALUES ('testUser@gmail.com','ROLE_USER');
insert into users VALUES ('testAdmin@gmail.com','ROLE_ADMIN');
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment