Matteo Scandolo | 990fa53 | 2017-09-07 09:46:33 -0700 | [diff] [blame] | 1 | option app_label = "exampleservice"; |
Matteo Scandolo | fc0a436 | 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 | fc0a436 | 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 | 9d1b2c1 | 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 | ffac718 | 2017-07-27 15:21:30 -0700 | [diff] [blame] | 15 | message ExampleServiceInstance (TenantWithContainer){ |
Scott Baker | ffac718 | 2017-07-27 15:21:30 -0700 | [diff] [blame] | 16 | option verbose_name = "Example Service Instance"; |
Sapan Bhatia | ce657e6 | 2017-04-21 14:20:41 +0200 | [diff] [blame] | 17 | required string tenant_message = 1 [help_text = "Tenant Message to Display", max_length = 254, null = False, db_index = False, blank = False]; |
Scott Baker | 9d1b2c1 | 2017-10-25 16:52:52 -0700 | [diff] [blame] | 18 | 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 | |
| 22 | message 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 Bhatia | ce657e6 | 2017-04-21 14:20:41 +0200 | [diff] [blame] | 27 | } |