Generated Model Documentation

This documentation is automatically generated by php artisan docs:models from the Laravel models and database schema.

Overview

Table of Contents

Artist

Namespace: App\Models\Artist

Database Table

Property Value
Table Name artists
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
name varchar Unknown Unknown  
place_of_birth varchar Unknown Unknown  
place_of_death varchar Unknown Unknown  
date_of_birth varchar Unknown Unknown  
date_of_death varchar Unknown Unknown  
period_of_activity varchar Unknown Unknown  
internal_name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['name', 'place_of_birth', 'place_of_death', 'date_of_birth', 'date_of_death', 'period_of_activity', 'internal_name', 'backward_compatibility']

Attribute Casting

Attribute Cast Type
created_at datetime
updated_at datetime

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To Many

Author

Namespace: App\Models\Author

Database Table

Property Value
Table Name authors
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
name varchar Unknown Unknown  
firstname varchar Unknown Unknown  
lastname varchar Unknown Unknown  
givenname varchar Unknown Unknown  
originalname varchar Unknown Unknown  
internal_name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['name', 'firstname', 'lastname', 'givenname', 'originalname', 'internal_name', 'backward_compatibility']

Attribute Casting

Attribute Cast Type
created_at datetime
updated_at datetime

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Has Many

AuthorTranslation

Namespace: App\Models\AuthorTranslation

Database Table

Property Value
Table Name author_translations
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
author_id char Unknown Unknown  
language_id varchar Unknown Unknown  
context_id char Unknown Unknown  
curriculum text Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['author_id', 'language_id', 'context_id', 'curriculum', 'backward_compatibility', 'extra']

Attribute Casting

Attribute Cast Type
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Query Scopes

AvailableImage

Namespace: App\Models\AvailableImage

Database Table

Property Value
Table Name available_images
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
path varchar Unknown Unknown  
original_name varchar Unknown Unknown  
mime_type varchar Unknown Unknown  
size bigint Unknown Unknown  
comment varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['path', 'original_name', 'mime_type', 'size', 'comment']

Attribute Casting

Attribute Cast Type
size integer

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Collection

Namespace: App\Models\Collection

Database Table

Property Value
Table Name collections
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
internal_name varchar Unknown Unknown  
type enum Unknown Unknown  
language_id varchar Unknown Unknown  
context_id char Unknown Unknown  
parent_id char Unknown Unknown  
display_order int Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
latitude decimal Unknown Unknown  
longitude decimal Unknown Unknown  
map_zoom int Unknown Unknown  
country_id varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['internal_name', 'type', 'language_id', 'context_id', 'parent_id', 'display_order', 'backward_compatibility', 'latitude', 'longitude', 'map_zoom', 'country_id']

Attribute Casting

Attribute Cast Type
display_order integer
latitude decimal:8
longitude decimal:8
map_zoom integer

Model Constants

const TYPE_COLLECTION = 'collection';
const TYPE_EXHIBITION = 'exhibition';
const TYPE_GALLERY = 'gallery';
const TYPE_THEME = 'theme';
const TYPE_EXHIBITION_TRAIL = 'exhibition trail';
const TYPE_ITINERARY = 'itinerary';
const TYPE_LOCATION = 'location';
const TYPE_SUBTHEME = 'subtheme';
const TYPE_REGION = 'region';
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Has Many

Belongs To Many

Query Scopes

CollectionImage

Namespace: App\Models\CollectionImage

Database Table

Property Value
Table Name collection_images
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
collection_id char Unknown Unknown  
path varchar Unknown Unknown  
original_name varchar Unknown Unknown  
mime_type varchar Unknown Unknown  
size bigint Unknown Unknown  
alt_text varchar Unknown Unknown  
display_order int Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['collection_id', 'path', 'original_name', 'mime_type', 'size', 'alt_text', 'display_order']

Attribute Casting

Attribute Cast Type
size integer
display_order integer

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Belongs To Many

Query Scopes

CollectionItem

Namespace: App\Models\CollectionItem

Database Table

Property Value
Table Name collection_item
Primary Key id
Key Type Auto-incrementing Integer
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
collection_id char Unknown Unknown  
item_id char Unknown Unknown  
display_order int Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['collection_id', 'item_id', 'display_order', 'extra']

Attribute Casting

Attribute Cast Type
display_order integer
extra array

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

CollectionMedia

Namespace: App\Models\CollectionMedia

