| 21 | |
| 22 | |
| 23 | class 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" |
no outgoing calls
no test coverage detected