]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Добавление поля check_id_last_sale в Users
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 4 Feb 2025 15:15:04 +0000 (18:15 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 4 Feb 2025 15:15:04 +0000 (18:15 +0300)
erp24/records/Users.php
erp24/records/UsersBonusLevels.php

index 797b4f5940b45ac67882dfdf005f4825e8dead65..a30340949d7942832347736ec52c19d50a559b43 100755 (executable)
@@ -68,6 +68,7 @@ use yii\helpers\BaseConsole;
  * @property string|null $first_minus_balance
  * @property string $info
  * @property string|null $bonus_level Уровань клиента в БС
+ * @property string|null $check_id_last_sale GUID последнего чека
  */
 class Users extends \yii\db\ActiveRecord
 {
@@ -184,10 +185,11 @@ class Users extends \yii\db\ActiveRecord
                     'first_minus_balance',
                     'telegram_unsubscribed_at',
                     'bonus_level',
+                    'check_id_last_sale',
                 ],
                 'safe'
             ],
-            [['pol', 'info', 'telegram_created_at'], 'string'],
+            [['pol', 'check_id_last_sale', 'info', 'telegram_created_at'], 'string'],
             [
                 [
                     'forgot',
@@ -287,7 +289,8 @@ class Users extends \yii\db\ActiveRecord
             'black_list' => 'Black List',
             'events' => 'Events',
             'telegram_unsubscribed_at' => 'Telegram Unsubscribed At',
-            'bonus_level' => 'Bonus Level'
+            'bonus_level' => 'Bonus Level',
+            'check_id_last_sale' => 'GUID Last Check'
             ];
     }
 
index 00dad29392bcd47f1ddf9dac4c78cc60c68705b2..6b307391659ffaabf5db02fca3fc867e9097a21a 100644 (file)
@@ -12,6 +12,8 @@ use Yii;
  * @property int $user_id ID клиента
  * @property string $bonus_level Уровань клиента в БС
  * @property string $created_at Дата создания
+ * @property string|null $check_id Дата создания
+ * @property string|null $check_name Дата создания
  * @property int $active Активность записи
  * @property string|null $updated_at Дата изменения
  */
@@ -34,8 +36,8 @@ class UsersBonusLevels extends \yii\db\ActiveRecord
             [['phone', 'user_id', 'bonus_level'], 'required'],
             [['user_id', 'active'], 'default', 'value' => null],
             [['user_id', 'active'], 'integer'],
-            [['created_at', 'updated_at'], 'safe'],
-            [['phone', 'bonus_level'], 'string', 'max' => 255],
+            [['check_id', 'check_name', 'created_at', 'updated_at'], 'safe'],
+            [['check_id', 'check_name', 'phone', 'bonus_level'], 'string', 'max' => 255],
         ];
     }
 
@@ -52,6 +54,8 @@ class UsersBonusLevels extends \yii\db\ActiveRecord
             'created_at' => 'Дата создания',
             'active' => 'Активность записи',
             'updated_at' => 'Дата изменения',
+            'check_id' => 'Основание для повышения уровня - GUID',
+            'check_name' => 'Основание для повышения уровня - номер чека',
         ];
     }
 }