From: marina Date: Mon, 17 Nov 2025 08:51:55 +0000 (+0300) Subject: ERP-453 эндпоинты для отзывов X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=26e5834d398e3035259e9f6640cfdc819a0abe3e;p=erp24_rep%2Fyii-erp24%2F.git ERP-453 эндпоинты для отзывов --- diff --git a/erp24/migrations/m251114_000000_create_table_user_reviews.php b/erp24/migrations/m251114_000000_create_table_user_reviews.php index dd5c7890..d7bcf06b 100644 --- a/erp24/migrations/m251114_000000_create_table_user_reviews.php +++ b/erp24/migrations/m251114_000000_create_table_user_reviews.php @@ -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('Оценка ассортимента цветов'), diff --git a/erp24/records/UserReviews.php b/erp24/records/UserReviews.php index fe02b73e..ff7f6cc1 100644 --- a/erp24/records/UserReviews.php +++ b/erp24/records/UserReviews.php @@ -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' => 'Оценка ассортимента цветов',