# encoding: utf-8
class ShopApplication < ActiveRecord::Base
  has_paper_trail
  self.table_name = "shop_applications"

  IMG_STORE_PATH = "shop"

  rails_admin do
    navigation_label '店长申请记录'
    weight -500
    parent WxUser
    list do
      filters [:user_id,:nickname,:wx_user_id,:name,:total]
      field :id
      field :user_id
      field :name
      field :wx_user_id
      field :nickname
      field :mobile
      field :total
      field :address
      field :status
      field :remark
      field :pass_time
      field :created_at
      field :updated_at
    end

    show do
      field :id
      field :user_id
      field :name
      field :wx_user_id
      field :nickname
      field :mobile
      field :total
      field :address
      field :status
      field :remark
      field :pass_time
      field :created_at
      field :updated_at
    end

    edit do
      field :user_id
      field :name
      field :wx_user_id
      field :nickname
      field :mobile
      field :total
      field :address
      field :status
      field :remark
      field :pass_time
    end
  end

end
