Skip to content

Commit

Permalink
chore: modificações de usuários admin no banco (#71)
Browse files Browse the repository at this point in the history
Co-authored-by: Izaias Machado <[email protected]>
  • Loading branch information
williambrunos and izaiasmachado authored Mar 7, 2024
1 parent 162d5e8 commit e505168
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/resources/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ VALUES

INSERT INTO users (id, email, username, password, first_name, last_name, birth_date, balance, role)
VALUES
('b2d13c5a-3df0-4673-b3e6-49244f395ac7', '[email protected]', 'admin', '$2a$10$oUmo9dGdjnbdWeYlq7tsNuZo/r.pwI6T8JbEu2bp26Y5Zg7uzrKMy', 'Ademir', 'Ademilson', '2002-01-01', 777.7, 'ADMIN')
('b2d13c5a-3df0-4673-b3e6-49244f395ac7', '[email protected]', 'admin', '$2a$10$7J3quz9UhM0TvHuHYaffMOeNnux87b4qi1RsbZX/F3CmbSFpjph5W', 'Ademir', 'Ademilson', '2002-01-01', 777.7, 'ADMIN')
ON CONFLICT (id) DO NOTHING;

INSERT INTO users (id, email, username, password, first_name, last_name, birth_date, balance, role)
VALUES
('b2d13c5a-3df0-4673-b3e6-49244f395ac8', '[email protected]', 'ricardovilela', '$2a$10$ie7t8c9SAdzLaBwoJN.zm.J68w3z3F3EHsdqulPSPoLrgwIPa7hQa', 'Ricardo', 'Vilela', '2002-01-01', 100000000.22, 'ADMIN')
ON CONFLICT (id) DO NOTHING;

INSERT INTO stock_ownership (id, stock_id, user_id, shares)
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ spring.datasource.password=${MANDACARU_TEST_POSTGRES_PASSWORD}
spring.sql.init.mode=always
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
spring.sql.init.data-locations=classpath:data.sql
5 changes: 5 additions & 0 deletions src/test/resources/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ VALUES
('b2d13c5a-7df0-4673-b3e6-49244f395ac1', '[email protected]', 'AnaSilva', 'xyz789', 'Ana', 'Silva', '1995-03-21', 300.50),
('b2d13c5a-9df0-4673-b3e6-49244f395ac6', '[email protected]', 'PatriciaS', 'pass123', 'Patricia', 'Santos', '1998-08-30', 250.75)
ON CONFLICT (id) DO NOTHING;

INSERT INTO users (id, email, username, password, first_name, last_name, birth_date, balance, role)
VALUES
('b2d13c5a-3df0-4673-b3e6-49244f395ac7', '[email protected]', 'admin', '$2a$10$oUmo9dGdjnbdWeYlq7tsNuZo/r.pwI6T8JbEu2bp26Y5Zg7uzrKMy', 'Ademir', 'Ademilson', '2002-01-01', 777.7, 'ADMIN')
ON CONFLICT (id) DO NOTHING;

0 comments on commit e505168

Please sign in to comment.