Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F3010674
collection.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
392 B
Referenced Files
None
Subscribers
None
collection.ts
View Options
import
{
toPascalCase
}
from
"js-convert-case"
;
export
function
collectionTemplate
(
collection_name
:
string
,
fields_string
=
`content: new FieldTypes.Text(),`
)
{
return
`import { Collection, FieldTypes, Policies } from "sealious";
export default class
${
toPascalCase
(
collection_name
)
}
extends Collection {
fields = {
${
fields_string
}
};
defaultPolicy = new Policies.Public();
}
`
;
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Wed, May 7, 19:46 (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
624889
Default Alt Text
collection.ts (392 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment