Created
March 28, 2023 13:56
-
-
Save serefyarar/2e110db96b61c5d1eaded634115a51ca to your computer and use it in GitHub Desktop.
index schema 28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Index @createModel(accountRelation: LIST, description: "A Simple Index"){ | |
controller_did: DID! @documentAccount | |
title: String! @string(maxLength:1000) | |
version: CommitID! @documentVersion | |
collab_action: String @string(maxLength:150) | |
created_at: DateTime! | |
updated_at: DateTime! | |
deleted_at: DateTime | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Link @createModel(accountRelation: LIST, description: "A Simple Link"){ | |
controller_did: DID! @documentAccount | |
url: String! @string(maxLength:5000) | |
title: String @string(maxLength:5000) | |
favicon: String @string(maxLength:5000) | |
tags: [String] @list(maxLength: 20) @string(maxLength: 140) | |
content: String @string(maxLength:50000) | |
version: CommitID! @documentVersion | |
created_at: DateTime! | |
updated_at: DateTime! | |
deleted_at: DateTime | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment