require "json" require "uuid" require "uuid/json" require "./product" class Category JSON.mapping( name: {type: String, nilable: true}, name_id: String, parent: {type: String, nilable: true}, products: Array(UUID) ) end