Appearance
DAM tables ​
Overview ​
The tables behind the asset library and its distribution: assets, versions, folders, Collages, tags, custom fields, portals and portal users, share links, analytics, notifications, background imports and the asset store. 41 tables. The schema is the result of replaying every migration in database/migrations and database/migrations/update in filename order at commit f517b6b; there is no live database dump in the repository. Each table lists its columns, the indexes created by migrations, and every relation from its own columns, marked FK (foreign key in a migration), Eloquent (only a model relation) or Column only (an id column with neither). MySQL also creates an index for every foreign key; those are not repeated in the index lines. UI names: asset = digital_assets, folder = digital_assets_categories, Collage = dam_collections, portal = dam_instances, share link = share_assets_category, portal user = dealer_users.
Assets, folders, Collages, tags and custom fields ​
An asset (digital_assets) lives in one folder (category_id) and keeps every upload as a row in assets_versions; digital_assets.assets_version_id points at the current version but has no foreign key. Collage membership is the pivot dam_collection_assets. Tags are not a separate table: each tag is a row in digital_assets_tags tied to an asset and a version. Custom field values (assets_custom_fields) have no foreign keys at all.
Solid lines are foreign keys in the migrations; dotted lines are relations that exist only in the models. Tables from other pages appear without their own section here.
digital_assets ​
Assets (UI). One row per asset; the current file data, folder, trash/archive flags and preview state.
Model: DAM\DigitalAssets · Created in 2020_09_03_162957_create_digital_assets_table.php · changed by 14 later migrations (latest update/2026_08_25_000000_extend_da_cat_flags_ws_idx_with_modified_at.php)
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | yes | FK → workspaces.id | |
user_id | bigint unsigned | yes | ||
version | int | yes | ||
assets_version_id | bigint unsigned | yes | ||
display_file_name | varchar(255) | no | ||
file_name | varchar(255) | no | ||
file_type | varchar(255) | yes | ||
file_size | bigint unsigned | yes | ||
height | varchar(255) | yes | ||
width | varchar(255) | yes | ||
terms_of_use | varchar(255) | yes | ||
description | text | yes | ||
auto_tag | enum(1,0) | no | 1 | Comment: 1=Tag On, 0=Tag Off |
type | varchar(255) | yes | ||
is_categorized | enum(1,0) | no | 0 | Comment: 1=Yes, 0=No |
category_id | bigint unsigned | yes | FK → digital_assets_categories.id | |
file_meta_data | text | yes | ||
thumbnail_file | varchar(255) | yes | ||
compress_file | varchar(255) | yes | ||
video_preview | varchar(255) | yes | ||
acl_permission | varchar(255) | yes | ||
is_public | tinyint(1) | no | 1 | |
visible_in_trashed | tinyint(1) | no | 0 | |
is_archive | tinyint(1) | no | 0 | Comment: 0=Not Archive, 1=Archive |
is_deleted | tinyint(1) | no | 0 | Comment: 0 = Not Delete, 1 = Delete |
final_deleted | tinyint(1) | no | 0 | Comment: 0 = Not Delete, 1 = Delete |
is_recent | tinyint(1) | no | 0 | Comment: 0 = Not Recent, 1 = Recent |
is_editorial_use | tinyint(1) | no | 1 | |
file_preview_id | varchar(255) | yes | ||
file_preview_status | enum(pending,started,success,failure) | no | pending | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
archive_by | bigint unsigned | yes | FK → users.id | |
folder_permission | text | yes | ||
collection_permission | text | yes | ||
share_id | varchar(255) | yes | ||
watermark_file | varchar(255) | yes | ||
watermark_original_file | varchar(255) | yes | ||
file_preview_metadata | longtext | yes | ||
modified_at | timestamp | yes | ||
visibility | tinyint(1) | no | 0 | |
is_external_upload | tinyint | no | 0 |
Indexes: idx_digital_assets_file_preview_id index (file_preview_id); da_ws_flags_ext_cat_idx index (workspace_id, is_deleted, final_deleted, is_archive, is_external_upload, category_id); da_ws_type_flags_cat_idx index (workspace_id, type, is_deleted, final_deleted, is_archive, category_id); da_cat_flags_ws_mod_idx index (category_id, is_deleted, is_archive, final_deleted, workspace_id, modified_at).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | DigitalAssets::workspace() |
user_id | users.id | Eloquent | - | DigitalAssets::user() |
user_id | external_users.id | Eloquent | - | DigitalAssets::externalUser() |
assets_version_id | not declared (name suggests assets_versions) | Column only | - | - (issue: FK is commented out in the create migration; a code comment says the live database has it) |
category_id | digital_assets_categories.id | FK | cascade | DigitalAssetsCategory::assets(), DigitalAssets::category() |
archive_by | users.id | FK | cascade | DigitalAssets::archiveUser() |
Referenced by: assets_custom_fields.asset_id, assets_versions.asset_id, dam_acl.workspace_id (not a key match), dam_asset_product_carts.asset_id, dam_asset_product_order_items.asset_id, dam_asset_products.asset_id, dam_assets_converts.asset_id, dam_collection_assets.asset_id, dam_instance_permissions.permissionable_id, digital_assets_downloads.digital_assets_id, digital_assets_tags.assets_version_id (not a key match), digital_assets_tags.digital_assets_id.
assets_versions ​
Every uploaded version of an asset (V1, V2 ...), with file data, embed code and checksum.
Model: DAM\AssetsVersion · Created in 2020_09_03_162960_create_assets_versions_table.php · changed by 5 later migrations (latest update/2026_08_17_100000_add_phase2_performance_indexes.php)
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
asset_id | bigint unsigned | yes | FK → digital_assets.id | |
workspace_id | bigint unsigned | yes | FK → workspaces.id | |
user_id | bigint unsigned | yes | ||
version | int | yes | ||
display_file_name | varchar(255) | no | ||
file_name | varchar(255) | no | ||
file_type | varchar(255) | yes | ||
file_size | bigint unsigned | yes | ||
height | varchar(255) | yes | ||
width | varchar(255) | yes | ||
terms_of_use | varchar(255) | yes | ||
description | text | yes | ||
auto_tag | enum(1,0) | no | 1 | Comment: 1=Tag On, 0=Tag Off |
type | varchar(255) | yes | ||
is_categorized | enum(1,0) | no | 0 | Comment: 1=Yes, 0=No |
category_id | bigint unsigned | yes | FK → digital_assets_categories.id | |
file_meta_data | text | yes | ||
thumbnail_file | varchar(255) | yes | ||
compress_file | varchar(255) | yes | ||
video_preview | varchar(255) | yes | ||
is_public | tinyint(1) | no | 1 | |
is_embed_code | tinyint(1) | no | 0 | |
embed_code_date | datetime | yes | ||
visible_in_trashed | tinyint(1) | no | 0 | |
is_archive | tinyint(1) | no | 0 | Comment: 0=Not Archive, 1=Archive |
is_deleted | tinyint(1) | no | 0 | Comment: 0 = Not Delete, 1 = Delete |
final_deleted | tinyint(1) | no | 0 | Comment: 0 = Not Delete, 1 = Delete |
is_recent | tinyint(1) | no | 0 | Comment: 0 = Not Recent, 1 = Recent |
is_editorial_use | tinyint(1) | no | 1 | |
file_preview_id | varchar(255) | yes | ||
file_preview_status | enum(pending,started,success,failure) | no | pending | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
embed_key | varchar(255) | yes | ||
checksum_value | varchar(255) | yes |
Indexes: idx_assets_versions_file_preview_id index (file_preview_id); av_ws_finaldel_type_size_idx index (workspace_id, final_deleted, type, file_size); av_ws_embed_list_idx index (workspace_id, is_embed_code, is_deleted, final_deleted, created_at).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
asset_id | digital_assets.id | FK | cascade | DigitalAssets::versions() |
workspace_id | workspaces.id | FK | cascade | AssetsVersion::workspace() |
workspace_id | subscription_users.workspace_id | Eloquent | - | SubscriptionUsers::totalStorage() (matches on subscription_users.workspace_id, which is not a key) |
user_id | users.id | Eloquent | - | AssetsVersion::user() |
category_id | digital_assets_categories.id | FK | cascade | - |
Referenced by: dam_asset_product_carts.asset_version_id, dam_asset_product_order_items.asset_version_id, dam_assets_converts.version_id, digital_assets_downloads.assets_version_id, digital_assets_tags.assets_version_id.
digital_assets_categories ​
Folders (UI). Tree via parent_id, trash flags, permission settings. Soft deleted.
Model: DAM\DigitalAssetsCategory · Created in 2020_09_03_162951_create_digital_assets_categories_table.php · changed by 5 later migrations (latest update/2026_08_10_000000_add_digital_assets_listing_indexes.php) · soft deletes
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | yes | FK → users.id | |
parent_id | bigint unsigned | yes | ||
folder_name | varchar(255) | yes | ||
category_path | varchar(255) | yes | ||
integration_type | int | no | 0 | Comment: 0-general, 1-dropbox, 2-google_drive, 3-box |
visible_in_trashed | tinyint(1) | no | 0 | |
deleted_at | timestamp | yes | soft delete | |
final_deleted | tinyint(1) | no | 0 | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
permission_type | enum(public,user,group) | no | public | Comment: 0=public, 1=user, 2=group |
permission | text | yes | ||
group_id | text | yes | ||
modified_at | timestamp | yes | ||
description | longtext | yes | ||
visibility | tinyint(1) | no | 0 |
Indexes: dac_ws_parent_idx index (workspace_id, parent_id).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
user_id | users.id | FK | cascade | - |
parent_id | digital_assets_categories.id | Eloquent | - | DigitalAssetsCategory::subcategory(), DigitalAssetsCategory::parent(), DigitalAssetsCategory::signleparent(), DigitalAssetsCategory::children(), DigitalAssetsCategory::subCategories() |
group_id | not declared | Column only | - | - |
Referenced by: assets_versions.category_id, dam_instance_permissions.permissionable_id, digital_assets.category_id.
digital_assets_digital_assets_categories ​
Old asset-to-folder pivot. No model uses it.
Model: none · Created in 2020_09_04_130618_create_digital_assets_digital_assets_categories.php
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
digital_assets_id | bigint unsigned | no | ||
digital_assets_categories_id | bigint unsigned | no | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
digital_assets_id | not declared | Column only | - | - |
digital_assets_categories_id | not declared | Column only | - | - |
digital_assets_tags ​
Tags (UI). One row per tag on an asset version; manual tags and Vision auto tags (vision_type, tag_score).
Model: DAM\DigitalAssetsTag · Created in 2020_09_03_163236_create_digital_assets_tags_table.php · changed by 4 later migrations: 2023_02_15_171500, 2023_03_23_110831, 2023_04_05_112125, 2026_08_17_100000
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
assets_version_id | bigint unsigned | yes | FK → assets_versions.id | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | yes | FK → users.id | |
digital_assets_id | bigint unsigned | yes | FK → digital_assets.id | |
tag_name | varchar(255) | yes | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
vision_type | varchar(255) | yes | labels | |
tag_value | varchar(255) | yes | 0 | |
tag_score | varchar(255) | yes | ||
search_tag_name | varchar(255) | yes |
Indexes: dat_ws_vision_tag_asset_idx index (workspace_id, vision_type, tag_name, digital_assets_id).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
assets_version_id | assets_versions.id | FK | cascade | - |
assets_version_id | digital_assets.assets_version_id | Eloquent | - | DigitalAssets::tags(), DigitalAssets::limited_tags() (matches on digital_assets.assets_version_id, which is not a key) |
workspace_id | workspaces.id | FK | cascade | - |
user_id | users.id | FK | cascade | - |
digital_assets_id | digital_assets.id | FK | cascade | DigitalAssetsTag::digitalAsset(), DigitalAssets::all_tags() |
custom_fields ​
Custom field definitions per workspace (type, label, options, settings). Soft deleted.
Model: DAM\CustomField · Created in update/2025_05_12_112622_create_custom_fields_table.php · changed by 2 later migrations: 2025_07_31_155205, 2026_08_24_000000 · soft deletes
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | ||
field_type | varchar(255) | no | ||
field_label | varchar(255) | yes | ||
field_value | longtext | yes | redefined with ->change() in 2026_08_24_000000… | |
placeholder_text | varchar(255) | yes | ||
admin_only | tinyint(1) | no | 1 | |
status | tinyint(1) | no | 1 | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
deleted_at | timestamp | yes | soft delete | |
field_settings | json | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | not declared (name suggests workspaces) | Column only | - | - |
Referenced by: assets_custom_fields.custom_field_id.
assets_custom_fields ​
Custom field values on an asset.
Model: DAM\AssetsCustomField · Created in update/2025_05_12_112640_create_assets_custom_fields_table.php · changed by 3 later migrations: 2026_05_29_120000, 2026_08_24_000000, 2026_08_26_000000
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | ||
asset_id | bigint unsigned | no | ||
custom_field_id | bigint unsigned | no | ||
value | longtext | yes | redefined with ->change() in 2026_05_29_120000…; redefined with ->change() in 2026_08_24_000000… | |
status | tinyint(1) | no | 1 | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
Indexes: idx_acf_asset index (asset_id, custom_field_id); idx_acf_ws_asset index (workspace_id, asset_id, custom_field_id); acf_cfid_value_idx index (custom_field_id, value(100)).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | not declared (name suggests workspaces) | Column only | - | - |
asset_id | digital_assets.id | Eloquent | - | DigitalAssets::assetsCustomFields(), AssetsCustomField::asset() |
custom_field_id | custom_fields.id | Eloquent | - | CustomField::assetsCustomFields(), AssetsCustomField::customField() |
dam_collections ​
Collages (UI). Flat curated asset groupings. Soft deleted.
Model: DAM\DamCollection · Created in 2021_05_11_165324_create_dam_collections_table.php · changed by 3 later migrations: 2022_03_23_192005, 2024_09_17_121952, 2025_01_10_132133 · soft deletes
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
instance_id | bigint unsigned | no | ||
user_id | bigint unsigned | yes | FK → users.id | |
name | varchar(255) | no | ||
description | longtext | yes | ||
is_backend_user | tinyint(1) | no | 1 | |
deleted_at | timestamp | yes | soft delete | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
permission_type | enum(public,user,group) | no | public | |
permission | text | yes | ||
group_id | text | yes | ||
modified_at | timestamp | yes | ||
visibility | tinyint(1) | no | 0 |
Indexes: user_id_instance_id_name_is_backend_user_unique unique (instance_id, user_id, name, is_backend_user).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | DamCollection::workspace() |
instance_id | not declared (name suggests dam_instances) | Column only | - | - |
user_id | users.id | FK | cascade | - |
group_id | not declared | Column only | - | - |
Referenced by: dam_collection_assets.collection_id, dam_instance_permissions.permissionable_id.
dam_collection_assets ​
Pivot: assets in a Collage.
Model: DAM\DamCollectionAssets · Created in 2021_05_11_165733_create_dam_collection_assets_table.php
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
collection_id | bigint unsigned | no | FK → dam_collections.id | |
asset_id | bigint unsigned | no | FK → digital_assets.id | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
Indexes: collection_id_asset_id_unique unique (collection_id, asset_id).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
collection_id | dam_collections.id | FK | cascade | DamCollection::assets() |
asset_id | digital_assets.id | FK | cascade | DigitalAssets::damCollectionAssets(), DamCollectionAssets::assets() (swapped keys) |
dam_acl ​
Named access-control entries per workspace and user (position). Soft deleted.
Model: DAM\DamAcl · Created in 2020_09_02_150655_create_dam_acl_table.php · soft deletes
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | yes | FK → workspaces.id | |
user_id | bigint unsigned | yes | FK → users.id | |
name | varchar(255) | no | ||
is_active | tinyint(1) | no | 1 | Comment: 0=Not Active, 1=Active |
position | int | no | 0 | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
deleted_at | timestamp | yes | soft delete |
Indexes: dam_acl_workspace_id_name_unique unique (workspace_id, name).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
workspace_id | digital_assets.workspace_id | Eloquent | - | DigitalAssets::acl() (matches on digital_assets.workspace_id, which is not a key) |
user_id | users.id | FK | cascade | - |
Portals and portal users ​
A portal (dam_instances) belongs to a workspace. Portal users (dealer_users) get access through dam_instances_users. What a portal shows is decided per item in dam_instance_permissions, a polymorphic table that points at an asset, a folder or a Collage (permissionable_type holds the model class). The older single visibility column is still on those tables; migration 2026_03_23_120000_migrate_visibility_to_dam_instance_permissions copied rows with visibility 0 or 2 into dam_instance_permissions for one portal per workspace (it keys non-deleted portals by workspace_id, so the last one returned wins).
Solid lines are foreign keys in the migrations; dotted lines are relations that exist only in the models. Tables from other pages appear without their own section here.
dam_instances ​
Portals (UI). Branded distribution sites per workspace (domain, settings, storage, logo). Soft deleted.
Model: DAM\DamInstance · Created in 2021_01_08_101602_create_dam_instances_table.php · changed by 6 later migrations (latest update/2026_05_21_120100_add_description_to_dam_instances_table.php) · soft deletes
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
brand_name | varchar(255) | no | ||
url | varchar(255) | no | ||
cname | varchar(255) | yes | ||
is_domain | tinyint(1) | no | 0 | Comment: 0=Brand url, 1=Custom Domain |
is_pointed | tinyint(1) | no | 0 | Comment: 1=Pointed, 0=Not Pointed |
is_active | tinyint(1) | no | 1 | Comment: 0=Inactive, 1=Active |
is_slider | tinyint(1) | no | 1 | Comment: 0=Not Slider, 1=Slider |
settings | text | yes | ||
storage_mail_status | text | yes | ||
deleted_at | timestamp | yes | soft delete | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
order_admin_id | bigint unsigned | yes | ||
total_storage_in_gb | varchar(255) | yes | ||
used_storage_in_gb | varchar(255) | yes | ||
is_public_portal | tinyint(1) | no | 0 | |
logo | varchar(255) | yes | ||
favicon | varchar(255) | yes | ||
description | longtext | yes |
Indexes: dam_instances_brand_name_unique unique (brand_name); dam_instances_url_unique unique (url).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | Workspace::damInstances(), DamInstance::workspace() |
order_admin_id | not declared | Column only | - | - |
Referenced by: dam_instance_permissions.dam_instance_id, dam_instances_users.instance_id, dam_system_notifications.instance_id, dam_tiles.instance_id, dealer_user_invitations.instance_id, dealer_users.instance_id, dealers.instance_id, instance_banners.instance_id, share_assets_category.instance_id, transaction_activities.instance_id.
dam_instance_permissions ​
Per-portal visibility of an asset, folder or Collage (polymorphic permissionable).
Model: DAM\DamInstancePermission · Created in update/2026_03_18_151907_create_dam_instance_permissions_table.php · changed by 1 later migration: 2026_03_30_120000
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
dam_instance_id | bigint unsigned | no | FK → dam_instances.id | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
permissionable_id | bigint unsigned | no | ||
permissionable_type | varchar(255) | no | ||
visibility | tinyint | no | 0 | Comment: 0=Public, 1=Private, 2=Protected |
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
Indexes: instance_permission_unique unique (dam_instance_id, permissionable_id, permissionable_type); workspace_permission_index index (workspace_id, permissionable_type, permissionable_id); permissionable_morph_index index (permissionable_type, permissionable_id).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
dam_instance_id | dam_instances.id | FK | cascade | DamInstance::permissions(), DamInstancePermission::instance() |
workspace_id | workspaces.id | FK | cascade | - |
permissionable_id | digital_assets_categories.id | Eloquent | - | DigitalAssetsCategory::instancePermissions(), DamInstancePermission::permissionable() |
permissionable_id | digital_assets.id | Eloquent | - | DigitalAssets::instancePermissions(), DamInstancePermission::permissionable() |
permissionable_id | dam_collections.id | Eloquent | - | DamCollection::instancePermissions(), DamInstancePermission::permissionable() |
dam_instances_users ​
Pivot: portal access of a portal user (instance_status). Soft deleted.
Model: DAM\DamInstancesUsers · Created in 2021_01_08_160021_create_dam_instances_users_table.php · soft deletes
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
instance_id | bigint unsigned | no | FK → dam_instances.id | |
user_id | bigint unsigned | no | FK → dealer_users.id | |
instance_status | tinyint(1) | no | 1 | Comment: 0=Inactive, 1=Active |
deleted_at | timestamp | yes | soft delete | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
instance_id | dam_instances.id | FK | cascade | DamInstancesUsers::instance() |
user_id | dealer_users.id | FK | cascade | - |
dealer_users ​
Portal users. Auth provider for the dam-api guard. Soft deleted.
Model: DAM\DealerUsers · Created in 2021_01_08_160020_create_dealer_users_table.php · changed by 3 later migrations: 2022_03_01_154427, 2022_05_19_131113, 2022_07_01_121654 · soft deletes
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
dealer_id | bigint unsigned | yes | FK → dealers.id | |
instance_id | bigint unsigned | no | FK → dam_instances.id | |
user_id | bigint unsigned | no | FK → users.id | |
name | varchar(255) | yes | ||
email | varchar(255) | no | ||
password | varchar(255) | yes | ||
phone | varchar(255) | yes | ||
profile_image | varchar(255) | yes | ||
is_active | tinyint | no | 0 | Comment: 0=Inactive, 1=Active |
backend_login_user_id | bigint | yes | ||
is_backend_user | tinyint(1) | no | 0 | Comment: 0=Frontend, 1=Backend |
deleted_at | timestamp | yes | soft delete | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
enable_notification | tinyint(1) | no | 1 | Comment: 0=disable, 1=enable |
is_revoke | tinyint | no | 0 | |
last_login | timestamp | yes | ||
last_activity | timestamp | yes |
Indexes: user_instance_id_email_unique unique (instance_id, email, is_backend_user).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
dealer_id | dealers.id | FK | cascade | DealerUsers::dealer() |
instance_id | dam_instances.id | FK | cascade | DealerUsers::instance() |
user_id | users.id | FK | cascade | - |
backend_login_user_id | not declared | Column only | - | - |
Referenced by: dam_asset_product_carts.user_id, dam_asset_product_order_items.user_id, dam_asset_product_order_shippings.user_id, dam_asset_product_orders.user_id, dam_group_users.user_id, dam_instances_users.user_id, dam_user_addresses.user_id, dealer_user_invitations.user_id, dealer_users_activities.user_id, device_token.user_id.
dealer_user_invitations ​
Pending invitations of portal users to a portal (token).
Model: DAM\DealerUserInvitations, LM\DealerUserInvitations · Created in 2021_01_08_175308_create_dealer_user_invitations_table.php
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
user_id | bigint unsigned | no | FK → dealer_users.id | |
instance_id | bigint unsigned | no | FK → dam_instances.id | |
token | varchar(255) | no | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
user_id | dealer_users.id | FK | cascade | DealerUserInvitations::user() |
user_id | missing class LM\DealerUsers | Eloquent | - | DealerUserInvitations::user() (issue: target model/table missing) |
instance_id | dam_instances.id | FK | cascade | - |
dam_groups ​
Portal user groups.
Model: DAM\DamGroup · Created in 2022_03_21_154550_create_dam_groups_table.php
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
instance_id | bigint unsigned | no | ||
group_icon | varchar(255) | yes | ||
group_name | varchar(255) | no | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | DamGroup::workspaces() (swapped keys) |
instance_id | not declared (name suggests dam_instances) | Column only | - | - |
Referenced by: dam_group_users.group_id.
dam_group_users ​
Pivot: portal users in a group.
Model: DAM\DamGroupUser · Created in 2022_03_21_175915_create_dam_group_users_table.php
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
group_id | bigint unsigned | no | FK → dam_groups.id | |
user_id | bigint unsigned | no | FK → dealer_users.id | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
group_id | dam_groups.id | FK | cascade | DamGroup::users() |
user_id | dealer_users.id | FK | cascade | DamGroup::users() |
instance_banners ​
Banner slides on a portal home page. Soft deleted.
Model: DAM\InstanceBanner · Created in 2021_01_11_124041_create_instance_banners_table.php · changed by 1 later migration: 2026_10_02_000000 · soft deletes
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
instance_id | bigint unsigned | no | FK → dam_instances.id | |
title | varchar(255) | yes | ||
image | varchar(255) | yes | ||
image_name | varchar(255) | no | ||
url | text | yes | redefined with ->change() in 2026_10_02_000000… | |
position | int | no | 0 | |
is_active | tinyint(1) | no | 0 | Comment: 0=Inactive, 1=Active |
description | longtext | yes | ||
deleted_at | timestamp | yes | soft delete | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
instance_id | dam_instances.id | FK | cascade | InstanceBanner::instance() |
dam_tiles ​
Link tiles shown on a portal home page.
Model: DAM\DamTile · Created in 2021_10_12_114652_create_dam_tiles_table.php · changed by 2 later migrations: 2026_03_26_120000, 2026_10_02_000000
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | no | FK → users.id | |
title | varchar(255) | no | ||
url | text | no | redefined with ->change() in 2026_10_02_000000… | |
image | varchar(255) | no | ||
image_name | varchar(255) | no | ||
position | int | no | 0 | |
is_active | tinyint(1) | no | 1 | |
description | longtext | yes | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
instance_id | bigint unsigned | yes | FK → dam_instances.id |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | DamTile::workspace() |
user_id | users.id | FK | cascade | - |
instance_id | dam_instances.id | FK | set null | DamTile::instance() |
dam_external_apps ​
External API apps per workspace (key, secret). Auth provider for the external-api guard.
Model: DAM\DamExternalApp · Created in 2021_10_08_104305_create_dam_external_apps_table.php
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
name | varchar(255) | no | ||
url | varchar(255) | no | ||
key | varchar(255) | no | ||
secrete | varchar(255) | no | ||
is_active | tinyint(1) | no | 1 | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
Indexes: dam_external_apps_workspace_id_url_unique unique (workspace_id, url).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
Sharing, analytics, notifications and jobs ​
A share link (share_assets_category) stores the shared asset, folder and Collage ids as lists in text columns (assets_id, category_id, collection_id), so there is no relation from a share link to what it shares. Download, view and analytics rows (digital_assets_downloads, transaction_activities) refer to the share link by share_id. import_data (asset migration import, processed by ProcessAssetImportJob) and workspace_restructure_data (used by the WorkspaceRestructureImport / WorkspaceRestructureRun commands) have no foreign keys.
Solid lines are foreign keys in the migrations; dotted lines are relations that exist only in the models. Tables from other pages appear without their own section here.
share_assets_category ​
Share links (UI). Shared asset, folder and Collage ids are stored as lists in text columns. Soft deleted.
Model: DAM\ShareAssetsCategory · Created in 2020_12_03_134703_create_share_assets_categories_table.php · changed by 6 later migrations: 2026_01_05_161911, 2026_03_24_175114, 2026_07_21_000000, 2026_08_17_000000, 2026_11_16_000000 (adds expires_at), 2026_11_17_000000 (adds expires_timezone) · soft deletes
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
assets_id | longtext | yes | redefined with ->change() in 2026_08_17_000000… | |
category_id | longtext | yes | redefined with ->change() in 2026_08_17_000000… | |
collection_id | text | yes | ||
title | varchar(255) | yes | ||
description | text | yes | ||
password | varchar(255) | yes | ||
expiration | date | yes | Calendar date shown in the pickers | |
expires_at | datetime | yes | Instant the link stops working: end of expiration in the creator's time zone, stored in the app time zone. Existing rows backfilled to TIMESTAMP(expiration, '23:59:59'). See Sharing: expiry | |
expires_timezone | varchar(64) | yes | IANA zone the expiration day was picked in; null when the link never expires. Existing rows backfilled with the creator's profile zone, the app time zone or UTC, whichever makes expires_at read 23:59:59 | |
hide_download | tinyint(1) | no | 0 | |
generated_source | enum(admin,user) | no | admin | |
generated_by | bigint unsigned | yes | ||
total_visited | int | no | ||
is_active | tinyint(1) | no | 1 | |
deleted_at | timestamp | yes | soft delete | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
share_origin | varchar(255) | yes | ||
instance_id | bigint unsigned | yes | FK → dam_instances.id |
Indexes: idx_share_assets_category_workspace_created index (workspace_id, created_at).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
assets_id | not declared | Column only | - | - |
category_id | not declared | Column only | - | - |
collection_id | not declared (name suggests dam_collections) | Column only | - | - |
generated_by | not declared | Column only | - | - |
instance_id | dam_instances.id | FK | set null | - |
Referenced by: digital_assets_downloads.share_id.
digital_assets_downloads ​
Download and view log for assets (source, device, location, share link).
Model: DAM\DigitalAssetsDownload · Created in 2021_01_11_175135_create_digital_assets_downloads_table.php · changed by 2 later migrations: 2022_09_01_161516, 2026_08_17_100000
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | yes | ||
digital_assets_id | bigint unsigned | no | FK → digital_assets.id | |
assets_version_id | bigint unsigned | yes | FK → assets_versions.id | |
share_id | bigint unsigned | yes | FK → share_assets_category.id | |
collection_id | varchar(255) | yes | ||
is_shared | tinyint(1) | no | 0 | |
is_view | tinyint(1) | no | 0 | |
is_backend_download | tinyint(1) | no | 1 | |
download_by | enum(desktop,android,ios) | no | desktop | |
asset_from | enum(normal,collection,share) | no | normal | |
type | enum(download,view,share) | no | download | |
location | varchar(255) | yes | ||
ip_address | varchar(255) | yes | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
zip_file_name | varchar(255) | yes |
Indexes: dad_version_type_created_idx index (assets_version_id, type, created_at); dad_ws_type_created_idx index (workspace_id, type, created_at).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
user_id | not declared | Column only | - | - |
digital_assets_id | digital_assets.id | FK | cascade | - |
assets_version_id | assets_versions.id | FK | cascade | - |
share_id | share_assets_category.id | FK | cascade | - |
collection_id | not declared (name suggests dam_collections) | Column only | - | - |
transaction_activities ​
Analytics event log for assets, folders, Collages and share links (event, sub event, geo, portal).
Model: DAM\TransactionActivity · Created in update/2024_09_18_153159_create_transaction_activities_table.php · changed by 2 later migrations: 2026_03_25_124907, 2026_08_17_100000
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
transaction_number | bigint unsigned | yes | ||
workspace_id | bigint unsigned | yes | ||
asset_id | bigint unsigned | yes | ||
version_id | bigint unsigned | yes | ||
collection_id | bigint unsigned | yes | ||
category_id | bigint unsigned | yes | ||
user_id | bigint unsigned | yes | ||
share_id | bigint unsigned | yes | ||
event | varchar(255) | yes | ||
sub_event | varchar(255) | yes | ||
environment | varchar(255) | yes | ||
system_data | text | yes | ||
city | varchar(255) | yes | ||
postal | varchar(255) | yes | ||
state | varchar(255) | yes | ||
country_name | varchar(255) | yes | ||
country_code | varchar(255) | yes | ||
ipv4 | varchar(255) | yes | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
instance_id | bigint unsigned | yes | FK → dam_instances.id |
Indexes: ta_ws_share_event_sub_created_idx index (workspace_id, share_id, event, sub_event, created_at); ta_ws_txnum_idx index (workspace_id, transaction_number); ta_ws_event_created_idx index (workspace_id, event, created_at); ta_created_at_idx index (created_at).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | not declared (name suggests workspaces) | Column only | - | - |
asset_id | not declared (name suggests digital_assets) | Column only | - | - |
version_id | not declared (name suggests assets_versions) | Column only | - | - |
collection_id | not declared (name suggests dam_collections) | Column only | - | - |
category_id | not declared | Column only | - | - |
user_id | not declared | Column only | - | - |
share_id | not declared | Column only | - | - |
instance_id | dam_instances.id | FK | set null | - |
dealer_users_activities ​
Activity log of portal users (log_details, activity_url).
Model: DAM\DealerUsersActivity · Created in 2022_07_13_151631_create_dealer_users_activities_table.php · changed by 3 later migrations: 2022_07_18_131602, 2022_10_31_151153, 2022_10_31_160841
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | yes | FK → workspaces.id | |
user_id | bigint unsigned | no | FK → dealer_users.id | |
log_details | longtext | yes | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
activity_url | text | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
user_id | dealer_users.id | FK | cascade | - |
dam_search_histories ​
Search log (terms, who searched, where from).
Model: DAM\DamSearchHistory · Created in 2022_03_30_133527_create_dam_search_histories_table.php · changed by 2 later migrations: 2022_04_28_175435, 2022_11_09_125631
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | no | ||
terms | varchar(255) | no | keyword | |
search_text | varchar(255) | no | ||
user_type | enum(admin,user) | no | admin | |
search_by | enum(web,ios,android) | no | web | |
location | varchar(255) | no | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
ip_address | varchar(255) | yes | ||
is_clear | int | no | 0 |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
user_id | not declared | Column only | - | - |
recent_searches ​
Recent search terms per admin user.
Model: none · Created in 2020_11_24_125654_create_recent_searches_table.php
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
user_id | bigint unsigned | no | FK → users.id | |
search_text | varchar(255) | yes | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
user_id | users.id | FK | cascade | - |
dam_notification_groups ​
Groups of DAM notification types.
Model: DAM\DamNotificationGroup · Created in 2022_03_01_154137_create_dam_notification_groups_table.php
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
group_name | varchar(255) | no | ||
slug | varchar(255) | no | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
Referenced by: dam_notifications.notification_group_id.
dam_notifications ​
DAM notification types per workspace and channel (email / system, recipients).
Model: DAM\DamNotification · Created in 2022_03_01_154233_create_dam_notifications_table.php
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
notification_name | varchar(255) | no | ||
notification_text | varchar(255) | no | ||
notification_slug | varchar(255) | no | ||
notification_group_id | bigint unsigned | no | FK → dam_notification_groups.id | |
is_email | tinyint | yes | 1 | Comment: 0=disable, 1=enable |
is_system | tinyint | yes | 1 | Comment: 0=disable, 1=enable |
is_organization | tinyint | no | 0 | |
is_user | tinyint | no | 0 | |
user_recipient | tinyint | yes | ||
admin_recipient | tinyint | yes | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
notification_group_id | dam_notification_groups.id | FK | cascade | DamNotificationGroup::notification() |
Referenced by: dam_user_notifications.notification_id.
dam_user_notifications ​
Per-user opt-in for each DAM notification type.
Model: DAM\DamUserNotifications · Created in 2022_03_02_114558_create_dam_user_notifications_table.php
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
user_id | bigint unsigned | no | FK → users.id | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
notification_id | bigint unsigned | no | FK → dam_notifications.id | |
is_email | tinyint | yes | 1 | Comment: 0=disable, 1=enable |
is_system | tinyint | yes | 1 | Comment: 0=disable, 1=enable |
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
user_id | users.id | FK | cascade | DamUserNotifications::user() |
workspace_id | workspaces.id | FK | cascade | - |
notification_id | dam_notifications.id | FK | cascade | - |
dam_system_notifications ​
In-app DAM notifications sent to a user (read_at, link).
Model: DAM\DamSystemNotifications · Created in 2022_03_02_115109_create_dam_system_notifications_table.php · changed by 2 later migrations: 2022_04_13_133341, 2022_04_22_120858
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
user_id | bigint unsigned | no | ||
workspace_id | bigint unsigned | no | FK → workspaces.id | |
sender_user_id | bigint unsigned | no | FK → users.id | |
instance_id | bigint unsigned | yes | FK → dam_instances.id | |
notification_text | longtext | yes | ||
user_type | varchar(255) | no | ||
read_at | datetime | yes | ||
is_clickable | enum(1,0) | no | 1 | Comment: 0 = No , 1 = Yes |
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
notification_url | text | yes | ||
new_tab | tinyint(1) | no | 1 | Comment: 0=No, 1=Yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
user_id | not declared | Column only | - | - |
workspace_id | workspaces.id | FK | cascade | - |
sender_user_id | users.id | FK | cascade | - |
instance_id | dam_instances.id | FK | cascade | - |
dam_assets_converts ​
Asset conversion requests (target format, status, email sent). Soft deleted.
Model: DAM\DamAssetsConvert · Created in 2022_02_25_191646_create_dam_assets_converts_table.php · soft deletes
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | no | ||
asset_id | bigint unsigned | no | FK → digital_assets.id | |
version_id | bigint unsigned | yes | FK → assets_versions.id | |
file_name | varchar(255) | no | ||
asset_type | varchar(255) | no | ||
convert_type | varchar(255) | no | ||
status | enum(pending,success,failed) | no | pending | |
is_backend_user | tinyint(1) | no | 1 | |
email_send | tinyint(1) | no | 0 | |
deleted_at | timestamp | yes | soft delete | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | DamAssetsConvert::workspace() |
user_id | not declared | Column only | - | - |
asset_id | digital_assets.id | FK | cascade | - |
version_id | assets_versions.id | FK | cascade | DamAssetsConvert::version() |
import_data ​
Rows of an asset migration import sheet (source ids, target folder, migration status).
Model: DAM\ImportData · Created in update/2025_04_03_121108_create_import_data_table.php · changed by 2 later migrations: 2025_09_29_134600, 2026_06_19_000000
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | yes | ||
user_id | bigint unsigned | yes | ||
sheet_name | varchar(255) | yes | ||
category_name | varchar(255) | yes | ||
category_id | bigint unsigned | yes | ||
sub_category_name | varchar(255) | yes | ||
sub_category_id | bigint unsigned | yes | ||
asset_id | bigint unsigned | yes | ||
asset_name | varchar(255) | yes | ||
asset_url | text | yes | ||
description | text | yes | ||
bf_attachment_id | varchar(255) | yes | ||
bf_Asset_id | varchar(255) | yes | ||
asset_tags | text | yes | ||
is_added_to_platform | tinyint(1) | no | 0 | |
note | text | yes | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
custom_fields | text | yes | ||
migration_status | varchar(32) | no | pending | |
migration_result | json | yes | ||
attempts | int unsigned | no | 0 |
Indexes: idx_import_ws_migstatus index (workspace_id, migration_status); idx_import_ws_added index (workspace_id, is_added_to_platform).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | not declared (name suggests workspaces) | Column only | - | - |
user_id | not declared | Column only | - | - |
category_id | not declared | Column only | - | - |
sub_category_id | not declared | Column only | - | - |
asset_id | not declared (name suggests digital_assets) | Column only | - | - |
workspace_restructure_data ​
Rows of a folder restructure / rename batch (current and target folder, new name, status).
Model: DAM\WorkspaceRestructureData · Created in update/2026_09_02_000000_create_workspace_restructure_data_table.php
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | ||
sheet_name | varchar(255) | no | ||
batch_id | int unsigned | no | ||
asset_id | bigint unsigned | no | ||
current_folder_id | bigint unsigned | yes | ||
target_folder_id | bigint unsigned | yes | ||
current_asset_name | varchar(255) | yes | ||
new_asset_name | varchar(255) | yes | ||
status | varchar(32) | no | pending | |
is_folder_changed | tinyint(1) | no | 0 | |
is_name_changed | tinyint(1) | no | 0 | |
note | text | yes | ||
processed_at | timestamp | yes | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
Indexes: idx_ws_restructure_batch_status index (workspace_id, batch_id, status); idx_ws_restructure_sheet_batch index (workspace_id, sheet_name, batch_id).
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | not declared (name suggests workspaces) | Column only | - | - |
batch_id | not declared | Column only | - | - |
asset_id | not declared (name suggests digital_assets) | Column only | - | - |
current_folder_id | not declared | Column only | - | - |
target_folder_id | not declared | Column only | - | - |
Asset store and watermark ​
The asset store lets portal users order assets as products. dam_asset_products marks an asset as orderable; carts, orders, order items and shipping rows hang off it.
Solid lines are foreign keys in the migrations; dotted lines are relations that exist only in the models. Tables from other pages appear without their own section here.
dam_asset_products ​
Asset store: an asset offered as an orderable product (SKU, unit, pricing options).
Model: DAM\DamAssetProduct · Created in 2022_06_13_113009_create_dam_asset_product.php · changed by 2 later migrations: 2022_06_17_131725, 2022_07_11_132133
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
asset_id | bigint unsigned | no | FK → digital_assets.id | |
user_id | bigint unsigned | no | FK → users.id | |
sku | varchar(255) | yes | ||
unit | varchar(255) | yes | ||
pricing_option | enum(1,2) | no | 1 | |
options | longtext | no | redefined with ->change() in 2022_06_17_131725… | |
is_product | enum(1,0) | no | 0 | |
is_customize | enum(1,0) | no | 0 | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
sku_number | varchar(255) | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
asset_id | digital_assets.id | FK | cascade | DamAssetProduct::asset(), DigitalAssets::assetProduct() (swapped keys) |
user_id | users.id | FK | cascade | - |
Referenced by: dam_asset_product_carts.asset_product_id.
dam_asset_product_carts ​
Asset store cart lines.
Model: DAM\DamAssetProductCart · Created in 2022_06_14_181021_create_dam_asset_product_cart.php · changed by 3 later migrations: 2022_06_20_190134, 2022_06_29_123831, 2023_04_12_151035
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | no | FK → dealer_users.id | |
asset_id | bigint unsigned | no | FK → digital_assets.id | |
asset_version_id | bigint unsigned | no | FK → assets_versions.id | |
asset_product_id | bigint unsigned | no | FK → dam_asset_products.id | |
display_file_name | varchar(255) | no | ||
file_name | varchar(255) | no | ||
file_type | varchar(255) | no | ||
qty | varchar(255) | no | ||
unit | varchar(255) | no | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
selected_option | varchar(255) | yes | ||
total_amount | varchar(255) | yes | ||
base_price | varchar(255) | no | renamed from price | |
base_qty | varchar(255) | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | DamAssetProductCart::workspace() |
user_id | dealer_users.id | FK | cascade | - |
asset_id | digital_assets.id | FK | cascade | DamAssetProductCart::asset() |
asset_version_id | assets_versions.id | FK | cascade | - |
asset_product_id | dam_asset_products.id | FK | cascade | DamAssetProductCart::product() |
dam_asset_product_orders ​
Asset store orders (totals, status, invoice).
Model: DAM\DamAssetProductOrder · Created in 2022_06_14_181111_create_dam_asset_product_order.php · changed by 7 later migrations (latest update/2023_04_12_151035_change_referance_table_to_asset_product_table.php)
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | no | FK → dealer_users.id | |
order_id | varchar(255) | no | ||
user_name | varchar(255) | no | ||
user_email | varchar(255) | no | ||
user_phone | varchar(255) | no | ||
user_note | varchar(255) | yes | ||
shipping_tracking_id | varchar(255) | yes | ||
shipping_method | varchar(255) | yes | ||
sub_total | varchar(255) | yes | ||
shipping_amount | varchar(255) | yes | ||
total_amount | varchar(255) | yes | ||
status | varchar(255) | yes | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
invoice_status | int | no | ||
invoice_date | timestamp | yes | ||
invoice_number | varchar(255) | yes | ||
order_number | varchar(255) | yes | ||
is_dismiss | varchar(255) | yes | ||
admin_id | varchar(255) | yes | ||
cancelled_by | varchar(255) | yes | ||
user_type | varchar(255) | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | DamAssetProductOrder::workspace() |
user_id | dealer_users.id | FK | cascade | DamAssetProductOrder::user() |
admin_id | not declared | Column only | - | - |
Referenced by: dam_asset_product_order_items.order_id, dam_asset_product_order_shippings.order_id.
dam_asset_product_order_items ​
Lines of an asset store order.
Model: DAM\DamAssetProductOrderItem · Created in 2022_06_14_181119_create_dam_asset_product_order_item.php · changed by 3 later migrations: 2022_06_21_121434, 2022_06_29_122049, 2023_04_12_151035
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | no | FK → dealer_users.id | |
asset_id | bigint unsigned | no | FK → digital_assets.id | |
asset_version_id | bigint unsigned | no | FK → assets_versions.id | |
order_id | bigint unsigned | no | FK → dam_asset_product_orders.id | |
display_file_name | varchar(255) | no | ||
file_name | varchar(255) | no | ||
file_type | varchar(255) | no | ||
qty | varchar(255) | no | ||
unit | varchar(255) | no | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
total_amount | varchar(255) | yes | ||
base_price | varchar(255) | no | renamed from price | |
base_qty | varchar(255) | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | DamAssetProductOrderItem::workspace() |
user_id | dealer_users.id | FK | cascade | - |
asset_id | digital_assets.id | FK | cascade | DamAssetProductOrderItem::asset(), DamAssetProductOrderItem::assetProduct() |
asset_version_id | assets_versions.id | FK | cascade | - |
order_id | dam_asset_product_orders.id | FK | cascade | DamAssetProductOrder::order_item() |
dam_asset_product_order_shippings ​
Shipping address and contact of an order.
Model: DAM\DamAssetProductOrderShipping · Created in 2022_06_14_190853_create_dam_asset_product_order_shipping.php · changed by 2 later migrations: 2022_06_21_164507, 2023_04_12_151035
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | no | FK → dealer_users.id | |
order_id | bigint unsigned | no | FK → dam_asset_product_orders.id | |
shipping_company_name | varchar(255) | no | ||
shipping_user_name | varchar(255) | no | ||
shipping_user_email | varchar(255) | no | ||
shipping_user_phone | varchar(255) | no | ||
address1 | varchar(255) | yes | ||
address2 | varchar(255) | yes | ||
city | varchar(255) | no | ||
state | varchar(255) | no | ||
zip_code | varchar(255) | no | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
country | varchar(255) | no | renamed from county |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
user_id | dealer_users.id | FK | cascade | - |
order_id | dam_asset_product_orders.id | FK | cascade | DamAssetProductOrder::shpping_info() (swapped keys) |
dam_user_addresses ​
Saved addresses of asset store users.
Model: DAM\DAMUserAddress · Created in 2022_06_14_181230_create_dam_user_address.php · changed by 4 later migrations: 2022_06_21_164039, 2022_07_01_170614, 2022_07_04_130907, 2023_04_12_151035
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | no | FK → dealer_users.id | |
address1 | varchar(255) | yes | ||
address2 | varchar(255) | yes | ||
city | varchar(255) | no | ||
state | varchar(255) | no | ||
zip_code | varchar(255) | no | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
country | varchar(255) | no | renamed from county | |
company_name | varchar(255) | yes | ||
user_name | varchar(255) | yes | ||
user_email | varchar(255) | yes | ||
user_phone | varchar(255) | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
user_id | dealer_users.id | FK | cascade | - |
dam_asset_order_settings ​
Asset store settings per workspace (SKU and order numbering).
Model: DAM\DamAssetOrderSetting · Created in 2022_07_07_154705_create_dam_asset_order_setting_table.php · changed by 2 later migrations: 2022_07_22_183523, 2022_07_26_171744
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
user_id | bigint unsigned | no | ||
admin_id | bigint unsigned | yes | ||
is_sku_automatic | int | no | 1 | |
workspace_abbreviation | varchar(255) | yes | ||
product_number | bigint unsigned | no | redefined with ->change() in 2022_07_22_183523…; redefined with ->change() in 2022_07_26_171744… | |
is_prefix | int | no | 1 | |
is_suffix | int | no | 0 | |
is_required | int | no | 0 | |
is_order_automatic | int | no | 1 | |
order_number | bigint unsigned | no | redefined with ->change() in 2022_07_22_183523…; redefined with ->change() in 2022_07_26_171744… | |
created_at | timestamp | yes | ||
updated_at | timestamp | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
user_id | not declared | Column only | - | - |
admin_id | not declared | Column only | - | - |
dam_asset_watermark_settings ​
Watermark settings per workspace (text or image, size, opacity, position).
Model: DAM\DamAssetWatermarkSetting · Created in 2022_09_16_120502_dam_asset_watermark_setting.php · changed by 2 later migrations: 2022_10_17_175149, 2022_11_10_131618
| Column | Type | Null | Default | Notes |
|---|---|---|---|---|
id | bigint unsigned | no | PK, auto increment | |
workspace_id | bigint unsigned | no | FK → workspaces.id | |
type | varchar(255) | no | ||
text | varchar(255) | yes | ||
font_size | varchar(255) | yes | ||
font_color | varchar(255) | yes | ||
image | varchar(255) | yes | ||
image_name | varchar(255) | yes | ||
opacity | varchar(255) | no | ||
position | varchar(255) | no | ||
orientation | varchar(255) | yes | ||
created_at | timestamp | yes | ||
updated_at | timestamp | yes | ||
is_check | int | no | 0 | |
image_type | varchar(255) | yes | ||
image_size | varchar(255) | yes |
| Column | References | Type | On delete | Model relation |
|---|---|---|---|---|
workspace_id | workspaces.id | FK | cascade | - |
Related ​
- Database overview · All relationships
- Models: DAM models · Core models · LM models