{"id":3404,"date":"2026-09-12T09:45:49","date_gmt":"2026-09-12T00:45:49","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=3404"},"modified":"2026-09-12T09:45:49","modified_gmt":"2026-09-12T00:45:49","slug":"20260909-00mttea3","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2026\/09\/12\/20260909-00mttea3\/","title":{"rendered":"NFC\u6765\u5e97\u30fb\u30dd\u30a4\u30f3\u30c8\u30fb\u627f\u8a8d\u30d5\u30ed\u30fc\u3092\u652f\u3048\u308b\u98f2\u98df\u5e97\u30a2\u30d7\u30ea\u306eDB\u8a2d\u8a08 \u2014 100\u30c6\u30fc\u30d6\u30eb\u8d85\u3092\u7834\u7dbb\u3055\u305b\u306a\u30445\u3064\u306e\u52d8\u6240"},"content":{"rendered":"<h2>\u3053\u306e\u8a18\u4e8b\u306b\u3064\u3044\u3066<\/h2>\n<p>\u98f2\u98df\u5e97\u767a\u898b\u30fb\u6765\u5e97\u30dd\u30a4\u30f3\u30c8\u7cfb\u30a2\u30d7\u30ea\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u8a2d\u8a08\u306b\u643a\u308f\u308a\u3001100\u30c6\u30fc\u30d6\u30eb\u3092\u8d85\u3048\u308b\u30b9\u30ad\u30fc\u30de\u3092\u6271\u3044\u307e\u3057\u305f\u3002\u300c\u30e6\u30fc\u30b6\u30fc\u304c\u5e97\u3092\u63a2\u3059 \u2192 NFC\u30bf\u30b0\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u6765\u5e97 \u2192 \u30dd\u30a4\u30f3\u30c8\u304c\u8caf\u307e\u308b \u2192 \u6295\u7a3f\u30fb\u5fdc\u63f4\u30fb\u30b9\u30bf\u30f3\u30d7\u30e9\u30ea\u30fc\u300d\u3068\u3044\u3046\u4f53\u9a13\u3092\u652f\u3048\u308b\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u306f\u3001\u5224\u65ad\u3092\u8aa4\u308b\u3068\u4e00\u6c17\u306b\u7834\u7dbb\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u5b9f\u52d9\u3067\u52b9\u3044\u305f\u8a2d\u8a08\u5224\u65ad\u3092\u6c4e\u7528\u5316\u3057\u3066\u6574\u7406\u3057\u307e\u3059\u3002\u30c6\u30fc\u30d6\u30eb\u540d\u30fb\u30ab\u30e9\u30e0\u540d\u306f\u3059\u3079\u3066\u4e00\u822c\u5316\u3057\u3066\u304a\u308a\u3001\u7279\u5b9a\u306e\u6848\u4ef6\u30fb\u4f01\u696d\u3092\u6307\u3059\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u5bfe\u8c61\u74b0\u5883\u306f PHP 8 \/ Laravel\u3001MySQL 8\u3001\u30d0\u30c3\u30c1\u306fAmazon ECS\u306e\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u30bf\u30b9\u30af\u3001\u753b\u50cf\u306fS3\u3001\u30d7\u30c3\u30b7\u30e5\u901a\u77e5\u306fFirebase Cloud Messaging\u3067\u3059\u3002<\/p>\n<h2>1. \u30de\u30b9\u30bf\/\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u547d\u540d\u898f\u5247<\/h2>\n<p>\u30c6\u30fc\u30d6\u30eb\u304c3\u6841\u306b\u306a\u3063\u305f\u3068\u304d\u3001\u307e\u305a\u52b9\u304f\u306e\u306f\u300c\u540d\u524d\u3060\u3051\u3067\u5f79\u5272\u304c\u5206\u304b\u308b\u3053\u3068\u300d\u3067\u3059\u3002\u3053\u306e\u6848\u4ef6\u3067\u306f\u6b21\u306e\u898f\u7d04\u3092\u5fb9\u5e95\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li><code>mtb_*<\/code> \u2026 \u30de\u30b9\u30bf\u30c6\u30fc\u30d6\u30eb\uff08<code>mtb_areas<\/code>, <code>mtb_menu_genres<\/code>, <code>mtb_payment_types<\/code>\uff09<\/li>\n<li><code>dtb_*<\/code> \u2026 \u30c7\u30fc\u30bf\uff08\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\uff09\u30c6\u30fc\u30d6\u30eb\uff08<code>dtb_users<\/code>, <code>dtb_stores<\/code>, <code>dtb_visit_histories<\/code>\uff09<\/li>\n<\/ul>\n<p>\u591a\u5bfe\u591a\u306e\u4e2d\u9593\u30c6\u30fc\u30d6\u30eb\u306f <code>dtb_{\u89aa}_{\u30de\u30b9\u30bf\u8907\u6570\u5f62}<\/code>\uff08\u4f8b: <code>dtb_store_payment_types<\/code>\uff09\u3068\u3057\u3001\u300c\u95a2\u9023\u30c6\u30fc\u30d6\u30eb\u3067\u3042\u308b\u300d\u3053\u3068\u3092\u540d\u524d\u306b\u8fbc\u3081\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">mtb_store_types        -- \u5e97\u8217\u5f62\u614b\u30de\u30b9\u30bf\uff08\u56fa\u5b9a\uff09\nmtb_menu_genres        -- \u6599\u7406\u30b8\u30e3\u30f3\u30eb\u30de\u30b9\u30bf\uff08\u968e\u5c64\u3042\u308a\uff09\ndtb_stores             -- \u5e97\u8217\uff08\u904b\u7528\u3067\u5897\u6e1b\uff09\ndtb_store_store_types  -- \u5e97\u8217\u00d7\u5e97\u8217\u5f62\u614b\uff08\u4e2d\u9593\u30c6\u30fc\u30d6\u30eb\uff09<\/pre>\n<p>\u3053\u308c\u3060\u3051\u3067\u3001\u5916\u90e8\u30ad\u30fc\u3092\u5f35\u308b\u969b\u306e\u300c\u53c2\u7167\u5148\u306f\u30de\u30b9\u30bf\u304b\uff1f\u300d\u3068\u3044\u3046\u78ba\u8a8d\u304c\u4e00\u77ac\u3067\u7d42\u308f\u308a\u3001\u30ec\u30d3\u30e5\u30fc\u3068\u30aa\u30f3\u30dc\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u901f\u304f\u306a\u308a\u307e\u3059\u3002\u547d\u540d\u306f\u4ed5\u69d8\u66f8\u3067\u306f\u306a\u304f\u30b3\u30fc\u30c9\u305d\u306e\u3082\u306e\u3002\u898f\u7d04\u304c\u63c3\u3063\u3066\u3044\u308b\u3060\u3051\u3067\u3001\u8aad\u307f\u3084\u3059\u3055\u306f\u5927\u304d\u304f\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<h2>2. \u304a\u77e5\u3089\u305b\u3092\u300c\u65b9\u5411\u300d\u3067\u5206\u5272\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u8a2d\u8a08<\/h2>\n<p>\u901a\u77e5\u7cfb\u306f\u300c1\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u7a2e\u5225\u30ab\u30e9\u30e0\u300d\u3067\u59cb\u3081\u304c\u3061\u3067\u3059\u304c\u3001\u767b\u5834\u4eba\u7269\u304c\u5897\u3048\u308b\u3068\u7834\u7dbb\u3057\u307e\u3059\u3002\u3053\u306e\u6848\u4ef6\u3067\u306f<strong>\u9001\u4fe1\u5143\u3068\u9001\u4fe1\u5148\u306e\u7d44\u307f\u5408\u308f\u305b\uff08\u65b9\u5411\uff09\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u5206\u3051\u3066\u3044\u307e\u3057\u305f<\/strong>\u3002<\/p>\n<ul>\n<li>\u904b\u55b6 \u2192 \u30e6\u30fc\u30b6\u30fc\uff08<code>dtb_information_users<\/code>\uff09<\/li>\n<li>\u904b\u55b6 \u2192 \u5e97\u8217\uff08<code>dtb_information_stores<\/code>\uff09<\/li>\n<li>\u30e6\u30fc\u30b6\u30fc\/\u5e97\u8217 \u2192 \u904b\u55b6\uff08\u904b\u55b6\u5b9b\u304a\u77e5\u3089\u305b\uff09<\/li>\n<\/ul>\n<p>\u3055\u3089\u306b\u65e2\u8aad\u7ba1\u7406\u3092\u672c\u4f53\u304b\u3089\u5207\u308a\u96e2\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">dtb_information_users              -- \u904b\u55b6\u2192\u30e6\u30fc\u30b6\u30fc\u306e\u304a\u77e5\u3089\u305b\u672c\u4f53\ndtb_information_user_reads         -- \u65e2\u8aad\uff08\u304a\u77e5\u3089\u305b\u00d7\u30e6\u30fc\u30b6\u30fc\uff09\ndtb_information_user_personalizeds -- \u500b\u4eba\u5b9b\u306e\u5834\u5408\u306e\u5bfe\u8c61\u30e6\u30fc\u30b6\u30fc<\/pre>\n<p>\u30dd\u30a4\u30f3\u30c8\u306f<strong>\u65e2\u8aad\u3092\u5225\u30c6\u30fc\u30d6\u30eb\u306b\u3057\u305f\u3053\u3068<\/strong>\u3067\u3059\u3002\u672c\u4f53\u306b\u65e2\u8aad\u30d5\u30e9\u30b0\u3092\u6301\u305f\u305b\u308b\u3068\u500b\u4eba\u5b9b\u306b\u3057\u304b\u5bfe\u5fdc\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u65e2\u8aad\u3092\u4e2d\u9593\u30c6\u30fc\u30d6\u30eb\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u5168\u4f53\u5411\u3051\uff08N\u4eba\u304c\u65e2\u8aad\uff09\u3068\u500b\u4eba\u5411\u3051\u306e\u4e21\u65b9\u3092\u540c\u3058\u69cb\u9020\u3067\u6271\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">\/\/ \u672a\u8aad\u304a\u77e5\u3089\u305b\u4ef6\u6570\uff08\u5168\u4f53\u5411\u3051\uff0b\u81ea\u5206\u5b9b\u500b\u4eba\u5411\u3051\uff09\n$unreadCount = Information::query()\n    -&gt;where('status', InformationStatus::PUBLISHED)\n    -&gt;where('release_date', '&lt;=', today())\n    -&gt;where(function ($q) use ($userId) {\n        $q-&gt;where('is_personalized', false)\n          -&gt;orWhereHas('personalizeds', fn ($q) =&gt; $q-&gt;where('user_id', $userId));\n    })\n    -&gt;whereDoesntHave('reads', fn ($q) =&gt; $q-&gt;where('user_id', $userId))\n    -&gt;count();<\/pre>\n<h2>3. \u30dd\u30a4\u30f3\u30c8\u5c65\u6b74\u30921\u30c6\u30fc\u30d6\u30eb\u306e\u591a\u614b\u3067\u8868\u73fe\u3059\u308b<\/h2>\n<p>\u30dd\u30a4\u30f3\u30c8\u306f\u53d6\u5f97\u30fb\u4f7f\u7528\u306e\u30b7\u30fc\u30f3\u304c\u591a\u5f69\u3067\u3059\u3002NFC\u30b9\u30ad\u30e3\u30f3\u3001\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u3001\u624b\u52d5\u4ed8\u4e0e\u3001\u30b9\u30bf\u30f3\u30d7\u30e9\u30ea\u30fc\u9054\u6210\/\u5f53\u9078\u3001\u521d\u56de\u7279\u5178\u3001\u5e97\u8217QR\u3067\u306e\u4f7f\u7528\u3001\u624b\u52d5\u6e1b\u7b97\u2014\u2014\u3002\u3053\u308c\u3089\u3092\u7a2e\u5225\u3054\u3068\u306b\u30c6\u30fc\u30d6\u30eb\u5206\u5272\u3059\u308b\u3068\u96c6\u8a08\u304c\u3064\u3089\u304f\u306a\u308b\u305f\u3081\u3001<strong>1\u30c6\u30fc\u30d6\u30eb\u306b <code>type<\/code> \u3092\u6301\u305f\u305b\u305f\u591a\u614b\u8a2d\u8a08<\/strong>\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">type 1  : NFC\u53d6\u5f97        type 4  : \u30b9\u30bf\u30f3\u30d7\u5230\u9054\ntype 2  : NFC\u53d6\u5f97(UP\u6642)   type 5  : \u30b9\u30bf\u30f3\u30d7\u62bd\u9078\u5f53\u9078\ntype 3  : \u624b\u52d5\u4ed8\u4e0e        type 6  : \u521d\u56deDL\u7279\u5178\ntype 101: QR\u3067\u4f7f\u7528        type 102: \u624b\u52d5\u6e1b\u7b97<\/pre>\n<p>\u7279\u5fb4\u7684\u306a\u306e\u306f<strong>\u5e97\u8217ID\u30922\u8ef8\u6301\u3063\u3066\u3044\u308b<\/strong>\u3053\u3068\u3067\u3059\u3002<\/p>\n<ul>\n<li><code>exchange_store_id<\/code> \u2026 \u3069\u306e\u5e97\u3067\u53d6\u5f97\/\u4f7f\u7528\u3057\u305f\u304b\uff08\u53d6\u5f15\u5e97\u8217\uff09<\/li>\n<li><code>burden_store_id<\/code> \u2026 \u539f\u8cc7\u3092\u8ab0\u304c\u8ca0\u62c5\u3057\u305f\u304b\uff08\u904b\u55b6\u8ca0\u62c5\u306a\u3089 null\uff09<\/li>\n<\/ul>\n<p>\u300c\u5e97\u3067\u4ed8\u4e0e\u3055\u308c\u308b\u304c\u3001\u539f\u8cc7\u306f\u904b\u55b6\u304b\u52a0\u76df\u5e97\u304b\u300d\u3068\u3044\u3046\u696d\u52d9\u8981\u4ef6\u3092\u3001\u6709\u52b9\u671f\u9593\u3064\u304d\u306e\u8ca0\u62c5\u5143\u8a2d\u5b9a\u30c6\u30fc\u30d6\u30eb\u3092\u53c2\u7167\u3057\u3066\u6c7a\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">DB::transaction(function () use ($user, $store, $grantPoint) {\n    $burden = $store-&gt;pointBurdens()\n        -&gt;where('enabled_start_date', '&lt;=', today())\n        -&gt;where(fn ($q) =&gt; $q-&gt;whereNull('enabled_end_date')\n                             -&gt;orWhere('enabled_end_date', '&gt;=', today()))\n        -&gt;latest('enabled_start_date')-&gt;first();\n\n    $burdenStoreId = $burden?-&gt;burden_type === BurdenType::STORE ? $store-&gt;id : null;\n\n    $userPoint = $user-&gt;points()-&gt;create([\n        'point' =&gt; $grantPoint,\n        'expiration_date' =&gt; today()-&gt;addYear(),\n    ]);\n    $user-&gt;pointHistories()-&gt;create([\n        'user_point_id'     =&gt; $userPoint-&gt;id,\n        'point'             =&gt; $grantPoint,\n        'type'              =&gt; PointType::NFC_SCAN,\n        'exchange_store_id' =&gt; $store-&gt;id,\n        'burden_store_id'   =&gt; $burdenStoreId,\n    ]);\n});<\/pre>\n<p>\u6b8b\u9ad8\uff08<code>dtb_user_points<\/code>\uff09\u306f\u6709\u52b9\u671f\u9650\u5225\u306b\u8907\u6570\u30ec\u30b3\u30fc\u30c9\u3092\u6301\u3061\u3001\u300c\u671f\u9650\u304c\u8fd1\u3044\u9806\u306b\u6d88\u8cbb\u300d\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002\u5c65\u6b74\u3068\u6b8b\u9ad8\u3092\u5206\u3051\u308b\u3053\u3068\u3067\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u4ed8\u4e0e\/\u5229\u7528\u30dd\u30a4\u30f3\u30c8\u96c6\u8a08\u306f\u5c65\u6b74\u3092\u8210\u3081\u308b\u3060\u3051\u3067\u6e08\u307f\u307e\u3059\u3002<\/p>\n<h2>4. \u95b2\u89a7\u30ed\u30b0\u306e\u751f\u30c7\u30fc\u30bf\u3068\u65e5\u6b21\u96c6\u8a08\u3092\u5206\u96e2\u3059\u308b<\/h2>\n<p>\u5e97\u8217\u7ba1\u7406\u753b\u9762\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u306f\u300c\u95b2\u89a7\u4eba\u6570\u300d\u300cPV\u6570\u300d\u300c\u30af\u30fc\u30dd\u30f3\u5229\u7528\u8005\u6570\u300d\u304c\u4e26\u3073\u307e\u3059\u3002\u3053\u308c\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u96c6\u8a08\u3059\u308b\u3068\u30af\u30a8\u30ea\u304c\u91cd\u304f\u306a\u308b\u305f\u3081\u3001<strong>\u751f\u30ed\u30b0\u30c6\u30fc\u30d6\u30eb\u7fa4\u3068\u65e5\u6b21\u96c6\u8a08\u306e\u975e\u6b63\u898f\u5316\u30c6\u30fc\u30d6\u30eb<\/strong>\u3092\u5206\u3051\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">-- \u751f\u30ed\u30b0\uff08\u95b2\u89a7\u306e\u305f\u3073\u306bINSERT\uff09\ndtb_browse_store_info_histories \/ dtb_browse_post_histories\ndtb_browse_coupon_histories     \/ dtb_browse_toku_news_histories\n\n-- \u65e5\u6b21\u96c6\u8a08\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\ndtb_store_dashboards  (store_id \u00d7 target_date)<\/pre>\n<p>\u30dd\u30a4\u30f3\u30c8\u306f<strong>PV\uff08\u5ef6\u3079\uff09\u3068\u4eba\u6570\uff08DISTINCT\uff09\u3092\u5225\u30ab\u30e9\u30e0\u3067\u6301\u3064<\/strong>\u3053\u3068\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">INSERT INTO dtb_store_dashboards\n  (store_id, target_date, pv_count_store_info, people_count_browse_store_info)\nSELECT\n  store_id,\n  DATE(created_at),\n  COUNT(*),\n  COUNT(DISTINCT user_id)\nFROM dtb_browse_store_info_histories\nWHERE created_at &gt;= :from AND created_at &lt; :to\nGROUP BY store_id, DATE(created_at);<\/pre>\n<p>\u30d0\u30c3\u30c1\u306fECS\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3067\u52d5\u304b\u3057\u3001\u958b\u59cb\u30fb\u5b8c\u4e86\u30fb\u4ef6\u6570\u30fb\u4f8b\u5916\u3092CloudWatch\u3078\u51fa\u529b\u3002\u6570\u5343\u4ef6\u5358\u4f4d\u3067\u30c1\u30e3\u30f3\u30af\u51e6\u7406\u3057\u3001\u5931\u6557\u30ec\u30b3\u30fc\u30c9\u306f\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u30ed\u30b0\u306b\u6b8b\u3059\u5b9a\u77f3\u3092\u8e0f\u307f\u307e\u3059\u3002\u3053\u306e\u5206\u96e2\u306b\u3088\u308a\u3001\u7ba1\u7406\u753b\u9762\u306f\u96c6\u8a08\u30c6\u30fc\u30d6\u30eb\u3092\u65e5\u4ed8\u7bc4\u56f2\u3067\u5f15\u304f\u3060\u3051\u306b\u306a\u308a\u3001\u91cd\u3044\u30af\u30a8\u30ea\u3092\u4e00\u5207\u6295\u3052\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u751f\u30ed\u30b0\u306f\u76e3\u67fb\u30fb\u518d\u96c6\u8a08\u306e\u305f\u3081\u306b\u6b8b\u3057\u3066\u304a\u3051\u307e\u3059\u3002<\/p>\n<h2>5. 2\u6bb5\u968e\u627f\u8a8d\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u30b9\u30c6\u30fc\u30bf\u30b9\u9077\u79fb\u3067\u7ba1\u7406\u3059\u308b<\/h2>\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u6295\u7a3f\u3057\u305f\u6599\u7406\u753b\u50cf\u3092\u300c\u904b\u55b6\u2192\u52a0\u76df\u5e97\u300d\u306e2\u6bb5\u968e\u3067\u627f\u8a8d\u3057\u3001\u6b63\u5f0f\u306a\u30e1\u30cb\u30e5\u30fc\u753b\u50cf\u306b\u3059\u308b\u4ed5\u7d44\u307f\u3092\u30011\u30ab\u30e9\u30e0\u306e <code>status<\/code> \u9077\u79fb\u3067\u8868\u73fe\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">1 \u904b\u55b6\u78ba\u8a8d\u5f85\u3061 \u2192 2 \u904b\u55b6\u5426\u8a8d\n             \u2192 3 \u52a0\u76df\u5e97\u78ba\u8a8d\u5f85\u3061 \u2192 4 \u52a0\u76df\u5e97\u5426\u8a8d\n                              \u2192 5 \u627f\u8a8d\u6e08\u307f<\/pre>\n<p>\u9077\u79fb\u306e\u305f\u3073\u306b\u526f\u4f5c\u7528\u304c\u3042\u308a\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3067\u5305\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">\/\/ \u52a0\u76df\u5e97\u627f\u8a8d\uff083 \u2192 5\uff09\nDB::transaction(function () use ($postImage) {\n    $postImage-&gt;update(['status' =&gt; PostImageStatus::APPROVED]);\n    $postImage-&gt;menu-&gt;update([\n        'image_path'      =&gt; $postImage-&gt;image_path,\n        'registrant_name' =&gt; $postImage-&gt;user_name, \/\/ \u300c\u516c\u5f0f\u300d\u3067\u306f\u306a\u304f\u6295\u7a3f\u8005\u540d\n    ]);\n});<\/pre>\n<p>\u30c6\u30fc\u30d6\u30eb\u3092\u5206\u3051\u305a\u72b6\u614b\u6a5f\u68b0\u30921\u30ab\u30e9\u30e0\u306b\u9589\u3058\u8fbc\u3081\u308b\u3053\u3068\u3067\u3001\u627f\u8a8d\u753b\u9762\u306e\u4e00\u89a7\u30fb\u7d5e\u308a\u8fbc\u307f\u304c <code>WHERE status = ?<\/code> \u3060\u3051\u3067\u6e08\u307f\u3001\u5b9f\u88c5\u3082\u8ffd\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u78ba\u8a8d\u65b9\u6cd5<\/h2>\n<ul>\n<li><strong>\u30dd\u30a4\u30f3\u30c8\u591a\u614b<\/strong>: <code>type<\/code> \u5225\u306e\u30c0\u30df\u30fc\u30ec\u30b3\u30fc\u30c9\u3092\u6295\u5165\u3057\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u96c6\u8a08\uff08\u4ed8\u4e0e\/\u5229\u7528\uff09\u306e\u5206\u5c90\u3092\u78ba\u8a8d<\/li>\n<li><strong>\u95b2\u89a7\u96c6\u8a08<\/strong>: \u540c\u4e00\u30e6\u30fc\u30b6\u30fc\u3067\u8907\u6570\u56de\u95b2\u89a7\u3055\u305b\u3001<code>pv_count<\/code>\uff08\u5897\u3048\u308b\uff09\u3068 <code>people_count<\/code>\uff08\u5897\u3048\u306a\u3044\uff09\u306e\u5dee\u3092\u78ba\u8a8d<\/li>\n<li><strong>\u627f\u8a8d\u30d5\u30ed\u30fc<\/strong>: \u6b63\u5e38\u7cfb\uff081\u21923\u21925\uff09\u3068\u5426\u8a8d\u7cfb\uff081\u21922 \/ 3\u21924\uff09\u3067\u526f\u4f5c\u7528\u306e\u6709\u7121\u3092\u78ba\u8a8d<\/li>\n<\/ul>\n<h2>\u6ce8\u610f\u70b9<\/h2>\n<ul>\n<li>\u591a\u614b\u30c6\u30fc\u30d6\u30eb\u306e <code>type<\/code> \u306f\u5fc5\u305a enum \u30af\u30e9\u30b9\u306b\u9589\u3058\u8fbc\u3081\u308b\u3002\u30de\u30b8\u30c3\u30af\u30ca\u30f3\u30d0\u30fc\u304c\u6563\u308b\u3068\u7a2e\u5225\u8ffd\u52a0\u306e\u305f\u3073\u306b\u4e8b\u6545\u308a\u307e\u3059\u3002<\/li>\n<li>\u96c6\u8a08\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306f <code>target_date<\/code> \u3092\u6301\u3061\u3001\u518d\u96c6\u8a08\u306b\u5099\u3048\u3066\u751f\u30ed\u30b0\u306f\u6d88\u3055\u306a\u3044\u3002<\/li>\n<li>\u65e2\u8aad\u30fb\u3044\u3044\u306d\u30fb\u30af\u30ea\u30c3\u30d7\u7b49\u306e\u4e2d\u9593\u30c6\u30fc\u30d6\u30eb\u306f\u8907\u5408\u30e6\u30cb\u30fc\u30af\u5236\u7d04\u3067\u4e8c\u91cdINSERT\u3092\u9632\u3050\u3002<\/li>\n<\/ul>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>100\u30c6\u30fc\u30d6\u30eb\u8d85\u306e\u30b9\u30ad\u30fc\u30de\u3067\u3082\u3001\u7834\u7dbb\u3092\u9632\u3050\u5224\u65ad\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3057\u305f\u3002<\/p>\n<ul>\n<li>\u540d\u524d\u3067\u5f79\u5272\u3092\u5206\u3051\u308b\uff08<code>mtb_<\/code>\/<code>dtb_<\/code>\uff09<\/li>\n<li>\u767b\u5834\u4eba\u7269\u304c\u9055\u3046\u901a\u77e5\u306f\u300c\u65b9\u5411\u300d\u3067\u5206\u3051\u308b<\/li>\n<li>\u96c6\u8a08\u8ef8\u304c\u540c\u3058\u30dd\u30a4\u30f3\u30c8\u5c65\u6b74\u306f\u591a\u614b\u3067\u307e\u3068\u3081\u308b<\/li>\n<li>\u751f\u30ed\u30b0\u3068\u96c6\u8a08\u3092\u5206\u3051\u3066\u7ba1\u7406\u753b\u9762\u3092\u8efd\u304f\u3059\u308b<\/li>\n<li>\u72b6\u614b\u6a5f\u68b0\u306f1\u30ab\u30e9\u30e0\uff0b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3067\u5305\u3080<\/li>\n<\/ul>\n<p>\u300c\u5206\u3051\u308b\u30fb\u307e\u3068\u3081\u308b\u300d\u306e\u5224\u65ad\u57fa\u6e96\u306f\u3001<strong>\u96c6\u8a08\u8ef8\u304c\u540c\u3058\u304b\u3069\u3046\u304b\uff0f\u767b\u5834\u4eba\u7269\u304c\u9055\u3046\u304b\u3069\u3046\u304b<\/strong>\u3002\u8907\u96d1\u306a\u30c9\u30e1\u30a4\u30f3\u307b\u3069\u3001\u5b9f\u88c5\u524d\u306b\u3053\u306e\u7269\u5dee\u3057\u3092\u8a00\u8a9e\u5316\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u3001\u5f8c\u304b\u3089\u5165\u308b\u4eba\u306b\u3082\u8aad\u3081\u308b\u8a2d\u8a08\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u98f2\u98df\u5e97\u767a\u898b\u30fb\u6765\u5e97\u30dd\u30a4\u30f3\u30c8\u7cfb\u30a2\u30d7\u30ea\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u8a2d\u8a08\u306b\u643a\u308f\u308a\u3001100\u30c6\u30fc\u30d6\u30eb\u3092\u8d85\u3048\u308b\u30b9\u30ad\u30fc\u30de\u3092\u6271\u3044\u307e\u3057\u305f\u3002\u300c\u30e6\u30fc\u30b6\u30fc\u304c\u5e97\u3092\u63a2\u3059 \u2192 NFC\u30bf\u30b0\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u6765\u5e97 \u2192 \u30dd\u30a4\u30f3\u30c8\u304c\u8caf\u307e\u308b \u2192 \u6295\u7a3f\u30fb\u5fdc\u63f4\u30fb\u30b9\u30bf\u30f3\u30d7\u30e9\u30ea\u30fc\u300d\u3068\u3044\u3046\u4f53\u9a13\u3092\u652f\u3048\u308b\u30c7\u30fc\u30bf\u30e2\u2026<\/p>\n","protected":false},"author":1,"featured_media":3403,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[35],"tags":[424,118,562,116,472],"class_list":["post-3404","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql-memorandum","tag-424","tag-118","tag-562","tag-116","tag-472"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2026\/09\/20260909-00mttea3-thumbnail.jpg","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=3404"}],"version-history":[{"count":1,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3404\/revisions"}],"predecessor-version":[{"id":3405,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/3404\/revisions\/3405"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/3403"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=3404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=3404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=3404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}