You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/orm/model/soft.html
+8-8
Original file line number
Diff line number
Diff line change
@@ -62,11 +62,11 @@ <h2>基本的な使用</h2>
62
62
</section>
63
63
64
64
<section>
65
-
<h2id="settings">Settings</h2>
66
-
<p>There are currently two extra settings that can be set for soft delete models.</p>
67
-
<p><kbd>deleted_field</kbd>is the field that stores the timestamp. In the database this should be either a MySQL or unix timestamp and default to <kbd>NULL</kbd>. Any entries with a <kbd>NULL</kbd>timestamp are not deleted. The column name defaults to deleted_at.</p>
68
-
<p><kbd>mysql_timestamp</kbd>is if the timestamp generated should be a MySQL timestamp or a unix timestamp. This defaults to <kbd>false</kbd>(use a unix timestamp).</p>
69
-
<p>Example model with default settings:</p>
65
+
<h2id="settings">設定</h2>
66
+
<p>論理削除モデルには 2 つの設定があります。</p>
67
+
<p><kbd>deleted_field</kbd>はタイムスタンプを保存するカラム名を指定します。データベースでは MySQL タイムスタンプか UNIX タイムスタンプのいずれか、または <kbd>NULL</kbd> を保存します。<kbd>NULL</kbd>のタイムスタンプを持つレコードは削除されていません。デフォルトでは deleted_at というカラム名が指定されています。</p>
68
+
<p><kbd>mysql_timestamp</kbd>が <kbd>true</kbd> の場合は MySQL タイムスタンプを保存します。デフォルトでは <kbd>false</kbd>になっていて UNIX タイムスタンプを保存します。</p>
<p>To delete a record permanently, call the <kbd>purge()</kbd>function on the object after selecting. This deletes the record permanently from the database.</p>
0 commit comments