JJM Modifications
📊

Database

Database tables, job grades, and stock persistence used by JM-UwUCatCafe.

Importing uwu_catcafe.sql sets up everything the resource needs to function. All statements use CREATE TABLE IF NOT EXISTS and INSERT ... ON DUPLICATE KEY UPDATE so the file is safe to re-import.

Tables Created#

TablePurpose
jobsRegisters the uwucafe job entry.
job_gradesDefines the four staff grades with salaries.
itemsInserts item definitions (if your server uses a DB-backed items table).
uwu_store_stockPersists shop stock levels across server restarts.

Job Grades#

GradeNameLabelSalary
0traineeTrainee$50
1baristaBarista$75
2managerManager$100
3bossOwner$150

Store Stock#

Shop stock levels are stored in the uwu_store_stock table and loaded into memory when the resource starts. Stock decreases as players purchase items and increases when staff trigger a warehouse delivery. Changes are written back to the database automatically.

Initial stock values set by the SQL file:

ItemStarting stock
uwu_milk_tea500
uwu_cat_cookie500
uwu_mochi_icecream500
uwu_cat_bento500
uwu_cake_slice500
uwu_frappe500
uwu_sandwich500
uwu_pancake_stack500
uwu_ramen_bowl500
uwu_macaron_box500
uwu_garden_salad500
uwu_valentine_cookie500
Warning

If you already have an items table and jobs/job_grades tables populated from another framework import, review the SQL before running it. Skip or merge the sections that would conflict with existing rows.

MySQL Compatibility#

The resource supports both oxmysql and ghmattimysql for database operations. If neither is detected, stock persistence is disabled and an in-memory fallback is used — stock will reset on every restart.