feat(storefront): update FAQ and legal documentation

- Added new FAQ sections for account security, ordering and checkout, returns, shipping, and contact information.
- Introduced legal documents including privacy policy, terms of service, data protection, and general terms and conditions.
- Updated package dependencies to include gray-matter and remark-gfm for enhanced markdown support.
This commit is contained in:
2026-03-13 21:39:25 +03:00
parent f1dbf0b6ee
commit c8f5d8d096
52 changed files with 2273 additions and 261 deletions

View File

@@ -313,4 +313,23 @@ export default defineSchema({
})
.index("by_user", ["userId"])
.index("by_session", ["sessionId"]),
// ─── Contact messages ───────────────────────────────────────────────────
messages: defineTable({
fullName: v.string(),
email: v.string(),
topic: v.union(
v.literal("products"),
v.literal("orders"),
v.literal("support"),
v.literal("other"),
),
message: v.string(),
createdAt: v.number(),
bookmarked: v.optional(v.boolean()),
updatedAt: v.optional(v.number()),
})
.index("by_created_at", ["createdAt"])
.index("by_topic", ["topic"])
.index("by_bookmarked", ["bookmarked"]),
});