Backline Vegas

Data model

Backline Vegasmock tenant session
maya@backlinevegas.comowner

Tenant isolation

RLS

Every tenant-owned table has organization_id

Role model

5 roles

Owner, admin, manager, staff, viewer

Live keys

None

Mock UI stays local until Supabase is connected

Tenant setup

Organizations, settings, branding, and setup progress describe each hosted customer before any live data sync exists.

organizations, organization_settings, organization_branding, setup_progress

Access control

Profiles identify users, while staff members decide who belongs to a tenant and what role they have.

profiles, staff_members

Rental operations

Customers, inventory, packages, orders, invoices, payments, and maintenance logs power the day-to-day workflow.

customers, inventory_items, inventory_units, rental_packages, rental_orders, rental_order_items, invoices, payments, maintenance_logs

Audit trail

Activity logs capture important changes so support and future automation can explain what happened.

activity_logs

System tables

Plain-English map for future Supabase integration work.

TablePurposeDevelopment note
organizationsOne customer tenantRoot record for Backline Vegas or any future tenant.
organization_settingsTenant preferencesTimezone, currency, deposit defaults, and enabled modules.
organization_brandingTenant brandLogo, colors, invoice footer, and public-facing copy.
setup_progressOnboarding checklistTracks what Sierra Technology Group has configured.
profilesSigned-in usersApp profile that will map to Supabase Auth users later.
staff_membersRoles and permissionsOwner, admin, manager, staff, and viewer access.
customersRental clientsCompanies or people that book gear and services.
inventory_itemsCatalog itemsReusable item definitions like consoles, truss, or wireless racks.
inventory_unitsPhysical assetsSerialized units with asset tags, status, and location.
rental_packagesReusable bundlesCommon package templates with price, deposit, and visibility.
rental_ordersRental jobsBooked work with event details, status, totals, and customer.
rental_order_itemsOrder linesPackages, inventory, labor, delivery, discounts, or custom lines.
invoicesBilling documentsAmounts due and paid, linked to customers and rental orders.
paymentsMoney receivedPayment records with placeholder Stripe ids for now.
maintenance_logsService recordsRepair and QC notes for units or item families.
activity_logsAudit eventsA timeline of setup, order, maintenance, and support actions.

Roles

These roles are ready for Row Level Security policies in Supabase.

RoleAccess levelSimple meaning
ownerFull tenant controlBilling, settings, staff, and all tenant data.
adminFull operations controlCan manage setup, staff, branding, and tenant records.
managerOperations leadCan manage customers, inventory, orders, invoices, and payments.
staffOperations userCan work customers, gear, orders, maintenance, and activity.
viewerRead-onlyCan inspect tenant data without making changes.