You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/database-new/app/faq/page.tsx
+3-38Lines changed: 3 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -1,46 +1,11 @@
1
+
import{FAQS,faq}from'@/data/faqs'
2
+
import{slugify}from'@/lib/utils'
1
3
importtype{Metadata}from'next'
2
4
3
-
typefaq={
4
-
question: string
5
-
answer: string
6
-
}
7
-
8
5
exportconstmetadata: Metadata={
9
6
title: 'database.design | Faq',
10
7
}
11
8
12
-
constFAQS=[
13
-
{
14
-
question: 'What is database.design?',
15
-
answer:
16
-
'Lorem ipsum dolor sit, amet consectetur adipisicing elit. Doloremque molestias dicta nobis explicabo maiores officia blanditiis cupiditate, quibusdam debitis! Dignissimos ducimus aut temporibus ea, repellat consectetur quisquam molestiae recusandae rem.',
17
-
},
18
-
{
19
-
question: 'How does it work?',
20
-
answer:
21
-
'Lorem ipsum dolor sit, amet consectetur adipisicing elit. Doloremque molestias dicta nobis explicabo maiores officia blanditiis cupiditate, quibusdam debitis! Dignissimos ducimus aut temporibus ea, repellat consectetur quisquam molestiae recusandae rem.',
22
-
},
23
-
{
24
-
question: 'Can I see the code?',
25
-
answer:
26
-
'Lorem ipsum dolor sit, amet consectetur adipisicing elit. Doloremque molestias dicta nobis explicabo maiores officia blanditiis cupiditate, quibusdam debitis! Dignissimos ducimus aut temporibus ea, repellat consectetur quisquam molestiae recusandae rem.',
27
-
},
28
-
{
29
-
question: 'Can I use this for non-Postgres databases?',
30
-
answer:
31
-
'Lorem ipsum dolor sit, amet consectetur adipisicing elit. Doloremque molestias dicta nobis explicabo maiores officia blanditiis cupiditate, quibusdam debitis! Dignissimos ducimus aut temporibus ea, repellat consectetur quisquam molestiae recusandae rem.',
32
-
},
33
-
]
34
-
35
-
functionslugify(str: string){
36
-
returnstr
37
-
.toLowerCase()// Convert to lowercase
38
-
.replace(/\s+/g,'-')// Replace spaces with hyphens
'database.design is a new way to get ideas out of your head and into code as fast as possible. Supabase provides you tools to making building incredibly fast. This tool focuses on the very first step: turning your idea into a database schema.',
11
+
},
12
+
{
13
+
question: 'How does it work?',
14
+
answer: `We use OpenAI under the hood to provide responses to your prompts. Just like ChatGPT, you can fine-tune your responses until you're happy with the schema. We're using React Flow to visualize the schemas.`,
15
+
},
16
+
{
17
+
question: 'Can I see the code?',
18
+
answer: 'You sure can. All of the source code is open source and available on Github. ',
19
+
},
20
+
{
21
+
question: 'Can I contribute to this project?',
22
+
answer: 'You sure can. All of the source code is open source and available on Github. ',
23
+
},
24
+
{
25
+
question: `What's the license? Can we fork this project and build our own?`,
26
+
answer: 'Yes. We release software under the Apache License 2.0.',
27
+
},
28
+
{
29
+
question: 'Can I use this for non-Postgres databases?',
30
+
answer: `Not at the moment. We've tailored the responses to try and do a great job returning Postgres-flavored SQL`,
0 commit comments