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
{{ message }}
Repository navigation
Commit f285ad3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/site/Model.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -523,7 +523,18 @@ Here are general attributes for property definitions:
523
523
<li><code>"uuidv4"</code>: generate a new universally unique identifier using the UUID version 4 algorithm.</li>
524
524
<li>"<code>now"</code>: use the current date and time as returned by <code>new Date()</code></li>
525
525
</ul>
526
-
NOTE: the value of <code>defaultFn</code> is generated by LoopBack itself. If you'd like to use database built-in <code>uuid</code> functions (MySQL or Postgres for example), please check the README file of the corresponding connector.
526
+
NOTES:
527
+
<ul>
528
+
<li>
529
+
the value of <code>defaultFn</code> is generated by LoopBack itself. If you'd like to use database built-in <code>uuid</code> functions (MySQL or Postgres for example), please check the README file of the corresponding connector.
530
+
</li>
531
+
<li>
532
+
don't set <code>generated</code> to <code>true</code> incase of <code>defaultFn</code> as <code>generated</code> property indicates the value to be generated by the database not by Loopback.
533
+
</li>
534
+
<li>
535
+
don't set <code>required</code> to <code>true</code> incase of <code>defaultFn</code> as <code>required</code> means the user needs to provide the field in the request always.
0 commit comments