1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- application := models.Application{
- ApplicationName: "hallo",
- Models: []models.BEModel{
- models.BEModel{
- Name: "test",
- Fields: []models.Field{
- models.Field{
- Name: "manufacturer",
- Type: "string",
- Mandatory: true,
- Collection: false,
- },
- models.Field{
- Name: "model",
- Type: "string",
- Mandatory: true,
- Collection: false,
- },
- models.Field{
- Name: "tags",
- Type: "string",
- Mandatory: false,
- Collection: true,
- },
- },
- Indexes: []models.Index{
- models.Index{
- Name: "fulltest",
- Fields: []string{"manufacturer", "model", "tags"},
- },
- models.Index{
- Name: "manufacturer",
- Fields: []string{"manufacturer"},
- },
- models.Index{
- Name: "tags",
- Fields: []string{"tags"},
- },
- },
- },
- },
- }
-
|