fix google id issue

This commit is contained in:
ismail 2026-02-02 18:21:10 +01:00
parent 5fc96512e2
commit e474717932
2 changed files with 4 additions and 0 deletions

View File

@ -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}

View File

@ -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),