]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Убрал telegram_chat_id из модели Users
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 10 Jan 2025 14:37:53 +0000 (17:37 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 10 Jan 2025 14:37:53 +0000 (17:37 +0300)
erp24/records/Users.php

index c68c1ae93a9c804f35e1a5db8e9857612286f497..86f543c5499ab687c7234d6f9e4f8d1faf6c1e91 100755 (executable)
@@ -66,7 +66,6 @@ use yii\base\StaticInstanceInterface;
  * @property int $events Импортированы ли события
  * @property string|null $first_minus_balance
  * @property string $info
- * @property string $telegram_chat_id
  */
 class Users extends \yii\db\ActiveRecord
 {
@@ -182,11 +181,11 @@ class Users extends \yii\db\ActiveRecord
                     'store_id',
                     'first_minus_balance',
                     'telegram_unsubscribed_at',
-                    'telegram_chat_id'
+
                 ],
                 'safe'
             ],
-            [['pol', 'info', 'telegram_created_at', 'telegram_chat_id'], 'string'],
+            [['pol', 'info', 'telegram_created_at'], 'string'],
             [
                 [
                     'forgot',
@@ -215,7 +214,7 @@ class Users extends \yii\db\ActiveRecord
             [['name_name', 'name_last', 'kod'], 'string', 'max' => 20],
             [['name_family'], 'string', 'max' => 25],
             [['comment', 'sale_store'], 'string', 'max' => 200],
-            [['email', 'telegram_chat_id'], 'string', 'max' => 70],
+            [['email'], 'string', 'max' => 70],
             [['phone_old'], 'string', 'max' => 250],
             [['card', 'check_id'], 'string', 'max' => 35],
             [['password', 'keycode', 'seller_id'], 'string', 'max' => 36],
@@ -286,8 +285,7 @@ class Users extends \yii\db\ActiveRecord
             'black_list' => 'Black List',
             'events' => 'Events',
             'telegram_unsubscribed_at' => 'Telegram Unsubscribed At',
-            'telegram_chat_id' => 'Telegram ChatID'
-        ];
+            ];
     }
 
     public function getReferral()