diff --git a/migrations/development/20230216114126-admin-user.sql b/migrations/development/20230216114126-admin-user.sql new file mode 100644 index 0000000000000000000000000000000000000000..165bd7dffa7fccdbbd5863b1f2f5582d7deedefd --- /dev/null +++ b/migrations/development/20230216114126-admin-user.sql @@ -0,0 +1,12 @@ + +-- +migrate Up +INSERT INTO public."user" ("email", "password", "name", "role", "is_activated") +VALUES + ('admin@example.com', '$2a$10$J4POz3KQESxzA.d9S8rHRu3ZuJSRdcJkVQcx1SRdMNQqtD8gHfccy', 'admin', 'admin', true), + ('contributor@example.com', '$2a$10$J4POz3KQESxzA.d9S8rHRu3ZuJSRdcJkVQcx1SRdMNQqtD8gHfccy', 'contributor', 'contributor', false); + +-- +migrate Down +DELETE FROM public."user" WHERE email IN ( + 'admin@example.com', + 'contributor@example.com' +);