1041 lines
21 KiB
JSON
1041 lines
21 KiB
JSON
{
|
|
"version": "0.3.14-fixed",
|
|
"steps": [
|
|
{
|
|
"tag": "CreateEnum",
|
|
"enum": "Status",
|
|
"values": [
|
|
"ONLINE",
|
|
"OFFLINE"
|
|
]
|
|
},
|
|
{
|
|
"tag": "CreateSource",
|
|
"source": "db"
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Source",
|
|
"source": "db"
|
|
},
|
|
"argument": "provider",
|
|
"value": "\"postgresql\""
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Source",
|
|
"source": "db"
|
|
},
|
|
"argument": "url",
|
|
"value": "\"***\""
|
|
},
|
|
{
|
|
"tag": "CreateModel",
|
|
"model": "ResetToken"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "ResetToken",
|
|
"field": "id",
|
|
"type": "Int",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "id"
|
|
},
|
|
"directive": "id"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "id"
|
|
},
|
|
"directive": "default"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "id"
|
|
},
|
|
"directive": "default"
|
|
},
|
|
"argument": "",
|
|
"value": "autoincrement()"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "ResetToken",
|
|
"field": "token",
|
|
"type": "String",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "token"
|
|
},
|
|
"directive": "unique"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "ResetToken",
|
|
"field": "expiration",
|
|
"type": "DateTime",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "ResetToken",
|
|
"field": "usedAt",
|
|
"type": "DateTime",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "ResetToken",
|
|
"field": "createdAt",
|
|
"type": "DateTime",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "createdAt"
|
|
},
|
|
"directive": "default"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "createdAt"
|
|
},
|
|
"directive": "default"
|
|
},
|
|
"argument": "",
|
|
"value": "now()"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "ResetToken",
|
|
"field": "updatedAt",
|
|
"type": "DateTime",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "updatedAt"
|
|
},
|
|
"directive": "updatedAt"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "ResetToken",
|
|
"field": "user",
|
|
"type": "User",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "user"
|
|
},
|
|
"directive": "relation"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "user"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "fields",
|
|
"value": "[userId]"
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "user"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "references",
|
|
"value": "[id]"
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "user"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "name",
|
|
"value": "\"resettoken_to_user\""
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "ResetToken",
|
|
"field": "userId",
|
|
"type": "Int",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "ResetToken",
|
|
"field": "creator",
|
|
"type": "User",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "creator"
|
|
},
|
|
"directive": "relation"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "creator"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "fields",
|
|
"value": "[creatorId]"
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "creator"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "references",
|
|
"value": "[id]"
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "ResetToken",
|
|
"field": "creator"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "name",
|
|
"value": "\"resettoken_to_creator\""
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "ResetToken",
|
|
"field": "creatorId",
|
|
"type": "Int",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateModel",
|
|
"model": "User"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "id",
|
|
"type": "Int",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "id"
|
|
},
|
|
"directive": "id"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "id"
|
|
},
|
|
"directive": "default"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "id"
|
|
},
|
|
"directive": "default"
|
|
},
|
|
"argument": "",
|
|
"value": "autoincrement()"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "lastLogin",
|
|
"type": "DateTime",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "lastLoginPrior",
|
|
"type": "DateTime",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "roles",
|
|
"type": "Json",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "groups",
|
|
"type": "Json",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "createdAt",
|
|
"type": "DateTime",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "createdAt"
|
|
},
|
|
"directive": "default"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "createdAt"
|
|
},
|
|
"directive": "default"
|
|
},
|
|
"argument": "",
|
|
"value": "now()"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "updatedAt",
|
|
"type": "DateTime",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "updatedAt"
|
|
},
|
|
"directive": "updatedAt"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "accountExpires",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "badPasswordTime",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "badPwdCount",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "cn",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "department",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "description",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "displayName",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "distinguishedName",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "dn",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "extensionAttribute1",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "extensionAttribute10",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "extensionAttribute2",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "extensionAttribute6",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "extensionAttribute7",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "givenName",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "homeDirectory",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "homeDrive",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "lastLogoff",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "lastLogon",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "lastLogonTimestamp",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "lockoutTime",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "logonCount",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "mail",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "name",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "objectCategory",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "objectGUID",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "objectSid",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "primaryGroupID",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "pwdLastSet",
|
|
"type": "DateTime",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "sAMAccountName",
|
|
"type": "String",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "sAMAccountName"
|
|
},
|
|
"directive": "unique"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "sAMAccountType",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "sn",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "thumbnailPhoto",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "title",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "userAccountControl",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "userPrincipalName",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "whenChanged",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "whenCreated",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "createdTokens",
|
|
"type": "ResetToken",
|
|
"arity": "List"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "createdTokens"
|
|
},
|
|
"directive": "relation"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "createdTokens"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "",
|
|
"value": "\"resettoken_to_user\""
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "tokens",
|
|
"type": "ResetToken",
|
|
"arity": "List"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "tokens"
|
|
},
|
|
"directive": "relation"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "tokens"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "",
|
|
"value": "\"resettoken_to_creator\""
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "User",
|
|
"field": "WifiDevice",
|
|
"type": "WifiDevice",
|
|
"arity": "List"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "WifiDevice"
|
|
},
|
|
"directive": "relation"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "User",
|
|
"field": "WifiDevice"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "",
|
|
"value": "\"wifidevice_to_user\""
|
|
},
|
|
{
|
|
"tag": "CreateModel",
|
|
"model": "WifiDevice"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "id",
|
|
"type": "Int",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "WifiDevice",
|
|
"field": "id"
|
|
},
|
|
"directive": "id"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "WifiDevice",
|
|
"field": "id"
|
|
},
|
|
"directive": "default"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "WifiDevice",
|
|
"field": "id"
|
|
},
|
|
"directive": "default"
|
|
},
|
|
"argument": "",
|
|
"value": "autoincrement()"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "oui",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "mac",
|
|
"type": "String",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "WifiDevice",
|
|
"field": "mac"
|
|
},
|
|
"directive": "unique"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "hostname",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "firstSeen",
|
|
"type": "DateTime",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "lastSeen",
|
|
"type": "DateTime",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "essid",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "ip",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "uptime",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "apName",
|
|
"type": "String",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "status",
|
|
"type": "Status",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "createdAt",
|
|
"type": "DateTime",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "WifiDevice",
|
|
"field": "createdAt"
|
|
},
|
|
"directive": "default"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "WifiDevice",
|
|
"field": "createdAt"
|
|
},
|
|
"directive": "default"
|
|
},
|
|
"argument": "",
|
|
"value": "now()"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "updatedAt",
|
|
"type": "DateTime",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "WifiDevice",
|
|
"field": "updatedAt"
|
|
},
|
|
"directive": "updatedAt"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "userId",
|
|
"type": "Int",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "WifiDevice",
|
|
"field": "user",
|
|
"type": "User",
|
|
"arity": "Optional"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "WifiDevice",
|
|
"field": "user"
|
|
},
|
|
"directive": "relation"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "WifiDevice",
|
|
"field": "user"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "fields",
|
|
"value": "[userId]"
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "WifiDevice",
|
|
"field": "user"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "references",
|
|
"value": "[id]"
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "WifiDevice",
|
|
"field": "user"
|
|
},
|
|
"directive": "relation"
|
|
},
|
|
"argument": "name",
|
|
"value": "\"wifidevice_to_user\""
|
|
}
|
|
]
|
|
} |