{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT r.id, r.organization_id, r.course_id, r.created_by, r.name, r.description, r.total_points, r.created_at, r.updated_at\n        FROM rubrics r\n        INNER JOIN lesson_rubrics lr ON lr.rubric_id = r.id\n        WHERE lr.lesson_id = $1 AND lr.is_active = true AND r.organization_id = $2\n        ORDER BY lr.assigned_at DESC\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "organization_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "course_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "created_by",
        "type_info": "Uuid"
      },
      {
        "ordinal": 4,
        "name": "name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 5,
        "name": "description",
        "type_info": "Text"
      },
      {
        "ordinal": 6,
        "name": "total_points",
        "type_info": "Int4"
      },
      {
        "ordinal": 7,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 8,
        "name": "updated_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      true,
      false,
      false,
      true,
      false,
      false,
      false
    ]
  },
  "hash": "4687bb156a947f156e401c0d610756e7bb3a1abb0f706d3be347659f485e71de"
}
