Browse Source

chore: updates README.md

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

+ 4 - 0
README.md

@@ -37,6 +37,10 @@ schema.defineDatasource({
 schema.defineModel({
   name: 'user', // название модели
   adapter: 'myMemory', // выбранный источник
+  properties: { // поля модели
+    name: 'string',
+    age: 'number',
+  },
 });
 
 // получаем репозиторий модели "user"