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
Necessary to have done the task #3
Initial thought of the entities schemas:
User
address (primary key)
role (enum: user, manager, owner)
created_at
Community
id/address (coming from blockchain)
name (coming from blockchain)
description (coming from blockchain)
creator_address
status (active/hidden)
total_members (coming from blockchain / indexing through db)
total_badges (coming from blockchain + indexing through db)
Badges
id (from blockchain)
community_id (foreign key)
type (predefined/custom)
name (indexed from blockchain)
score_value (indexed from blockchain)
status (active/inactive) - when user "deletes" badges
CommunityMember
community_id (foreign key)
user_address (foreign key)
joined_at
delete when a user leaves
The text was updated successfully, but these errors were encountered:
Necessary to have done the task #3
Initial thought of the entities schemas:
User
Community
Badges
CommunityMember
The text was updated successfully, but these errors were encountered: