import 'package:niogu_app/core/enums/item_type.dart';
import 'package:niogu_app/core/enums/stock_type.dart';
import 'package:niogu_app/core/enums/sync_status.dart';
import 'package:uuid/uuid.dart';

class UpsertOutletInventory {
  final String localId;
  final String outletId;
  final ItemType itemType;
  final String itemId;
  final StockType stockType;
  final double stock;
  final double sellingPrice;
  final double costPrice;
  final double purchasePrice;
  final SyncStatus syncStatus;

  UpsertOutletInventory({
    String? localId,
    required this.outletId,
    required this.itemType,
    required this.itemId,
    required this.stockType,
    required this.stock,
    required this.costPrice,
    required this.sellingPrice,
    required this.purchasePrice,
    this.syncStatus = SyncStatus.dirty,
  }) : localId = localId ?? const Uuid().v7().toString();
}