class Suppliers::ListSerializer
  include Qwaiter::SupplierBaseSerializer
  attributes :state, :needs_help, :needs_payment, :user_requests_closing, :is_paid, :price, :closed_at

  has_many :orders, serializer: Suppliers::OrderSerializer
  has_many :join_requests, serializer: Suppliers::JoinRequestSerializer
  has_many :users, serializer: Suppliers::UserSerializer
  has_one :table, serializer: Suppliers::TableSerializer
end