Database Table

Property Value
Table Name collection_media
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
collection_id char Unknown Unknown  
language_id varchar Unknown Unknown  
type enum Unknown Unknown  
title varchar Unknown Unknown  
description text Unknown Unknown  
url varchar Unknown Unknown  
display_order int Unknown Unknown  
extra json Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['collection_id', 'language_id', 'type', 'title', 'description', 'url', 'display_order', 'extra', 'backward_compatibility']

Attribute Casting

Attribute Cast Type
type App\Enums\MediaType
display_order integer
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

CollectionPartner

Namespace: App\Models\CollectionPartner

Database Table

Property Value
Table Name collection_partner
Primary Key id
Key Type Auto-incrementing Integer
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
collection_id char Unknown Unknown  
collection_type varchar Unknown Unknown  
partner_id char Unknown Unknown  
level varchar Unknown Unknown  
visible tinyint Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['collection_id', 'collection_type', 'partner_id', 'level', 'visible']

Attribute Casting

Attribute Cast Type
level string
visible boolean

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

CollectionTranslation

Namespace: App\Models\CollectionTranslation

Database Table

Property Value
Table Name collection_translations
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
collection_id char Unknown Unknown  
language_id varchar Unknown Unknown  
context_id char Unknown Unknown  
title varchar Unknown Unknown  
description text Unknown Unknown  
quote text Unknown Unknown  
url varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['collection_id', 'language_id', 'context_id', 'title', 'description', 'quote', 'url', 'backward_compatibility', 'extra']

Attribute Casting

Attribute Cast Type
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Has Many

Belongs To Many

Query Scopes

Context

Namespace: App\Models\Context

Database Table

Property Value
Table Name contexts
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
internal_name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  
is_default tinyint Unknown Unknown  

Fillable Fields

['internal_name', 'backward_compatibility', 'is_default']

Attribute Casting

Attribute Cast Type
is_default boolean

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Query Scopes

Contributor

Namespace: App\Models\Contributor

Database Table

Property Value
Table Name contributors
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
collection_id char Unknown Unknown  
category varchar Unknown Unknown  
display_order int Unknown Unknown  
visible tinyint Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
internal_name varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['collection_id', 'category', 'display_order', 'visible', 'backward_compatibility', 'internal_name']

Attribute Casting

Attribute Cast Type
display_order integer
visible boolean

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Has Many

ContributorImage

Namespace: App\Models\ContributorImage

Database Table

Property Value
Table Name contributor_images
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
contributor_id char Unknown Unknown  
path varchar Unknown Unknown  
original_name varchar Unknown Unknown  
mime_type varchar Unknown Unknown  
size bigint Unknown Unknown  
alt_text varchar Unknown Unknown  
display_order int Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['contributor_id', 'path', 'original_name', 'mime_type', 'size', 'alt_text', 'display_order']

Attribute Casting

Attribute Cast Type
size integer
display_order integer

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

ContributorTranslation

Namespace: App\Models\ContributorTranslation

Database Table

Property Value
Table Name contributor_translations
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
contributor_id char Unknown Unknown  
language_id varchar Unknown Unknown  
context_id char Unknown Unknown  
name varchar Unknown Unknown  
description text Unknown Unknown  
link varchar Unknown Unknown  
alt_text varchar Unknown Unknown  
extra json Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['contributor_id', 'language_id', 'context_id', 'name', 'description', 'link', 'alt_text', 'extra', 'backward_compatibility']

Attribute Casting

Attribute Cast Type
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Country

Namespace: App\Models\Country

Database Table

Property Value
Table Name countries
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id varchar Unknown Unknown  
internal_name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['id', 'internal_name', 'backward_compatibility']

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Has Many

CountryTranslation

Namespace: App\Models\CountryTranslation

Database Table

Property Value
Table Name country_translations
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
country_id varchar Unknown Unknown  
language_id varchar Unknown Unknown  
name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['country_id', 'language_id', 'name', 'backward_compatibility', 'extra']

Attribute Casting

Attribute Cast Type
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Query Scopes

Dynasty

Namespace: App\Models\Dynasty

Database Table

Property Value
Table Name dynasties
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
from_ah int Unknown Unknown  
to_ah int Unknown Unknown  
from_ad int Unknown Unknown  
to_ad int Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['from_ah', 'to_ah', 'from_ad', 'to_ad', 'backward_compatibility']

