part of '../table.dart';

abstract class ITableRepository {
  Future<Either<TableFailure, ListTable>> fetchTables({
    int page = 1,
    int limit = 50,
    String? status,
  });

  Future<Either<TableFailure, Table>> createTable({
    required String name,
    required int capacity,
  });

  Future<Either<TableFailure, Table>> updatePosition({
    required String id,
    required Offset position,
  });

  Future<Either<TableFailure, Unit>> transferTable({
    required String fromTableId,
    required String toTableId,
  });
}
