PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/google_app/metricentry.py

https://code.google.com/p/dwarftherapist/
Python | 16 lines | 14 code | 2 blank | 0 comment | 0 complexity | 58910dec2c098514150206d02ede6b2b MD5 | raw file
 1import datetime
 2from google.appengine.ext import db
 3
 4class MetricEntry(db.Model):
 5    ip = db.StringProperty()
 6    city = db.StringProperty()
 7    region_code = db.StringProperty()
 8    region_name = db.StringProperty()
 9    country = db.StringProperty()
10    dt_version_major = db.IntegerProperty()
11    dt_version_minor = db.IntegerProperty()
12    dt_version_patch = db.IntegerProperty()
13    dt_version_string = db.StringProperty()
14    entry_time = db.DateTimeProperty(auto_now=True, 
15                                     auto_now_add=True)
16