You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: repository.rb
    path of file: ./repos/todo-bcdd/app/models/todo/list
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Todo
  module List
    module Repository
      extend self

      def add_item(scope, description:)
        created_at = ::Time.current

      
    
      def add_item(scope, description:)
        created_at = ::Time.current

        data = {created_at:, updated_at: created_at, completed_at: nil, description: description.value}

        result = Item::Record.insert(data.merge(user_id: scope.owner_id.value))

        Item.new(id: result.first['id'], **data)
      rescue ActiveRecord::InvalidForeignKey
        nil
      end