Attribute Casting

Attribute Cast Type
from_ah integer
to_ah integer
from_ad integer
to_ad integer

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Has Many

Belongs To Many

DynastyTranslation

Namespace: App\Models\DynastyTranslation

Database Table

Property Value
Table Name dynasty_translations
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
dynasty_id char Unknown Unknown  
language_id varchar Unknown Unknown  
name varchar Unknown Unknown  
also_known_as varchar Unknown Unknown  
area text Unknown Unknown  
history text Unknown Unknown  
date_description_ah varchar Unknown Unknown  
date_description_ad varchar Unknown Unknown  
author_id char Unknown Unknown  
text_copy_editor_id char Unknown Unknown  
translator_id char Unknown Unknown  
translation_copy_editor_id char Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['dynasty_id', 'language_id', 'name', 'also_known_as', 'area', 'history', 'date_description_ah', 'date_description_ad', 'author_id', 'text_copy_editor_id', 'translator_id', 'translation_copy_editor_id', 'backward_compatibility', 'extra']

Attribute Casting

Attribute Cast Type
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Query Scopes

Glossary

Namespace: App\Models\Glossary

Database Table

Property Value
Table Name glossaries
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
internal_name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['internal_name', 'backward_compatibility']

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Has Many

Belongs To Many

GlossarySpelling

Namespace: App\Models\GlossarySpelling

Database Table

Property Value
Table Name glossary_spellings
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
glossary_id char Unknown Unknown  
language_id varchar Unknown Unknown  
spelling varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['glossary_id', 'language_id', 'spelling']

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Belongs To Many

Query Scopes

GlossaryTranslation

Namespace: App\Models\GlossaryTranslation

Database Table

Property Value
Table Name glossary_translations
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
glossary_id char Unknown Unknown  
language_id varchar Unknown Unknown  
definition text Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['glossary_id', 'language_id', 'definition']

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Query Scopes

ImageUpload

Namespace: App\Models\ImageUpload

Database Table

Property Value
Table Name image_uploads
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
path varchar Unknown Unknown  
name varchar Unknown Unknown  
extension varchar Unknown Unknown  
mime_type varchar Unknown Unknown  
size bigint Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['path', 'name', 'extension', 'mime_type', 'size']

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Item

Namespace: App\Models\Item

Database Table

Property Value
Table Name items
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
partner_id char Unknown Unknown  
internal_name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
type enum Unknown Unknown  
parent_id char Unknown Unknown  
display_order int Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  
country_id varchar Unknown Unknown  
project_id char Unknown Unknown  
collection_id char Unknown Unknown  
owner_reference varchar Unknown Unknown  
mwnf_reference varchar Unknown Unknown  
start_date smallint Unknown Unknown  
end_date smallint Unknown Unknown  
latitude decimal Unknown Unknown  
longitude decimal Unknown Unknown  
map_zoom int Unknown Unknown  

Fillable Fields

['partner_id', 'parent_id', 'internal_name', 'type', 'backward_compatibility', 'country_id', 'project_id', 'collection_id', 'owner_reference', 'mwnf_reference', 'display_order', 'start_date', 'end_date', 'latitude', 'longitude', 'map_zoom']

Attribute Casting

Attribute Cast Type
type App\Enums\ItemType
display_order integer
start_date integer
end_date integer
latitude decimal:8
longitude decimal:8
map_zoom integer

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Has Many

Belongs To Many

Query Scopes

ItemDocument

Namespace: App\Models\ItemDocument

Database Table

Property Value
Table Name item_documents
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
item_id char Unknown Unknown  
language_id varchar Unknown Unknown  
path varchar Unknown Unknown  
original_name varchar Unknown Unknown  
mime_type varchar Unknown Unknown  
size bigint Unknown Unknown  
title varchar Unknown Unknown  
display_order int Unknown Unknown  
extra json Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['item_id', 'language_id', 'path', 'original_name', 'mime_type', 'size', 'title', 'display_order', 'extra', 'backward_compatibility']

Attribute Casting

Attribute Cast Type
size integer
display_order integer
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

ItemImage

Namespace: App\Models\ItemImage

Database Table

Property Value
Table Name item_images
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
item_id char Unknown Unknown  
path varchar Unknown Unknown  
original_name varchar Unknown Unknown  
mime_type varchar Unknown Unknown  
size bigint Unknown Unknown  
alt_text varchar Unknown Unknown  
display_order int Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['item_id', 'path', 'original_name', 'mime_type', 'size', 'alt_text', 'display_order']

