]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-453 эндпоинты для отзывов origin/BC-453
authormarina <m.zozirova@gmail.com>
Mon, 17 Nov 2025 08:51:55 +0000 (11:51 +0300)
committermarina <m.zozirova@gmail.com>
Mon, 17 Nov 2025 08:51:55 +0000 (11:51 +0300)
erp24/migrations/m251114_000000_create_table_user_reviews.php
erp24/records/UserReviews.php

index dd5c7890c0d98ca0e94ab6a7eb64ed1f6d87c789..d7bcf06b2ef4520ebc280c7e5b702024d4c10a35 100644 (file)
@@ -22,8 +22,8 @@ class m251114_000000_create_table_user_reviews extends Migration
                 'sale_date' => $this->timestamp()->notNull()->comment('Дата продажи'),
                 'survey_date' => $this->timestamp()->notNull()->comment('Дата опроса'),
                 'receipt_number' => $this->string()->notNull()->comment('Номер чека'),
-                'store_id' => $this->string()->notNull()->comment('ID магазина'),
-                'admin_id' => $this->string()->null()->comment('ID администратора'),
+                'store_id' => $this->string()->notNull()->comment('GUID магазина'),
+                'admin_id' => $this->string()->null()->comment('GUID администратора'),
                 'rating_florist' => $this->integer()->notNull()->comment('Оценка работы флориста'),
                 'rating_cleanliness' => $this->integer()->notNull()->comment('Оценка чистоты и комфорта в магазине'),
                 'rating_assortment' => $this->integer()->notNull()->comment('Оценка ассортимента цветов'),
index fe02b73e8b50372bd030722eff3e5625b4850177..ff7f6cc1f94c023e7f3ca4eeabab5d32482e88cd 100644 (file)
@@ -13,7 +13,7 @@ use Yii;
  * @property string $survey_date Дата опроса
  * @property string $receipt_number Номер чека
  * @property string $store_id ID магазина
- * @property string|null $admin_id ID администратора
+ * @property string $admin_id ID администратора
  * @property int $rating_florist Оценка работы флориста
  * @property int $rating_cleanliness Оценка чистоты и комфорта в магазине
  * @property int $rating_assortment Оценка ассортимента цветов
@@ -57,8 +57,8 @@ class UserReviews extends \yii\db\ActiveRecord
             'sale_date' => 'Дата продажи',
             'survey_date' => 'Дата опроса',
             'receipt_number' => 'Номер чека',
-            'store_id' => 'ID магазина',
-            'admin_id' => 'ID администратора',
+            'store_id' => 'GUID магазина',
+            'admin_id' => 'GUID администратора',
             'rating_florist' => 'Оценка работы флориста',
             'rating_cleanliness' => 'Оценка чистоты и комфорта в магазине',
             'rating_assortment' => 'Оценка ассортимента цветов',