22 lines
360 B
Ruby
22 lines
360 B
Ruby
class ModuleApp
|
|
include Mongoid::Document
|
|
include Mongoid::Timestamps
|
|
|
|
field :title
|
|
field :version
|
|
field :organization
|
|
field :author
|
|
field :intro
|
|
field :update_info
|
|
field :create_date
|
|
field :enable_frontend,type: Boolean
|
|
|
|
field :app_pages ,type: Array
|
|
field :widgets ,type: Array
|
|
|
|
has_one :app_auth,dependent: :delete
|
|
|
|
|
|
|
|
end
|