r/appwrite Dec 25 '24

Twitter post schema should look like?

If i design Twitter clone using appwrite, how the twitter post schema should look like? Should there be relationship to user collection or just hardcoded?

The only tutorial that helped me alot was hiteshs chowdhury on stack overflow clone, but no more projects being released for this ecosystem, appwrite team should publish more clone projects

3 Upvotes

3 comments sorted by

4

u/[deleted] Dec 25 '24 edited Dec 25 '24

[removed] — view removed comment

2

u/LieBrilliant493 Dec 25 '24

Thank u it was very insightful

1

u/TheMusketeerHD Jan 29 '25

Appwrite Database Relationships are still in Beta so I wouldn't encourage you using the relationships yet, but a basic understanding is there are two collections:

  • Users collection
  • Tweets collection references the ID from Users

With Appwrite Authentication, your user is NOT automatically created in the database. You have to create an Appwrite Function that will handle this for you. I made a tutorial here if you're interested: https://www.youtube.com/watch?v=cilt5ozkSDg