version: "2"
sql:
  - engine: "sqlite"
    queries: "read.sql"
    schema: "migrations"
    gen:
      go:
        package: "sqlc"
        out: "sqlc"
        emit_json_tags: true
        emit_pointers_for_null_types: true
        overrides:
          - { "column": "*.schema", "go_type": { "type": "[]byte" } }
          - { "column": "*.state", "go_type": { "type": "[]byte" } }
          - { "column": "reactions.actiondata", "go_type": { "type": "[]byte" } }
          - { "column": "reactions.triggerdata", "go_type": { "type": "[]byte" } }
          - { "column": "_params.value", "go_type": { "type": "[]byte" } }
  - engine: "sqlite"
    queries: "write.sql"
    schema: "migrations"
    gen:
      go:
        package: "sqlc"
        out: "sqlc"
        emit_json_tags: true
        emit_pointers_for_null_types: true
        overrides:
          - { "column": "*.schema", "go_type": { "type": "[]byte" } }
          - { "column": "*.state", "go_type": { "type": "[]byte" } }
          - { "column": "reactions.actiondata", "go_type": { "type": "[]byte" } }
          - { "column": "reactions.triggerdata", "go_type": { "type": "[]byte" } }
          - { "column": "_params.value", "go_type": { "type": "[]byte" } }