domain.settings.json 611 Bytes
Newer Older
alain's avatar
alain committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  "kind": "collectionType",
  "collectionName": "domains",
  "info": {
    "name": "Domain"
  },
  "options": {
    "increments": true,
    "timestamps": true
  },
  "attributes": {
    "title": {
      "type": "string",
      "required": true,
      "unique": true
    },
    "description": {
      "type": "richtext"
19
    },
alain's avatar
alain committed
20
21
22
23
24
25
26
27
28
29
30
    "slug": {
      "type": "string",
      "required": true,
      "regex": "^[a-z0-9-_.~]*$"
    },
    "order": {
      "type": "integer",
      "unique": false,
      "default": 1
    },
    "alternatives": {
31
      "via": "domains",
alain's avatar
alain committed
32
      "collection": "alternative"
alain's avatar
alain committed
33
34
35
    }
  }
}