git-svn-id: https://beef.googlecode.com/svn/trunk@653 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9

This commit is contained in:
sussurro@happypacket.net
2011-01-02 04:20:57 +00:00
parent a0bebf3e87
commit 0f192aeb52
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
module BeEF
module Models
class DynamicPayloadInfo
include DataMapper::Resource
storage_names[:default] = 'dynamic_payload_info'
property :id, Serial
property :name, String, :length => 15
property :value, String, :length => 30
property :required, Boolean, :default => false
property :description, Text, :lazy => false
belongs_to :dynamic_payloads
end
end
end

View File

@@ -0,0 +1,19 @@
module BeEF
module Models
class DynamicPayloads
include DataMapper::Resource
storage_names[:default] = 'dynamic_payloads'
property :id, Serial
property :name, Text, :lazy => false
has n, :dynamic_payload_info
end
end
end