Attribute Casting

Attribute Cast Type
size integer
display_order integer

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Belongs To Many

Query Scopes

Namespace: App\Models\ItemItemLink

Database Table

Property Value
Table Name item_item_links
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
source_id char Unknown Unknown  
target_id char Unknown Unknown  
context_id char Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['source_id', 'target_id', 'context_id']

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Has Many

Query Scopes

ItemItemLinkTranslation

Namespace: App\Models\ItemItemLinkTranslation

Database Table

Property Value
Table Name item_item_link_translations
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
item_item_link_id char Unknown Unknown  
language_id varchar Unknown Unknown  
description text Unknown Unknown  
reciprocal_description text Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['item_item_link_id', 'language_id', 'description', 'reciprocal_description', 'backward_compatibility']

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Query Scopes

ItemMedia

Namespace: App\Models\ItemMedia

Database Table

Property Value
Table Name item_media
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
item_id char Unknown Unknown  
language_id varchar Unknown Unknown  
type enum Unknown Unknown  
title varchar Unknown Unknown  
description text Unknown Unknown  
url varchar Unknown Unknown  
display_order int Unknown Unknown  
extra json Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['item_id', 'language_id', 'type', 'title', 'description', 'url', 'display_order', 'extra', 'backward_compatibility']

Attribute Casting

Attribute Cast Type
type App\Enums\MediaType
display_order integer
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

ItemTranslation

Namespace: App\Models\ItemTranslation

Database Table

Property Value
Table Name item_translations
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
item_id char Unknown Unknown  
language_id varchar Unknown Unknown  
context_id char Unknown Unknown  
name varchar Unknown Unknown  
alternate_name varchar Unknown Unknown  
description text Unknown Unknown  
type varchar Unknown Unknown  
holder text Unknown Unknown  
owner text Unknown Unknown  
initial_owner text Unknown Unknown  
dates text Unknown Unknown  
location text Unknown Unknown  
dimensions text Unknown Unknown  
place_of_production text Unknown Unknown  
method_for_datation text Unknown Unknown  
method_for_provenance text Unknown Unknown  
provenance text Unknown Unknown  
obtention text Unknown Unknown  
bibliography text Unknown Unknown  
author_id char Unknown Unknown  
text_copy_editor_id char Unknown Unknown  
translator_id char Unknown Unknown  
translation_copy_editor_id char Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['item_id', 'language_id', 'context_id', 'name', 'alternate_name', 'description', 'type', 'holder', 'owner', 'initial_owner', 'dates', 'location', 'dimensions', 'place_of_production', 'method_for_datation', 'method_for_provenance', 'provenance', 'obtention', 'bibliography', 'author_id', 'text_copy_editor_id', 'translator_id', 'translation_copy_editor_id', 'backward_compatibility', 'extra']

Attribute Casting

Attribute Cast Type
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Has Many

Belongs To Many

Query Scopes

Language

Namespace: App\Models\Language

Database Table

Property Value
Table Name languages
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id varchar Unknown Unknown  
internal_name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  
is_default tinyint Unknown Unknown  

Fillable Fields

['id', 'internal_name', 'backward_compatibility', 'is_default']

Attribute Casting

Attribute Cast Type
is_default boolean

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Has Many

Query Scopes

LanguageTranslation

Namespace: App\Models\LanguageTranslation

Database Table

Property Value
Table Name language_translations
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
language_id varchar Unknown Unknown  
display_language_id varchar Unknown Unknown  
name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['language_id', 'display_language_id', 'name', 'backward_compatibility', 'extra']

Attribute Casting

Attribute Cast Type
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Query Scopes

Partner

Namespace: App\Models\Partner

Database Table

Property Value
Table Name partners
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
internal_name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
type enum Unknown Unknown  
latitude decimal Unknown Unknown  
longitude decimal Unknown Unknown  
map_zoom int Unknown Unknown  
project_id char Unknown Unknown  
monument_item_id char Unknown Unknown  
visible tinyint Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  
country_id varchar Unknown Unknown  

Fillable Fields

['internal_name', 'type', 'backward_compatibility', 'country_id', 'latitude', 'longitude', 'map_zoom', 'project_id', 'monument_item_id', 'visible']

