github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/.projectforge/export/models/statement.json (about)

     1  {
     2    "name": "statement",
     3    "package": "statement",
     4    "description": "A representation of a SQL execution",
     5    "icon": "database",
     6    "tags": [
     7      "search"
     8    ],
     9    "columns": [
    10      {
    11        "name": "id",
    12        "type": "uuid",
    13        "pk": true,
    14        "search": true
    15      },
    16      {
    17        "name": "session_id",
    18        "type": "int"
    19      },
    20      {
    21        "name": "action",
    22        "type": {
    23          "k": "enum",
    24          "t": {
    25            "ref": "action"
    26          }
    27        },
    28        "search": true,
    29        "indexed": true
    30      },
    31      {
    32        "name": "succeeded",
    33        "type": "bool"
    34      },
    35      {
    36        "name": "principal",
    37        "type": "string"
    38      },
    39      {
    40        "name": "database",
    41        "type": "string"
    42      },
    43      {
    44        "name": "filename",
    45        "type": "string",
    46        "display": "detail"
    47      },
    48      {
    49        "name": "host",
    50        "type": "string",
    51        "display": "detail"
    52      },
    53      {
    54        "name": "transaction_id",
    55        "type": "int"
    56      },
    57      {
    58        "name": "client_ip",
    59        "type": "string",
    60        "display": "detail"
    61      },
    62      {
    63        "name": "duration",
    64        "type": "int"
    65      },
    66      {
    67        "name": "connection_id",
    68        "type": "uuid",
    69        "display": "detail"
    70      },
    71      {
    72        "name": "rows_affected",
    73        "type": "int"
    74      },
    75      {
    76        "name": "rows_returned",
    77        "type": "int"
    78      },
    79      {
    80        "name": "sql",
    81        "type": "string",
    82        "display": "detail",
    83        "format": "sql"
    84      },
    85      {
    86        "name": "types",
    87        "type": {
    88          "k": "map",
    89          "t": {
    90            "k": "string",
    91            "v": "any"
    92          }
    93        },
    94        "display": "detail"
    95      },
    96      {
    97        "name": "values",
    98        "type": {
    99          "k": "map",
   100          "t": {
   101            "k": "string",
   102            "v": "any"
   103          }
   104        },
   105        "display": "detail"
   106      },
   107      {
   108        "name": "occurred",
   109        "type": "timestamp"
   110      }
   111    ]
   112  }