feat: add referral_code

This commit is contained in:
2026-06-06 13:10:25 +03:30
parent 0f5f7835e7
commit 6c602af9eb
5 changed files with 120 additions and 0 deletions
+7
View File
@@ -20,9 +20,16 @@ class User extends Authenticatable
'male' => 1,
'female' => 2,
];
// Referral program (کد معرف): successful invites needed for a free month,
// and the app whose monthly product is granted as the reward.
const REFERRAL_SUBSCRIPTION_TARGET = 10;
const REFERRAL_PACKAGE_NAME = 'com.approagency.meditation';
protected $guarded = [];
protected $casts = [
'mobile_verified_at' => 'datetime',
'referral_subscription_granted_at' => 'datetime',
];
protected $hidden = [
'password',