<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

    <record id="cron_aggregate_daily_usage" model="ir.cron">
        <field name="name">Fusion API: Aggregate Daily Usage</field>
        <field name="model_id" ref="model_fusion_api_usage_daily"/>
        <field name="state">code</field>
        <field name="code">model._cron_aggregate_daily()</field>
        <field name="interval_number">1</field>
        <field name="interval_type">days</field>
        <field name="active">True</field>
        <field name="priority">90</field>
    </record>

    <record id="cron_cleanup_old_logs" model="ir.cron">
        <field name="name">Fusion API: Cleanup Old Usage Logs</field>
        <field name="model_id" ref="model_fusion_api_usage_daily"/>
        <field name="state">code</field>
        <field name="code">model._cron_cleanup_old_logs()</field>
        <field name="interval_number">1</field>
        <field name="interval_type">weeks</field>
        <field name="active">True</field>
        <field name="priority">95</field>
    </record>

</odoo>
