blob: 7068d5162e7589db25bc088eba1a95df15e46b03 [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) {
Scott Baker1681cba2018-10-30 13:15:26 -070016 optional manytoone compute_instance->ComputeServiceInstance:service_instance_with_computes = 1:1002 [db_index=True, null=True, blank=True];
Scott Baker037ad242018-06-28 09:38:16 -070017}
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 Baker1681cba2018-10-30 13:15:26 -070022 optional manytoone foreground_color->Color:serviceinstance_foreground_colors = 2:1001 [db_index = True, null = True, blank = True];
23 optional manytoone background_color->Color:serviceinstance_background_colors = 3:1002 [db_index = True, null = True, blank = True];
Scott Baker7a916f72017-10-25 16:52:52 -070024}
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];
Scott Baker1681cba2018-10-30 13:15:26 -070030 optional manytoone serviceinstance->ExampleServiceInstance:embedded_images = 3:1001 [db_index = True, null = True, blank = True];
Sapan Bhatiace657e62017-04-21 14:20:41 +020031}