Matteo Scandolo | 29f02d3 | 2017-09-07 09:46:33 -0700 | [diff] [blame] | 1 | option app_label = "exampleservice"; |
Matteo Scandolo | 10c6a4d | 2017-10-02 18:04:43 -0700 | [diff] [blame] | 2 | option name = "exampleservice"; |
Sapan Bhatia | ce657e6 | 2017-04-21 14:20:41 +0200 | [diff] [blame] | 3 | |
| 4 | message ExampleService (Service){ |
Matteo Scandolo | 10c6a4d | 2017-10-02 18:04:43 -0700 | [diff] [blame] | 5 | option verbose_name = "Example Service"; |
Sapan Bhatia | ce657e6 | 2017-04-21 14:20:41 +0200 | [diff] [blame] | 6 | required string service_message = 1 [help_text = "Service Message to Display", max_length = 254, null = False, db_index = False, blank = False]; |
| 7 | } |
| 8 | |
Scott Baker | 7a916f7 | 2017-10-25 16:52:52 -0700 | [diff] [blame] | 9 | message 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 Bhatia | ce657e6 | 2017-04-21 14:20:41 +0200 | [diff] [blame] | 14 | |
Scott Baker | 037ad24 | 2018-06-28 09:38:16 -0700 | [diff] [blame^] | 15 | message ServiceInstanceWithCompute (ServiceInstance) { |
| 16 | optional manytoone compute_instance->ComputeServiceInstance:service_instance_with_computes = 1 [db_index=True, null=True, blank=True]; |
| 17 | } |
| 18 | |
| 19 | message ExampleServiceInstance (ServiceInstanceWithCompute){ |
Scott Baker | ffac718 | 2017-07-27 15:21:30 -0700 | [diff] [blame] | 20 | option verbose_name = "Example Service Instance"; |
Sapan Bhatia | ce657e6 | 2017-04-21 14:20:41 +0200 | [diff] [blame] | 21 | required string tenant_message = 1 [help_text = "Tenant Message to Display", max_length = 254, null = False, db_index = False, blank = False]; |
Scott Baker | 7a916f7 | 2017-10-25 16:52:52 -0700 | [diff] [blame] | 22 | optional manytoone foreground_color->Color:serviceinstance_foreground_colors = 3 [db_index = True, null = True, blank = True]; |
| 23 | optional manytoone background_color->Color:serviceinstance_background_colors = 3 [db_index = True, null = True, blank = True]; |
| 24 | } |
| 25 | |
| 26 | message EmbeddedImage (XOSBase){ |
| 27 | option verbose_name = "Embedded Image"; |
| 28 | required string name = 1 [help_text = "Name for this image", db_index = False, max_length = 256, null = False, blank = False]; |
| 29 | required string url = 2 [help_text = "URL for this image", db_index = False, max_length = 256, null = False, blank = False]; |
| 30 | optional manytoone serviceinstance->ExampleServiceInstance:embedded_images = 3 [db_index = True, null = True, blank = True]; |
Sapan Bhatia | ce657e6 | 2017-04-21 14:20:41 +0200 | [diff] [blame] | 31 | } |