|
2 | 2 | "name": "accounts", |
3 | 3 | "type": "Account", |
4 | 4 | "properties": { |
5 | | - "id": { "type": "integer", "required": true, "primaryKey": true, "comment": "Unique identifier, auto-generated. It's the primary key." }, |
6 | | - "inserted": { "type": "date", "required": false, "dateOn": "insert", "comment": "Timestamp when current record is inserted" }, |
7 | | - "updated": { "type": "date", "required": false, "dateOn": "update", "comment": "Timestamp when current record is updated" }, |
8 | | - "etag": { "type": "string", "required": false, "maxLength": 1024, "comment": "Possible ETag for all resources that are external. Allows for better synch-ing." }, |
9 | | - "comments": { "type": "string", "required": false, "maxLength": 8192, "fullText": true, "comment": "General comments. Can be used for anything useful related to the instance." }, |
10 | | - "country": { "type": "string", "required": true, "maxLength": 16, "default": "'US'", "fullText": true, "comment": "Country code" }, |
11 | | - "email": { "type": "string", "required": false, "maxLength": 128, "unique": true, "comment": "Main email to communicate for that account" }, |
12 | | - "established": { "type": "date", "required": false, "maxLength": 6, "minimum": "2020-01-01", "comment": "Date on which the account was established" }, |
13 | | - "enabled": { "type": "boolean", "required": true, "default": true, "comment": "Whether it is enabled or not. Disabled instances will not be used." }, |
14 | | - "externalId": { "type": "string", "required": false, "maxLength": 512, "unique": true, "comment": "External unique ID, used to refer to external accounts" }, |
15 | | - "phone": { "type": "string", "required": false, "maxLength": 128, "fullText": true, "comment": "Handle associated with the account" }, |
16 | | - "name": { "type": "string", "required": true, "unique": true, "fullText": true, "comment": "Descriptive name to identify the instance" }, |
17 | | - "preferences": { "type": "json", "required": true, "default": { "wrap": true, "minAge": 18 }, "comment": "All the general options associated with the account." }, |
| 5 | + "id": { "type": "integer", "required": true, "primaryKey": true, "description": "Unique identifier, auto-generated. It's the primary key." }, |
| 6 | + "inserted": { "type": "date", "required": false, "dateOn": "insert", "description": "Timestamp when current record is inserted" }, |
| 7 | + "updated": { "type": "date", "required": false, "dateOn": "update", "description": "Timestamp when current record is updated" }, |
| 8 | + "etag": { "type": "string", "required": false, "maxLength": 1024, "description": "Possible ETag for all resources that are external. Allows for better synch-ing." }, |
| 9 | + "comments": { "type": "string", "required": false, "maxLength": 8192, "fullText": true, "description": "General comments. Can be used for anything useful related to the instance." }, |
| 10 | + "country": { "type": "string", "required": true, "maxLength": 16, "default": "'US'", "fullText": true, "description": "Country code" }, |
| 11 | + "email": { "type": "string", "required": false, "maxLength": 128, "unique": true, "description": "Main email to communicate for that account" }, |
| 12 | + "established": { "type": "date", "required": false, "maxLength": 6, "minimum": "2020-01-01", "description": "Date on which the account was established" }, |
| 13 | + "enabled": { "type": "boolean", "required": true, "default": true, "description": "Whether it is enabled or not. Disabled instances will not be used." }, |
| 14 | + "externalId": { "type": "string", "required": false, "maxLength": 512, "unique": true, "description": "External unique ID, used to refer to external accounts" }, |
| 15 | + "phone": { "type": "string", "required": false, "maxLength": 128, "fullText": true, "description": "Handle associated with the account" }, |
| 16 | + "name": { "type": "string", "required": true, "unique": true, "fullText": true, "description": "Descriptive name to identify the instance" }, |
| 17 | + "preferences": { "type": "json", "required": true, "default": { "wrap": true, "minAge": 18 }, "description": "All the general options associated with the account." }, |
18 | 18 | "valueList": { "type": "json", "asExpression": "JSON_EXTRACT(preferences, '$.*')", "generatedType": "stored" } |
19 | 19 | }, |
20 | 20 | "indices": [ |
|
0 commit comments