You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
362 B
TypeScript
17 lines
362 B
TypeScript
import { Collection, FieldTypes, Policies } from "sealious";
|
|
|
|
export class Tasks extends Collection {
|
|
fields = {
|
|
title: new FieldTypes.Text(),
|
|
done: new (class extends FieldTypes.Boolean {
|
|
hasDefaultValue = () => true;
|
|
async getDefaultValue() {
|
|
return false;
|
|
}
|
|
})(),
|
|
};
|
|
defaultPolicy = new Policies.Public();
|
|
}
|
|
|
|
export default new Tasks();
|