|
|
@ -3,7 +3,12 @@ import { Collection, FieldTypes, Policies } from "sealious";
|
|
|
|
const tasks = new (class extends Collection {
|
|
|
|
const tasks = new (class extends Collection {
|
|
|
|
fields = {
|
|
|
|
fields = {
|
|
|
|
title: new FieldTypes.Text(),
|
|
|
|
title: new FieldTypes.Text(),
|
|
|
|
done: new FieldTypes.Boolean(),
|
|
|
|
done: new (class extends FieldTypes.Boolean {
|
|
|
|
|
|
|
|
hasDefaultValue = () => true;
|
|
|
|
|
|
|
|
async getDefaultValue() {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})(),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
defaultPolicy = new Policies.Public();
|
|
|
|
defaultPolicy = new Policies.Public();
|
|
|
|
})();
|
|
|
|
})();
|
|
|
|