{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Flow Stream CSV Schema",
  "description": "Schema for Flow streams with rate-based distribution",
  "type": "object",
  "properties": {
    "address": {
      "$ref": "../common.schema.json#/$defs/address"
    },
    "rateAmount": {
      "type": "string",
      "pattern": "^[0-9]+(\\.[0-9]+)?$",
      "description": "Token amount per interval"
    },
    "rateInterval": {
      "type": "string",
      "enum": ["second", "minute", "hour", "day", "week", "month", "year"],
      "description": "Time interval for rate"
    },
    "initialDepositAmount": {
      "$ref": "../common.schema.json#/$defs/amount"
    },
    "startAt": {
      "$ref": "../common.schema.json#/$defs/timestamp"
    }
  },
  "required": ["address", "rateAmount", "rateInterval", "initialDepositAmount", "startAt"],
  "additionalProperties": false
}
