--- /dev/null
+<?php
+
+use yii\db\Migration;
+
+/**
+ * Class m240821_114356_create_table_motivation_buh
+ */
+class m240821_114356_create_table_motivation_buh extends Migration
+{
+ const TABLE_NAME = "erp24.store_guid_buh";
+
+ /**
+ * {@inheritdoc}
+ */
+ public function safeUp()
+ {
+ $this->createTable(self::TABLE_NAME, [
+ 'id' => $this->primaryKey(),
+ 'store_id' => $this->integer()->notNull()->comment('store id'),
+ 'store_guid' => $this->string()->notNull()->comment('store guid'),
+ 'updated_admin_id' => $this->integer()->null()->comment('updated admin id'),
+ 'created_admin_id' => $this->integer()->notNull()->comment('created admin id'),
+ 'updated_at' => $this->datetime()->null()->comment('Дата изменения записи'),
+ 'created_at' => $this->datetime()->notNull()->comment('Дата создания записи'),
+ ]);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function safeDown()
+ {
+ $this->dropTable(self::TABLE_NAME);
+ }
+}