timeflow/data/db/Schema.java
.. .. @@ -1,4 +1,5 @@ 1 1 package timeflow.data.db; 2 +import timeflow.data.time.RoughTime;2 3 3 4 import java.util.*; 4 5 .. .. @@ -6,6 +7,12 @@ 6 7 public class Schema implements Iterable<Field> 7 8 { 8 9 10 + public Schema(boolean withDateField)11 + {12 + add(new Field("Time", RoughTime.class, 0));13 + add(new Field("Name", String.class, 0));14 + }15 +9 16 private Map<String, Field> schema = new HashMap<String, Field>(); 10 17 private List<Field> fieldList = new ArrayList<Field>(); // so we preserve field order. 11 18