Scott Baker | edbb232 | 2018-05-08 11:46:25 -0700 | [diff] [blame^] | 1 | option app_label = "simpleexampleservice"; |
| 2 | option name = "simpleexampleservice"; |
| 3 | |
| 4 | message SimpleExampleService (Service){ |
| 5 | option verbose_name = "Simple Example Service"; |
| 6 | required string service_message = 1 [help_text = "Service Message to Display", max_length = 254, null = False, db_index = False, blank = False]; |
| 7 | optional string service_secret = 2 [help_text = "Service Secret to place in a file", null = False, db_index = False, blank = True]; |
| 8 | } |
| 9 | |
| 10 | message ColorNew (XOSBase){ |
| 11 | option verbose_name = "Color"; |
| 12 | required string name = 1 [help_text = "Name for this color", db_index = False, max_length = 256, null = False, blank = False]; |
| 13 | required string html_code = 2 [help_text = "Code for this color", db_index = False, max_length = 256, null = False, blank = False]; |
| 14 | } |
| 15 | |
| 16 | message ServiceInstanceWithCompute (ServiceInstance) { |
| 17 | optional manytoone compute_instance->ComputeServiceInstance:service_instance_with_computes = 1 [db_index=True, null=True, blank=True]; |
| 18 | } |
| 19 | |
| 20 | message SimpleExampleServiceInstance (ServiceInstanceWithCompute){ |
| 21 | option verbose_name = "Example Service Instance"; |
| 22 | required string tenant_message = 1 [help_text = "Tenant Message to Display", max_length = 254, null = False, db_index = False, blank = False]; |
| 23 | optional manytoone foreground_color->ColorNew:serviceinstance_foreground_colors = 2 [db_index = True, null = True, blank = True]; |
| 24 | optional manytoone background_color->ColorNew:serviceinstance_background_colors = 3 [db_index = True, null = True, blank = True]; |
| 25 | optional string tenant_secret = 4 [help_text = "Tenant Secret to place in a file", null = False, db_index = False, blank = True]; |
| 26 | } |
| 27 | |
| 28 | message EmbeddedImageNew (XOSBase){ |
| 29 | option verbose_name = "Embedded Image"; |
| 30 | required string name = 1 [help_text = "Name for this image", db_index = False, max_length = 256, null = False, blank = False]; |
| 31 | required string url = 2 [help_text = "URL for this image", db_index = False, max_length = 256, null = False, blank = False]; |
| 32 | optional manytoone serviceinstance->SimpleExampleServiceInstance:embedded_images = 3 [db_index = True, null = True, blank = True]; |
| 33 | } |