Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Followers and Follow Requests #11

Description

@LeoBorai

Users must be able to choose who is able to access their posts and follow
other users whose content is of interest. To achieve this a Followers system
with a Follow Request could be provided which enables support to send
Follow Requests which the Followee must approve, decline or ignore.

A first version could be a table which holds follower, followee and a flag
for request confirmation.

Is important to note that a notification system would be required at some
point to provide better UX.

image

Database Diagram
-- https://app.quickdatabasediagrams.com/#/

User
-
id PK UUID
name VARCHAR(60)
last_name VARCHAR(60)
email VARCHAR(254) UNIQUE
username VARCHAR(120) UNIQUE
password_hash VARCHAR(120)
followers INTEGER
following INTEGER
gender GENDER
pronoun PRONOUN
custom_gender NULLABLE VARCHAR
birthdate TIMESTAMPTZ
created_at TIMESTAMPTZ
updated_at TIMESTAMPTZ

Followers
-
id PK UUID
follower_id UUID FK - User.id
followee_id UUID FK - User.id
request_state REQUEST_STATE
created_at TIMESTAMPTZ
updated_at TIMESTAMPTZ

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions