# Licensing and Subscription Architecture

AtiqSoft licensing applies only to AtiqSoft-owned products.

## License Model

Supported plans:

- Trial
- Free
- Monthly
- Yearly
- Lifetime
- Enterprise
- Internal

Each license includes license key, product, tenant, plan, status, start date, expiry date, max devices, max users, and features enabled.

Feature flags can control product modules, user limits, device limits, AI credits, storage limits, and support level.

## Security

Hashed license keys are stored in the database. Runtime APIs require HTTPS, JWT authentication, tenant isolation, and rate limiting. No hardcoded credentials are stored in the repository.

There are no public admin APIs. Admin screens are workflow surfaces for authorized operators and should be placed behind private access controls.

## Device Binding

Activation binds a license to Device ID, Tenant ID, and Product ID. The server blocks activation when the license reaches the allowed device count.

## Audit Logs

Audit events track activation, validation, renewal, deactivation, failed attempts, and device limit exceeded.
