MCPcopy Create free account
hub / github.com/1Panel-dev/MaxKB / ResourceMapping

Class ResourceMapping

apps/system_manage/models/resource_mapping.py:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23class ResourceMapping(AppModelMixin):
24 id = models.UUIDField(primary_key=True, max_length=128, default=uuid.uuid7, editable=False, verbose_name="主键id")
25 source_type = models.CharField(verbose_name="关联资源类型", choices=ResourceType.choices, db_index=True)
26 target_type = models.CharField(verbose_name="被关联资源类型", choices=ResourceType.choices, db_index=True)
27 source_id = models.CharField(max_length=128, verbose_name="关联资源id", db_index=True)
28 target_id = models.CharField(max_length=128, verbose_name="被关联资源id", db_index=True)
29
30 class Meta:
31 db_table = "resource_mapping"

Calls

no outgoing calls

Tested by

no test coverage detected