Browse Source

chore: updates README.md

e22m4u 2 years ago
parent
commit
de968f8281
1 changed files with 11 additions and 0 deletions
  1. 11 0
      README.md

+ 11 - 0
README.md

@@ -184,7 +184,18 @@ schema.defineModel({
 schema.defineModel({
   name: 'city',
   base: 'area',
+  properties: {
+    timezone: DataType.STRING,
+  },
 });
+
+// документ "city" может выглядеть так
+// {
+//   "id": 1,
+//   "name": "Moscow", <= унаследовано от "area"
+//   "population": 11980000, <= унаследовано от "area"
+//   "timezone": "Europe/Moscow"
+// }
 ```
 
 #### Параметры модели