blob: c3fdba75cdf5a7b1c5eea83f2251786e77727631 [file] [log] [blame]
Scott Bakeredbb2322018-05-08 11:46:25 -07001option app_label = "simpleexampleservice";
2option name = "simpleexampleservice";
3
4message 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
10message 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
Scott Bakered94fc42018-12-20 06:57:49 -080016// Note: Named ServiceInstanceWithCompute2 to prevent name collision with ExampleService.ServiceInstanceWithCompute.
17// Expect this model to eventually move to the core.
18
19message ServiceInstanceWithCompute2 (ServiceInstance) {
Scott Baker1d9d8232018-10-29 17:31:50 -070020 optional manytoone compute_instance->ComputeServiceInstance:service_instance_with_computes = 1:1001 [db_index=True, null=True, blank=True];
Scott Bakeredbb2322018-05-08 11:46:25 -070021}
22
Scott Bakered94fc42018-12-20 06:57:49 -080023message SimpleExampleServiceInstance (ServiceInstanceWithCompute2){
Scott Bakeredbb2322018-05-08 11:46:25 -070024 option verbose_name = "Example Service Instance";
25 required string tenant_message = 1 [help_text = "Tenant Message to Display", max_length = 254, null = False, db_index = False, blank = False];
Scott Baker1d9d8232018-10-29 17:31:50 -070026 optional manytoone foreground_color->ColorNew:serviceinstance_foreground_colors = 2:1001 [db_index = True, null = True, blank = True];
27 optional manytoone background_color->ColorNew:serviceinstance_background_colors = 3:1002 [db_index = True, null = True, blank = True];
Scott Bakeredbb2322018-05-08 11:46:25 -070028 optional string tenant_secret = 4 [help_text = "Tenant Secret to place in a file", null = False, db_index = False, blank = True];
29}
30
31message EmbeddedImageNew (XOSBase){
32 option verbose_name = "Embedded Image";
33 required string name = 1 [help_text = "Name for this image", db_index = False, max_length = 256, null = False, blank = False];
34 required string url = 2 [help_text = "URL for this image", db_index = False, max_length = 256, null = False, blank = False];
Scott Baker1d9d8232018-10-29 17:31:50 -070035 optional manytoone serviceinstance->SimpleExampleServiceInstance:embedded_images = 3:1001 [db_index = True, null = True, blank = True];
Scott Bakeredbb2322018-05-08 11:46:25 -070036}