From: fomichev Date: Wed, 25 Dec 2024 12:51:58 +0000 (+0300) Subject: модель для таблицы X-Git-Tag: 1.7~94^2~40 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=6b2d13f37cafd0d519133b1b1ca3010bd4c60fc7;p=erp24_rep%2Fyii-erp24%2F.git модель для таблицы --- diff --git a/erp24/records/UsersTelegramChatId.php b/erp24/records/UsersTelegramChatId.php new file mode 100644 index 00000000..43740d4f --- /dev/null +++ b/erp24/records/UsersTelegramChatId.php @@ -0,0 +1,54 @@ + null], + [['is_blocked', 'is_registered'], 'integer'], + [['chat_id', 'phone', 'username', 'first_name'], 'string', 'max' => 255], + ]; + } + + /** + * {@inheritdoc} + */ + public function attributeLabels() + { + return [ + 'chat_id' => 'Chat ID', + 'phone' => 'Телефон', + 'username' => 'Имя пользователя в Телеграм', + 'first_name' => 'Имя пользователя', + 'is_blocked' => 'Заблокирован: 0 - нет, 1 - да', + 'is_registered' => 'Зарегистрирован: 0 - нет, 1 - да', + ]; + } +}