const { Pool } = require("pg"); const pool = new Pool({ host: "localhost", port: 5432, database: "skyartshop", user: "skyartapp", password: "SkyArt2025Pass", }); const defaultPrivacyContent = `

At Sky Art Shop, we take your privacy seriously. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website and make purchases from our store.

Information We Collect

We collect information you provide directly to us when you:

This information may include your name, email address, shipping address, phone number, and payment information.

How We Use Your Information

We use the information we collect to:

Information Sharing

We do not sell, trade, or rent your personal information to third parties. We may share your information with service providers who assist us in operating our website and conducting our business.

Cookies and Tracking

We use cookies and similar tracking technologies to track activity on our website. You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent.

Data Security

We implement security measures to maintain the safety of your personal information. All payment transactions are processed through secure, encrypted gateways.

Your Rights

You have the right to access, update, or delete your personal information at any time. Contact us for assistance.

Contact Us

If you have questions about this Privacy Policy, please contact us at privacy@skyartshop.com.

`; const pageData = { header: { title: "Privacy Policy", subtitle: "How we protect and use your information", }, lastUpdated: "January 18, 2026", mainContent: defaultPrivacyContent, contactBox: { title: "Privacy Questions?", message: "If you have any questions about this Privacy Policy, please contact us:", email: "privacy@skyartshop.com", phone: "(555) 123-4567", address: "Sky Art Shop, 123 Creative Lane, City, ST 12345", }, }; async function restorePrivacyContent() { try { const result = await pool.query( `UPDATE pages SET pagedata = $1 WHERE slug = 'privacy' RETURNING id, slug`, [JSON.stringify(pageData)], ); if (result.rowCount > 0) { console.log("✓ Privacy policy content restored successfully"); console.log(" Page ID:", result.rows[0].id); } else { console.log("✗ Privacy page not found in database"); } } catch (error) { console.error("Error restoring privacy content:", error); } finally { await pool.end(); } } restorePrivacyContent();