-- Creating MongoDB collections initialization script
-- This script will be converted to MongoDB operations

-- Users Collection
-- Stores admin, manager, owner, and employee information
-- Fields: name, email, phone, password, role, branchIds, createdAt, updatedAt, isActive

-- Branches Collection  
-- Stores branch information
-- Fields: name, address, phone, managerId, isActive, createdAt, updatedAt

-- Sales Collection
-- Stores sales transactions
-- Fields: branchId, userId, items, totalAmount, date, createdAt

-- Expenses Collection
-- Stores expense records
-- Fields: branchId, userId, category, description, amount, date, createdAt

-- Inventory Collection
-- Stores inventory items
-- Fields: branchId, itemName, quantity, unitPrice, category, lastUpdated

-- Employee Collection
-- Stores employee information
-- Fields: name, email, phone, branchId, position, salary, hireDate, isActive
