diff --git a/docker-compose.yml b/docker-compose.yml index c938210..ab3de7c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,6 +24,9 @@ services: - JWT_SECRET=${JWT_SECRET} - NODE_ENV=production - HOSTNAME=0.0.0.0 + - AUTH_URL=https://store.abrahem.se + - AUTH_TRUST_HOST=true + - NEXTAUTH_URL=https://store.abrahem.se - SMTP_HOST=${SMTP_HOST} - SMTP_PORT=${SMTP_PORT} - SMTP_SECURE=${SMTP_SECURE} diff --git a/schemas/init.sql b/schemas/init.sql index 8b53d1e..f8f01ea 100644 --- a/schemas/init.sql +++ b/schemas/init.sql @@ -16,6 +16,7 @@ CREATE TABLE IF NOT EXISTS users ( username VARCHAR(50) UNIQUE NOT NULL, password_hash VARCHAR(255) NOT NULL, full_name VARCHAR(100), + google_id VARCHAR(255) UNIQUE, role ENUM('user', 'admin') DEFAULT 'user', email_verified BOOLEAN DEFAULT FALSE, verification_token VARCHAR(255),