package be.seeseepuff.allowanceplanner.dto;

import java.util.List;

public record MigrationDto(
        List<MigrationUserDto> users,
        List<MigrationAllowanceDto> allowances,
        List<MigrationHistoryDto> history,
        List<MigrationTaskDto> tasks
) {
    public record MigrationUserDto(int id, String name, long balance, double weight) {
    }

    public record MigrationAllowanceDto(int id, int userId, String name, long target, long balance, double weight,
                                        Integer colour) {
    }

    public record MigrationHistoryDto(int id, int userId, long timestamp, long amount, String description) {
    }

    public record MigrationTaskDto(int id, String name, long reward, Integer assigned, String schedule,
                                   Long completed, Long nextRun) {
    }
}
