* Removed lines of Artistic License 1.0 encumbered,
[merb_mart.git] / app / models / user_upload.rb
blobb3ee0c0575379a90cfccefa886392486a2b87cf7
1 class UserUpload
2   
3   include DataMapper::Resource
4   
5   IMAGE_EXTENSIONS = ['gif', 'jpg', 'jpeg', 'png', 'bmp']
7   property :id,         Fixnum, :serial => true
8   property :filename,   String
9   property :width,      Fixnum, :default => 0, :nullable => false
10   property :height,     Fixnum, :default => 0, :nullable => false
11   property :created_on, DateTime
12   #property :parent_id
13   property :content_type, String
14   property :thumbnail,    String
15   property :size,         Fixnum
16   property :type,       Class
18 end