CORD-1512: last_login field doesn't show up in newly generated API
Change-Id: I020ae422d412dc8759f93289fc28c2f29be0b194
diff --git a/xos/core/models/core.xproto b/xos/core/models/core.xproto
index 25aa6a2..0f202fe 100644
--- a/xos/core/models/core.xproto
+++ b/xos/core/models/core.xproto
@@ -25,33 +25,34 @@
required string email = 1 [db_index = True, max_length = 255, null = False, blank = False];
required string username = 2 [default = "Something", max_length = 255, content_type = "stripped", blank = False, null = False, db_index = False];
required string password = 3 [default = "Something", max_length = 255, blank = False, null = False, db_index = False];
- required string firstname = 4 [max_length = 200, content_type = "stripped", blank = False, help_text = "person's given name", null = False, db_index = False];
- required string lastname = 5 [max_length = 200, content_type = "stripped", blank = False, help_text = "person's surname", null = False, db_index = False];
- optional string phone = 6 [max_length = 100, content_type = "stripped", blank = True, help_text = "phone number contact", null = True, db_index = False];
- optional string user_url = 7 [db_index = False, max_length = 200, null = True, content_type = "url", blank = True];
- required manytoone site->Site:users = 8 [help_text = "Site this user will be homed too", null = False, db_index = True, blank = False];
- optional string public_key = 9 [help_text = "Public key string", max_length = 1024, null = True, db_index = False, blank = True, varchar = True];
- required bool is_active = 10 [default = True, null = False, db_index = False, blank = True];
- required bool is_admin = 11 [default = False, null = False, db_index = False, blank = True];
- required bool is_staff = 12 [default = True, null = False, db_index = False, blank = True];
- required bool is_readonly = 13 [default = False, null = False, db_index = False, blank = True];
- required bool is_registering = 14 [default = False, null = False, db_index = False, blank = True];
- required bool is_appuser = 15 [default = False, null = False, db_index = False, blank = True];
- optional string login_page = 16 [max_length = 200, content_type = "stripped", blank = True, help_text = "send this user to a specific page on login", null = True, db_index = False];
- required string created = 17 [db_index = False, null = False, content_type = "date", blank = True];
- required string updated = 18 [db_index = False, null = False, content_type = "date", blank = True];
- optional string enacted = 19 [db_index = False, null = True, content_type = "date", blank = False];
- optional string policed = 20 [db_index = False, null = True, content_type = "date", blank = False];
- required string backend_status = 21 [default = "Provisioning in progress", max_length = 1024, content_type = "stripped", blank = False, null = False, db_index = False];
- required bool backend_need_delete = 22 [default = False, null = False, db_index = False, blank = True];
- required bool backend_need_reap = 23 [default = False, null = False, db_index = False, blank = True];
- required bool deleted = 24 [default = False, null = False, db_index = False, blank = True];
- required bool write_protect = 25 [default = False, null = False, db_index = False, blank = True];
- required bool lazy_blocked = 26 [default = False, null = False, db_index = False, blank = True];
- required bool no_sync = 27 [default = False, null = False, db_index = False, blank = True];
- required bool no_policy = 28 [default = False, null = False, db_index = False, blank = True];
- required string timezone = 29 [default = "America/New_York", max_length = 100, blank = False, null = False, db_index = False];
- required manytomany dashboards->DashboardView/UserDashboardView:user = 30 [db_index = False, null = False, blank = True];
+ optional string last_login = 4 [db_index = False, null = True, content_type = "date", blank = True];
+ required string firstname = 5 [max_length = 200, content_type = "stripped", blank = False, help_text = "person's given name", null = False, db_index = False];
+ required string lastname = 6 [max_length = 200, content_type = "stripped", blank = False, help_text = "person's surname", null = False, db_index = False];
+ optional string phone = 7 [max_length = 100, content_type = "stripped", blank = True, help_text = "phone number contact", null = True, db_index = False];
+ optional string user_url = 8 [db_index = False, max_length = 200, null = True, content_type = "url", blank = True];
+ required manytoone site->Site:users = 9 [help_text = "Site this user will be homed too", null = False, db_index = True, blank = False];
+ optional string public_key = 10 [help_text = "Public key string", max_length = 1024, null = True, db_index = False, blank = True, varchar = True];
+ required bool is_active = 11 [default = True, null = False, db_index = False, blank = True];
+ required bool is_admin = 12 [default = False, null = False, db_index = False, blank = True];
+ required bool is_staff = 13 [default = True, null = False, db_index = False, blank = True];
+ required bool is_readonly = 14 [default = False, null = False, db_index = False, blank = True];
+ required bool is_registering = 15 [default = False, null = False, db_index = False, blank = True];
+ required bool is_appuser = 16 [default = False, null = False, db_index = False, blank = True];
+ optional string login_page = 17 [max_length = 200, content_type = "stripped", blank = True, help_text = "send this user to a specific page on login", null = True, db_index = False];
+ required string created = 18 [db_index = False, null = False, content_type = "date", blank = True];
+ required string updated = 19 [db_index = False, null = False, content_type = "date", blank = True];
+ optional string enacted = 20 [db_index = False, null = True, content_type = "date", blank = False];
+ optional string policed = 21 [db_index = False, null = True, content_type = "date", blank = False];
+ required string backend_status = 22 [default = "Provisioning in progress", max_length = 1024, content_type = "stripped", blank = False, null = False, db_index = False];
+ required bool backend_need_delete = 23 [default = False, null = False, db_index = False, blank = True];
+ required bool backend_need_reap = 24 [default = False, null = False, db_index = False, blank = True];
+ required bool deleted = 25 [default = False, null = False, db_index = False, blank = True];
+ required bool write_protect = 26 [default = False, null = False, db_index = False, blank = True];
+ required bool lazy_blocked = 27 [default = False, null = False, db_index = False, blank = True];
+ required bool no_sync = 28 [default = False, null = False, db_index = False, blank = True];
+ required bool no_policy = 29 [default = False, null = False, db_index = False, blank = True];
+ required string timezone = 30 [default = "America/New_York", max_length = 100, blank = False, null = False, db_index = False];
+ required manytomany dashboards->DashboardView/UserDashboardView:user = 31 [db_index = False, null = False, blank = True];
}
message AddressPool (XOSBase) {