Browse Source

chore: updates README.md

e22m4u 2 years ago
parent
commit
b1cb7b76b9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -180,10 +180,10 @@ const cityRep = schema.getRepository('city');
 schema.defineModel({
   name: 'city',
   properties: {
-    name: DataType.STRING,
-    population: {
+    name: DataType.STRING, // поле "name" типа "string"
+    population: { // поле "population" типа "number"
       type: DataType.NUMBER,
-      default: 0,
+      default: 0, // значение по умолчанию
     },
   },
 });