blob: d93d4304965afabceb2d229f908d0fdb1ae79a29 [file] [log] [blame]
Matteo Scandolo29f02d32017-09-07 09:46:33 -07001option app_label = "exampleservice";
Matteo Scandolo10c6a4d2017-10-02 18:04:43 -07002option name = "exampleservice";
Sapan Bhatiace657e62017-04-21 14:20:41 +02003
4message ExampleService (Service){
Matteo Scandolo10c6a4d2017-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 Baker7a916f72017-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 Baker037ad242018-06-28 09:38:16 -070015message ServiceInstanceWithCompute (ServiceInstance) {
16 optional manytoone compute_instance->ComputeServiceInstance:service_instance_with_computes = 1 [db_index=True, null=True, blank=True];
17}
18
19message ExampleServiceInstance (ServiceInstanceWithCompute){
Scott Bakerffac7182017-07-27 15:21:30 -070020 option verbose_name = "Example Service Instance";
Sapan Bhatiace657e62017-04-21 14:20:41 +020021 required string tenant_message = 1 [help_text = "Tenant Message to Display", max_length = 254, null = False, db_index = False, blank = False];
Scott Baker3616ebf2018-10-09 08:08:44 -070022 optional manytoone foreground_color->Color:serviceinstance_foreground_colors = 2 [db_index = True, null = True, blank = True];
Scott Baker7a916f72017-10-25 16:52:52 -070023 optional manytoone background_color->Color:serviceinstance_background_colors = 3 [db_index = True, null = True, blank = True];
24}
25
26message 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 Bhatiace657e62017-04-21 14:20:41 +020031}