Skip to main content

Asset Registration

Confirmed flow

Registration requires tenant context, asset code, name, and type after domain defaulting. Code is normalized and length-limited; name and type are length-limited. Serial number, condition, and notes are optional. Initial status is Available; initial condition is the supplied valid enum value or New when absent/unrecognized. The service blocks a duplicate normalized code within the tenant at the application layer. Serial-number uniqueness is not enforced.

The record stores tenant ownership and creation/update times. Documents are uploaded separately after creation. Description, category entity, vendor, purchase date, purchase cost, currency, invoice/order reference, warranty, location, department, and depreciation are Not implemented fields. No commercial or identifying example values are documented here.

Requires confirmation

Whether code uniqueness also needs a database-level tenant constraint, whether serial numbers should be unique, and what registration permissions apply require confirmation.

Source References

  • microservices/src/asset-service/Domain/Asset/Asset.cs
  • microservices/src/asset-service/Domain/Common/ValueObjects.cs
  • microservices/src/asset-service/Application/Commands/AssetCommands.cs