-
Notifications
You must be signed in to change notification settings - Fork 57
Entity Design
Subhrodip Mohanta edited this page Jun 23, 2021
·
11 revisions
| column_name | column_definition |
|---|---|
| id π | UUID |
| username | string (30) - alphanumeric |
| name | string (50) |
| string (50) | |
| avatar | string (URL) |
| bio | string (240) |
| follower_count | bigint |
| following_count | bigint |
| verified | boolean |
| created_at | datetime |
| updated_at | datetime |
| column_name | column_definition |
|---|---|
| id π | UUID |
| text | string (30) - alphanumeric |
| user_id | UUID - FK(users.id) |
| images | map < key: string (URL) , value: datetime > - MAX 4 |
| mentions | map < key: UUID - FK(users.id) , value: datetime > |
| original_post_id | UUID (self reference, can be NULL) |
| reply_to_id | UUID (self reference, can be NULL) |
| like_count | bigint |
| repost_count | bigint |
| hashtags | array < string > |
| created_at | datetime |
| updated_at | datetime |
| column_name | column_definition |
|---|---|
| id π | UUID |
| tag | string (240) (only /^[ A-Za-z0-9_ ]*$/ ) |
| recent_post_count | bigint |
| created_at | datetime |
| updated_at | datetime |
| column_name | column_definition |
|---|---|
| id π | UUID |
| post_id | UUID - FK(posts.id) |
| user_id | UUID - FK(users.id) |
| created_at | datetime |
| updated_at | datetime |
| column_name | column_definition |
|---|---|
| id π | UUID |
| hashtag_id | UUID - FK(hashtags.id) |
| post_id | UUID - FK(posts.id) |
| created_at | datetime |
| updated_at | datetime |
| column_name | column_definition |
|---|---|
| users_id π | UUID - FK(users.id) |
| following_key π | UUID (users.id) |
| following | datetime |
| column_name | column_definition |
|---|---|
| users_id π | UUID - FK(users.id) |
| follower_key π | UUID (users.id) |
| follower | datetime |
| column_name | column_definition |
|---|---|
| posts_id π | UUID - FK(posts.id) |
| images_key π | string(URL) |
| images | datetime |
| column_name | column_definition |
|---|---|
| posts_id π | UUID - FK(posts.id) |
| mentions_key π | UUID (users.id) |
| mentions | datetime |
| column_name | column_definition |
|---|---|
| posts_id π | UUID - FK(posts.id) |
| hashtags_key π | UUID (hashtags.id) |
| hashtags | datetime |
02. How to Contribute (needs splitting)
- Installation
-
Project Configuration
-
IDE Instructions
-
Milestones and Versioning
Β Β 10.1 Request and Response Models
Β Β 10.2 Detailed API Documentation
- How to Test Endpoints
-
Working with issues
-
Reviewing pull requests
- Roadmap
- Recognizing contributors