README.md in swiss_db-0.6.2 vs README.md in swiss_db-0.6.3
- old
+ new
@@ -22,10 +22,30 @@
# Schemas
Schemas are the exact same from CoreDataQuery and go in the same place. (schemas/)
-Schema name does nothing.
+```ruby
+schema "0001" do
+
+ entity "Car" do
+ boolean :is_red
+ string :model
+ integer32 :tire_size
+ integer32 :tire_weight
+ integer32 :mileage
+ end
+
+ entity "Boat" do
+ string :name
+ integer32 :weight
+ double :worth_in_millions
+ end
+
+end
+```
+
+Schema name (the "0001") does nothing.
# Models
Models are as such: