OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
47
app/Core/Support/EntityRelationshipEnum.php
Normal file
47
app/Core/Support/EntityRelationshipEnum.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Core\Support;
|
||||
|
||||
/**
|
||||
* Enum class EntityRelationshipEnum
|
||||
*
|
||||
* Represents various types of entity relationships.
|
||||
*/
|
||||
enum EntityRelationshipEnum: string
|
||||
{
|
||||
/**
|
||||
* Represents a collaborator relationship between ticket and user.
|
||||
*/
|
||||
case Collaborator = 'collaborator';
|
||||
|
||||
/**
|
||||
* Represents a "generated from" relationship (entity created from a canvas item).
|
||||
*/
|
||||
case GeneratedFrom = 'generated_from';
|
||||
|
||||
/**
|
||||
* Represents a "maps to" relationship (cross-structure element mapping).
|
||||
*/
|
||||
case MapsTo = 'maps_to';
|
||||
|
||||
/**
|
||||
* Associates a goal with a milestone for informational display only — the
|
||||
* milestone(s) are rendered as a list on the goal; they do NOT drive goal
|
||||
* progress (progress stays metric-defined from the goal's own values).
|
||||
* Direction convention: entityA = goal (GoalItem), entityB = milestone
|
||||
* (Ticket). The edge-based successor to the legacy single
|
||||
* zp_canvas_items.milestoneId column (retained during the transition) so a
|
||||
* goal can hold many milestones.
|
||||
*/
|
||||
case TrackedBy = 'tracked_by';
|
||||
|
||||
/**
|
||||
* Associates a ticket (task/milestone) with a linked resource for
|
||||
* informational display — BOM / 工艺文件 / 工具清单 / 文件 / wiki.
|
||||
* Direction convention: entityA = Ticket (task/milestone), entityB = the
|
||||
* linked resource id; entityBType carries the resource kind
|
||||
* (bom | process | tooling | file | wiki) so a single polymorphic edge
|
||||
* covers all five resource families without extra tables.
|
||||
*/
|
||||
case LinkedResource = 'linked_resource';
|
||||
}
|
||||
Reference in New Issue
Block a user