Page MenuHomeSealhub

tasks.ts
No OneTemporary

tasks.ts

import { Collection, FieldTypes, Policies } from "sealious";
export default class Tasks extends Collection {
fields = {
title: new FieldTypes.Text(),
done: new (class extends FieldTypes.Boolean {
hasDefaultValue = () => true;
async getDefaultValue() {
return false;
}
})(),
};
policies = {
create: new Policies.Public(),
show: new Policies.Owner(),
list: new Policies.Owner(),
};
defaultPolicy = new Policies.Public();
}

File Metadata

Mime Type
text/x-java
Expires
Tue, Jul 8, 08:41 (2 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
634539
Default Alt Text
tasks.ts (454 B)

Event Timeline