ATY Scripts Logo
ATY Scripts/Docs/Restaurant Creator/Database

Database

Import data/install.sql once, before starting the resource. It is safe to re-run (CREATE TABLE IF NOT EXISTS).

Tables

Table Stores
aty_restaurants Each restaurant: owner, price, funds, hygiene, reputation, state, and a JSON data blob (zone points, blip, employees, ranks, menu, settings…).
aty_restaurant_stations Every placed station (type + coords JSON) linked to its restaurant.
aty_restaurant_freezers Persistent freezer/storage stock per restaurant.
aty_restaurant_sales Sales history used by the dashboard performance charts.
aty_restaurant_tenders Payment tenders / receipts.
aty_restaurant_pending_deliveries Wholesale/supply orders awaiting delivery.
aty_player_biometrics Per-character hidden allergies and biometric state.
aty_pizza_boxes Persistent dropped/placed pizza boxes.

Notes

  • Restaurants are fully dynamic — there are no static/config restaurants. Everything an owner or admin builds is written here and re-loaded on restart.
  • The heavy state (zone polygon, stations, employees, ranks, menu, CCTV, settings) lives in the data JSON column of aty_restaurants, kept in sync with a server-side cache and replicated to clients via GlobalState.
  • Deleting a restaurant row (or via the admin menu) removes its stations and stored stock.
Always back up before manual SQL edits. The `data` column is JSON — malformed JSON will prevent that restaurant from loading.
ATY Scripts LogoATY SCRIPTS

Crafting highly optimized FiveM scripts for QBCore & ESX. Maximum performance, precision code, zero lag.

Join Community

Partner

Official partners with Tebex. Secure checkout and Cfx.re Keymaster integration.

Legal

Not affiliated with Rockstar Games, Cfx.re, FiveM, or Take-Two Interactive. Purchases bound by Tebex Terms of Service.

© 2026 ATY SCRIPTS. All rights reserved.