Addding in ds type and access fields
This commit is contained in:
@@ -40,14 +40,25 @@ class Data_Store_Base(BaseModel):
|
|||||||
name: Optional[str]
|
name: Optional[str]
|
||||||
description: Optional[str]
|
description: Optional[str]
|
||||||
|
|
||||||
|
type: Optional[str] # json, html, md, text
|
||||||
|
|
||||||
|
# The JSON fields are case sensitive
|
||||||
# json: Optional[str] # "json" is reserved; need to change field name? json_str?
|
# json: Optional[str] # "json" is reserved; need to change field name? json_str?
|
||||||
json_str: Optional[Union[Json, None]] = Field(
|
json_str: Optional[Union[Json, None]] = Field(
|
||||||
alias = 'json',
|
alias = 'json',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# The text fields are case insensitive
|
||||||
text: Optional[str]
|
text: Optional[str]
|
||||||
|
|
||||||
meta_json: Optional[str]
|
meta_json: Optional[str]
|
||||||
meta_text: Optional[str]
|
meta_text: Optional[str]
|
||||||
|
|
||||||
|
access: Optional[str]
|
||||||
|
access_read: Optional[str]
|
||||||
|
access_write: Optional[str]
|
||||||
|
access_delete: Optional[str]
|
||||||
|
|
||||||
enable: Optional[bool]
|
enable: Optional[bool]
|
||||||
|
|
||||||
hide: Optional[bool]
|
hide: Optional[bool]
|
||||||
|
|||||||
Reference in New Issue
Block a user