Set Up Unique Key for Your Database Table
Objective of a Unique Key
The primary purpose of a unique key is to prevent duplicate records in your database table.
Instructions for Setting a Unique Key
Step 1: Navigate to your project
- Go to Project Admin → Tables
- Navigate to your target table.
Step 2: Click on Set Unique Key.
Step 3: Choose your unique key configuration:
- Scenario 1: Under Table Columns, select a single column (e.g.,
player_name
) to set as your unique key. - Scenario 2: Under Table Columns, select two or more columns (e.g.,
player_name
+money_amount
) to create a composite unique key.
Step 4: Click Save button to apply your changes.
This version improves clarity and structure for better readability.