Project

General

Profile

Actions

Feature #288

open

[BE] Affiliate Database Migration

Added by Trịnh Thế Định 9 months ago. Updated 6 months ago.

Status:
Resolved - Dev
Priority:
Normal
Target version:
-
Start date:
12/28/2023
Due date:
% Done:

0%

Estimated time:
(Total: 0:00 h)
Spent time:

Description

user_roles
> > id    integer autoincrement    
> > user_id    integer    
> > role    varchar(255)    Enum [Affiliate admin, 'XXX']
> > status, is_aff_active        
> > created_at    datetime    
> > updated_at    datetime
  aff_reward_histories
> > id        
> > affiliate_user_id        
> > paid_amount    biginteger    
> > receipt_image        nullable
> > rewarded_by    integer    ?? relate to user ?
> > created_at    datetime    
> > updated_at    datetime    
aff_reward_history_details
> > id        
> > reward_history        ?? relate to reward_histories
> > affiliate_user_id        
> > invited_user_id        
> > reward_amount        
> > rewarded_by    integer    ?? relate to user ?        
> > created_at    datetime    
> > updated_at    datetime    
aff_achievements
id        
affiliate_user_id    integer    
invited_account_id    integer    
reward_amount    biginteger    
reward_paid    tinyint    ??true/false
created_at    datetime    
updated_at    datetime    

aff_user_settings
> > id    
> > affiliate_user_id    
> > invitation_code    
> > reward_percentage    //set mặc định là 1 giá trị cài từ biến môi trường
> > payment_info    
> > ...
> > last_rewarded_at    
> > agree_tos    tinyint
> > created_at    datetime
> > updated_at    datetime

Subtasks 1 (1 open0 closed)

Feature #313: [BE] Affiliate add more table for feature GroupResolved - DevTrịnh Thế Định12/28/2023

Actions
Actions #1

Updated by Trịnh Thế Định 9 months ago

  • Description updated (diff)
Actions #2

Updated by Trịnh Thế Định 9 months ago

  • Description updated (diff)
Actions #3

Updated by Trịnh Thế Định 9 months ago

  • Description updated (diff)
Actions #4

Updated by Trịnh Thế Định 9 months ago

  • Description updated (diff)
Actions #5

Updated by Trịnh Thế Định 9 months ago

  • Status changed from In Progress to Resolved - Dev
Actions #6

Updated by Trịnh Thế Định 9 months ago

  • Subtask #313 added
Actions

Also available in: Atom PDF