AiFastDB License Agreement
Version 1.0, February 2026

Copyright (c) 2026 AiFastDB Team. All rights reserved.

================================================================================
                         AIFASTDB LICENSE AGREEMENT
================================================================================

This license governs the use of the AiFastDB software and associated
documentation files (the "Software").

By using the Software, you agree to the terms of this license.

--------------------------------------------------------------------------------
1. DEFINITIONS
--------------------------------------------------------------------------------

"Personal Use" means use by an individual for personal projects, learning,
research, education, or non-commercial purposes. This includes:
  - Personal side projects and hobby projects
  - Academic research and coursework
  - Open-source projects that are not primarily commercial
  - Evaluation and testing of the Software

"Commercial Use" means any use of the Software that is primarily intended for
or directed toward commercial advantage or monetary compensation. This includes
but is not limited to:
  - Use within a for-profit company, organization, or entity
  - Use in products or services that are sold, licensed, or offered for a fee
  - Use in internal business tools of a for-profit organization
  - Use by government contractors for contract work

"Small Business" means a for-profit entity with fewer than 5 employees AND
less than $100,000 USD in annual revenue.

--------------------------------------------------------------------------------
2. GRANT OF RIGHTS — PERSONAL USE (FREE)
--------------------------------------------------------------------------------

Permission is hereby granted, free of charge, to any individual obtaining a
copy of this Software, to use, copy, modify, and distribute the Software for
Personal Use, subject to the following conditions:

  a) The above copyright notice and this license shall be included in all
     copies or substantial portions of the Software.

  b) Modified versions must be clearly marked as modified and must not be
     misrepresented as the original Software.

  c) The Software may not be sold or sublicensed as a standalone product.

--------------------------------------------------------------------------------
3. GRANT OF RIGHTS — SMALL BUSINESS (FREE)
--------------------------------------------------------------------------------

Small Businesses (as defined above) may use the Software free of charge for
Commercial Use, subject to the same conditions as Section 2.

--------------------------------------------------------------------------------
4. COMMERCIAL USE — LICENSE REQUIRED
--------------------------------------------------------------------------------

Any Commercial Use that does not qualify under Section 3 (Small Business)
requires a separate commercial license agreement.

To obtain a commercial license, please contact:

  Email: [youngsun@qq.com]
  Website: [www.aifastdb.com/licensing]

Commercial licenses include:
  - Standard License: For single-product use
  - Enterprise License: For unlimited internal use
  - OEM License: For redistribution within your product

Using the Software for Commercial Use without a valid commercial license is
a violation of this agreement.

--------------------------------------------------------------------------------
5. RESTRICTIONS
--------------------------------------------------------------------------------

Regardless of the type of use, the following restrictions apply:

  a) You may NOT remove or alter any copyright notices, license text, or
     attribution from the Software.

  b) You may NOT offer the Software as a hosted/managed database service
     (Database-as-a-Service) without a separate OEM or service license.

  c) You may NOT use the name "AiFastDB" or related trademarks to endorse
     or promote products derived from this Software without prior written
     permission.

--------------------------------------------------------------------------------
6. CONTRIBUTIONS
--------------------------------------------------------------------------------

Any contributions (pull requests, patches, suggestions) submitted to this
project are licensed under the same terms as this license, unless explicitly
stated otherwise.

--------------------------------------------------------------------------------
7. DISCLAIMER OF WARRANTY
--------------------------------------------------------------------------------

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.

--------------------------------------------------------------------------------
8. TERMINATION
--------------------------------------------------------------------------------

This license is effective until terminated. Your rights under this license
will terminate automatically if you fail to comply with any of its terms.
Upon termination, you must destroy all copies of the Software in your
possession.

================================================================================
                              QUICK REFERENCE
================================================================================

  ✅ Personal projects, learning, research     — FREE
  ✅ Open-source non-commercial projects        — FREE
  ✅ Small business (< 5 people, < $100K/yr)    — FREE
  💼 Enterprise / Commercial use                — LICENSE REQUIRED
  ❌ Hosted DB service (DBaaS)                  — LICENSE REQUIRED
  ❌ Remove copyright / attribution             — NOT ALLOWED

================================================================================