Attribute Casting

Attribute Cast Type
latitude decimal:8
longitude decimal:8
map_zoom integer
visible boolean

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Has Many

Belongs To Many

Query Scopes

PartnerImage

Namespace: App\Models\PartnerImage

Database Table

Property Value
Table Name partner_images
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
partner_id char Unknown Unknown  
path varchar Unknown Unknown  
original_name varchar Unknown Unknown  
mime_type varchar Unknown Unknown  
size bigint Unknown Unknown  
alt_text text Unknown Unknown  
display_order int Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['partner_id', 'path', 'original_name', 'mime_type', 'size', 'alt_text', 'display_order', 'extra']

Attribute Casting

Attribute Cast Type
size integer
display_order integer
extra array

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Namespace: App\Models\PartnerLogo

Database Table

Property Value
Table Name partner_logos
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
partner_id char Unknown Unknown  
path varchar Unknown Unknown  
original_name varchar Unknown Unknown  
mime_type varchar Unknown Unknown  
size bigint Unknown Unknown  
logo_type varchar Unknown Unknown  
alt_text text Unknown Unknown  
display_order int Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['partner_id', 'path', 'original_name', 'mime_type', 'size', 'logo_type', 'alt_text', 'display_order']

Attribute Casting

Attribute Cast Type
size integer
display_order integer

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Query Scopes

PartnerTranslation

Namespace: App\Models\PartnerTranslation

Database Table

Property Value
Table Name partner_translations
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
partner_id char Unknown Unknown  
language_id varchar Unknown Unknown  
context_id char Unknown Unknown  
name varchar Unknown Unknown  
description text Unknown Unknown  
city_display varchar Unknown Unknown  
address_line_1 varchar Unknown Unknown  
address_line_2 varchar Unknown Unknown  
postal_code varchar Unknown Unknown  
address_notes text Unknown Unknown  
contact_name varchar Unknown Unknown  
contact_email_general varchar Unknown Unknown  
contact_email_press varchar Unknown Unknown  
contact_phone varchar Unknown Unknown  
contact_website varchar Unknown Unknown  
contact_notes text Unknown Unknown  
contact_emails json Unknown Unknown  
contact_phones json Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['partner_id', 'language_id', 'context_id', 'name', 'description', 'city_display', 'address_line_1', 'address_line_2', 'postal_code', 'address_notes', 'contact_name', 'contact_email_general', 'contact_email_press', 'contact_phone', 'contact_website', 'contact_notes', 'contact_emails', 'contact_phones', 'backward_compatibility', 'extra']

Attribute Casting

Attribute Cast Type
contact_emails array
contact_phones array
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Has Many

Query Scopes

PartnerTranslationImage

Namespace: App\Models\PartnerTranslationImage

Database Table

Property Value
Table Name partner_translation_images
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
partner_translation_id char Unknown Unknown  
path varchar Unknown Unknown  
original_name varchar Unknown Unknown  
mime_type varchar Unknown Unknown  
size bigint Unknown Unknown  
alt_text text Unknown Unknown  
display_order int Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['partner_translation_id', 'path', 'original_name', 'mime_type', 'size', 'alt_text', 'display_order']

Attribute Casting

Attribute Cast Type
size integer
display_order integer

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Project

Namespace: App\Models\Project

Database Table

Property Value
Table Name projects
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
internal_name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
launch_date date Unknown Unknown  
is_launched tinyint Unknown Unknown  
is_enabled tinyint Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  
context_id char Unknown Unknown  
language_id varchar Unknown Unknown  

Fillable Fields

['internal_name', 'backward_compatibility', 'launch_date', 'is_launched', 'is_enabled', 'context_id', 'language_id']

Attribute Casting

Attribute Cast Type
launch_date datetime:Y-m-d
is_launched boolean
is_enabled boolean

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Has Many

Belongs To Many

Query Scopes

Setting

Namespace: App\Models\Setting

Database Table

Property Value
Table Name settings
Primary Key id
Key Type Auto-incrementing Integer
Incrementing Yes
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id bigint Unknown Unknown  
key varchar Unknown Unknown  
value text Unknown Unknown  
type varchar Unknown Unknown  
description text Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['key', 'value', 'type', 'description']

Attribute Casting

Attribute Cast Type
id int

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Tag

Namespace: App\Models\Tag

Database Table

