notice.txt 945 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. application := models.Application{
  2. ApplicationName: "hallo",
  3. Models: []models.BEModel{
  4. models.BEModel{
  5. Name: "test",
  6. Fields: []models.Field{
  7. models.Field{
  8. Name: "manufacturer",
  9. Type: "string",
  10. Mandatory: true,
  11. Collection: false,
  12. },
  13. models.Field{
  14. Name: "model",
  15. Type: "string",
  16. Mandatory: true,
  17. Collection: false,
  18. },
  19. models.Field{
  20. Name: "tags",
  21. Type: "string",
  22. Mandatory: false,
  23. Collection: true,
  24. },
  25. },
  26. Indexes: []models.Index{
  27. models.Index{
  28. Name: "fulltest",
  29. Fields: []string{"manufacturer", "model", "tags"},
  30. },
  31. models.Index{
  32. Name: "manufacturer",
  33. Fields: []string{"manufacturer"},
  34. },
  35. models.Index{
  36. Name: "tags",
  37. Fields: []string{"tags"},
  38. },
  39. },
  40. },
  41. },
  42. }