Assets
Asset reference for Book Store.
This page documents the following assets:
- Book — Represents a book in the bookstore collection.
- Store — Represents a bookstore location with its inventory.
- Store Permission — Represents access permissions for a store.
Book
Represents a book in the bookstore collection.
Schema
The following properties describe a Book:
| Property | Type | Description |
|---|---|---|
author | string | The author of the book. |
description | string | A short description of the book. |
isbn Required | string | The ISBN identifier of the book. |
pages | integer | The number of pages in the book. |
publish_date | string | The publication date of the book. |
publisher | string | The publisher of the book. |
subTitle | string | The subtitle of the book. |
title | string | The title of the book. |
website | string | The website URL for the book. |
Examples
Store
Represents a bookstore location with its inventory.
Schema
The following properties describe a Store:
| Property | Type | Description |
|---|---|---|
digicode Required | integer | The digicode for the store's entrance. It's a 4-digit code that allows access to the store after hours. |
isbns | list(string) | The list of ISBNs available in the store. |
location Required | string | The location of the store. |
name Required | string | The name of the store. |
opening_hours Default | object | |
path Computed | string | The path to the store's inventory file. This is computed based on the store's location. |
Examples
Store Permission
Represents access permissions for a store.
Schema
The following properties describe a Store Permission:
| Property | Type | Description |
|---|---|---|
groups Required | list(string) | The list of groups that have this permission. |
role Required | string | The role associated with this permission. |
store_id Required | string | The ID of the store this permission applies to. |