@@ -6,7 +6,7 @@ This document outlines the package management system for Moox, including install
66
77---
88
9- ## 2. Package Status Definitions
9+ ## 2. Package Status and Type Definitions
1010
1111### 2.1 Install Status
1212
@@ -29,6 +29,19 @@ Tracks whether a package is up-to-date or not.
2929| ` needs-update ` | The package is not up to date and auto-update is disabled. |
3030| ` update-failed ` | The package had an error when updating. |
3131
32+ ### 2.3 Package Types
33+
34+ Which kind of package are we dealing with.
35+
36+ | Type | Meaning |
37+ | ------------------ | ---------------------------------------------------------- |
38+ | ` moox_package ` | The package is officially made by Moox. |
39+ | ` moox_compatible ` | The package is compatible with Moox package API. |
40+ | ` moox_dependency ` | The package is directly required by Moox. |
41+ | ` filament_plugin ` | The package is a Filament plugin. |
42+ | ` laravel_package ` | The package has a Laravel Service Provider. |
43+ | ` php_package ` | The package is a PHP package. |
44+
3245---
3346
3447## 3. Installation Workflow
@@ -65,15 +78,19 @@ Tracks whether a package is up-to-date or not.
6578| ` update_scheduled_at ` | Timestamp | When will it update |
6679| ` updated_by_id ` | UUID | User who updated it |
6780| ` updated_by_type ` | String | Model type (` User ` , ` System ` ) |
68- | ` installation_status ` | Enum | ` available ` , ` installed ` , ` active ` |
81+ | ` install_status ` | Enum | ` available ` , ` installed ` , ` active ` |
82+ | ` update_status ` | Enum | ` up-to-date ` , ... (see above) |
6983| ` auto_update ` | Boolean | Whether auto-updates are enabled |
7084| ` is_theme ` | Boolean | Whether this package is a theme |
85+ | ` package_type ` | Enum | ` moox_package ` , ... (see above) |
86+ | ` activation_steps ` | JSON | ` Migrated ` , ` Seeded ` , ` Configu... ` |
7187
7288✅ ** Relationships**
7389
74- - ` hasMany ` ** Entities** , ** Panels** , ** Jobs** , ** Mails**
7590- ` belongsTo ` ** Category**
7691- ` belongsToMany ` ** Tags**
92+ ** later**
93+ - ` hasMany ` ** Entities** , ** Panels** , ** Jobs** , ** Mails**
7794- ` hasMany ` ** Relations**
7895- ` hasMany ` ** Taxonomies**
7996- ` hasMany ` ** Modules**
0 commit comments