avatar_assets table

The avatar_assets table in the Reddit Clone Database Schema schema has 8 columns, keyed by id. 1 column in user_avatar_items references it.

The avatar wardrobe. slot is what stops two hats being worn at once, and it is an enum because the render pipeline has a fixed layer order.

Columns (8)

Columns of the avatar_assets table
ColumnTypeConstraintsDescription
iduuidprimary key
namevarchar(100)not null
slotavatar_slotnot null
rarityavatar_raritynot null
collection_namevarchar(100)
image_urlvarchar(500)not null
is_premium_onlybooleannot null
coin_priceinteger

Indexes (2)

  • (slot, rarity)
  • (collection_name)

Relationships