Property Value
Table Name tags
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
internal_name varchar Unknown Unknown  
category varchar Unknown Unknown  
language_id char Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
description varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['internal_name', 'category', 'language_id', 'backward_compatibility', 'description']

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Belongs To Many

Query Scopes

Timeline

Namespace: App\Models\Timeline

Database Table

Property Value
Table Name timelines
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
internal_name varchar Unknown Unknown  
country_id varchar Unknown Unknown  
collection_id char Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['internal_name', 'country_id', 'collection_id', 'backward_compatibility', 'extra']

Attribute Casting

Attribute Cast Type
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Has Many

TimelineEvent

Namespace: App\Models\TimelineEvent

Database Table

Property Value
Table Name timeline_events
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
timeline_id char Unknown Unknown  
internal_name varchar Unknown Unknown  
year_from int Unknown Unknown  
year_to int Unknown Unknown  
year_from_ah int Unknown Unknown  
year_to_ah int Unknown Unknown  
date_from date Unknown Unknown  
date_to date Unknown Unknown  
display_order int Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['timeline_id', 'internal_name', 'year_from', 'year_to', 'year_from_ah', 'year_to_ah', 'date_from', 'date_to', 'display_order', 'backward_compatibility', 'extra']

Attribute Casting

Attribute Cast Type
year_from integer
year_to integer
year_from_ah integer
year_to_ah integer
date_from date
date_to date
display_order integer
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Has Many

Belongs To Many

TimelineEventImage

Namespace: App\Models\TimelineEventImage

Database Table

Property Value
Table Name timeline_event_images
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
timeline_event_id char Unknown Unknown  
path varchar Unknown Unknown  
original_name varchar Unknown Unknown  
mime_type varchar Unknown Unknown  
size bigint Unknown Unknown  
alt_text varchar Unknown Unknown  
display_order int Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['timeline_event_id', 'path', 'original_name', 'mime_type', 'size', 'alt_text', 'display_order']

Attribute Casting

Attribute Cast Type
size integer
display_order integer

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

TimelineEventTranslation

Namespace: App\Models\TimelineEventTranslation

Database Table

Property Value
Table Name timeline_event_translations
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
timeline_event_id char Unknown Unknown  
language_id varchar Unknown Unknown  
name varchar Unknown Unknown  
description text Unknown Unknown  
date_from_description varchar Unknown Unknown  
date_to_description varchar Unknown Unknown  
date_from_ah_description varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
extra json Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['timeline_event_id', 'language_id', 'name', 'description', 'date_from_description', 'date_to_description', 'date_from_ah_description', 'backward_compatibility', 'extra']

Attribute Casting

Attribute Cast Type
extra object

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To

Belongs To Many

Query Scopes

User

Namespace: App\Models\User

Database Table

Property Value
Table Name users
Primary Key id
Key Type Auto-incrementing Integer
Incrementing Yes
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id bigint Unknown Unknown  
name varchar Unknown Unknown  
email varchar Unknown Unknown  
email_verified_at timestamp Unknown Unknown  
approved_at timestamp Unknown Unknown  
suspended_at timestamp Unknown Unknown  
password varchar Unknown Unknown  
two_factor_secret text Unknown Unknown  
two_factor_recovery_codes text Unknown Unknown  
two_factor_confirmed_at timestamp Unknown Unknown  
remember_token varchar Unknown Unknown  
current_team_id bigint Unknown Unknown  
profile_photo_path varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['name', 'email', 'password', 'approved_at', 'suspended_at']

Attribute Casting

Attribute Cast Type
id int
email_verified_at datetime
approved_at datetime
suspended_at datetime
password hashed

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Morph Many

Query Scopes

Workshop

Namespace: App\Models\Workshop

Database Table

Property Value
Table Name workshops
Primary Key id
Key Type String (UUID)
Incrementing No
Timestamps Yes (created_at, updated_at)

Database Schema

Column Type Nullable Default Extra
id char Unknown Unknown  
name varchar Unknown Unknown  
internal_name varchar Unknown Unknown  
backward_compatibility varchar Unknown Unknown  
created_at timestamp Unknown Unknown  
updated_at timestamp Unknown Unknown  

Fillable Fields

['name', 'internal_name', 'backward_compatibility']

Attribute Casting

Attribute Cast Type
created_at datetime
updated_at datetime

Model Constants

const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';

Relationships

Belongs To Many


This documentation was automatically generated using php artisan docs:models