blob: 0820c9e8a09a945247a91847d36ad13b3e7d1fa7 [file] [log] [blame]
Matteo Scandolo990fa532017-09-07 09:46:33 -07001option app_label = "exampleservice";
Matteo Scandolofc0a4362017-10-02 18:04:43 -07002option name = "exampleservice";
Sapan Bhatiace657e62017-04-21 14:20:41 +02003
4message ExampleService (Service){
Matteo Scandolofc0a4362017-10-02 18:04:43 -07005 option verbose_name = "Example Service";
Sapan Bhatiace657e62017-04-21 14:20:41 +02006 required string service_message = 1 [help_text = "Service Message to Display", max_length = 254, null = False, db_index = False, blank = False];
7}
8
Scott Baker9d1b2c12017-10-25 16:52:52 -07009message Color (XOSBase){
10 option verbose_name = "Color";
11 required string name = 1 [help_text = "Name for this color", db_index = False, max_length = 256, null = False, blank = False];
12 required string html_code = 2 [help_text = "Code for this color", db_index = False, max_length = 256, null = False, blank = False];
13}
Sapan Bhatiace657e62017-04-21 14:20:41 +020014
Scott Bakerffac7182017-07-27 15:21:30 -070015message ExampleServiceInstance (TenantWithContainer){
Scott Bakerffac7182017-07-27 15:21:30 -070016 option verbose_name = "Example Service Instance";
Sapan Bhatiace657e62017-04-21 14:20:41 +020017 required string tenant_message = 1 [help_text = "Tenant Message to Display", max_length = 254, null = False, db_index = False, blank = False];
Scott Baker9d1b2c12017-10-25 16:52:52 -070018 optional manytoone foreground_color->Color:serviceinstance_foreground_colors = 3 [db_index = True, null = True, blank = True];
19 optional manytoone background_color->Color:serviceinstance_background_colors = 3 [db_index = True, null = True, blank = True];
20}
21
22message EmbeddedImage (XOSBase){
23 option verbose_name = "Embedded Image";
24 required string name = 1 [help_text = "Name for this image", db_index = False, max_length = 256, null = False, blank = False];
25 required string url = 2 [help_text = "URL for this image", db_index = False, max_length = 256, null = False, blank = False];
26 optional manytoone serviceinstance->ExampleServiceInstance:embedded_images = 3 [db_index = True, null = True, blank = True];
Sapan Bhatiace657e62017-04-21 14:20:41 +020027}