- Add Go modules with required dependencies (Gin, UUID, JWT, etc.) - Implement main web server with landing page endpoint - Add comprehensive API endpoints for health and status - Include proper error handling and request validation - Set up CORS middleware and security headers
11 lines
367 B
SQL
11 lines
367 B
SQL
-- Initialize Dolibarr database for YDN integration
|
|
-- This script creates a separate database for Dolibarr
|
|
|
|
CREATE DATABASE dolibarr_db WITH ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C';
|
|
|
|
-- Grant permissions
|
|
GRANT ALL PRIVILEGES ON DATABASE dolibarr_db TO ydn_user;
|
|
|
|
-- Create extension for UUID generation
|
|
\c dolibarr_db;
|
|
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; |