<gh_stars>1-10
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from google.appengine.ext import ndb

class User(ndb.Model):
	token_timeline = ndb.StringProperty(default="")
	am_pm = ndb.BooleanProperty(default=False)
	tester = ndb.BooleanProperty(default=False)
	send_timeline_welcome_back = ndb.BooleanProperty(default=False)
	
	address_home = ndb.StringProperty()
	address_work = ndb.StringProperty()
	route_avoid_tolls = ndb.BooleanProperty(default=False)
	route_avoid_highways = ndb.BooleanProperty(default=False)
	route_avoid_ferries = ndb.BooleanProperty(default=False)
	
	timeline_enabled = ndb.BooleanProperty(default=True)
	timeline_pins_sent = ndb.IntegerProperty(default=0)
	timeline_onboarding_sent = ndb.BooleanProperty(default=False)
	timeline_work_arrival_local = ndb.TimeProperty()
	timeline_work_departure_local = ndb.TimeProperty()
	timeline_work_timezone = ndb.StringProperty()
	
	trip_home_work_mean = ndb.IntegerProperty(default=0)
	trip_home_work_count = ndb.IntegerProperty(default=0)
	trip_work_home_mean = ndb.IntegerProperty(default=0)
	trip_work_home_count = ndb.IntegerProperty(default=0)
	
	created = ndb.DateTimeProperty(auto_now_add=True)
	updated = ndb.DateTimeProperty(auto_now_add=True) # Update manually when user changes config

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from google.appengine.ext import ndb

class User(ndb.Model):
	token_timeline = ndb.StringProperty(default="")
	am_pm = ndb.BooleanProperty(default=False)
	tester = ndb.BooleanProperty(default=False)
	send_timeline_welcome_back = ndb.BooleanProperty(default=False)
	
	address_home = ndb.StringProperty()
	address_work = ndb.StringProperty()
	route_avoid_tolls = ndb.BooleanProperty(default=False)
	route_avoid_highways = ndb.BooleanProperty(default=False)
	route_avoid_ferries = ndb.BooleanProperty(default=False)
	
	timeline_enabled = ndb.BooleanProperty(default=True)
	timeline_pins_sent = ndb.IntegerProperty(default=0)
	timeline_onboarding_sent = ndb.BooleanProperty(default=False)
	timeline_work_arrival_local = ndb.TimeProperty()
	timeline_work_departure_local = ndb.TimeProperty()
	timeline_work_timezone = ndb.StringProperty()
	
	trip_home_work_mean = ndb.IntegerProperty(default=0)
	trip_home_work_count = ndb.IntegerProperty(default=0)
	trip_work_home_mean = ndb.IntegerProperty(default=0)
	trip_work_home_count = ndb.IntegerProperty(default=0)
	
	created = ndb.DateTimeProperty(auto_now_add=True)
	updated = ndb.DateTimeProperty(auto_now_add=True) # Update manually when user changes config
#!/usr/bin/env python # -*- coding: utf-8 -*- # Update manually when user changes config