120 lines
2.2 KiB
JSON
120 lines
2.2 KiB
JSON
{
|
|
"version": "0.3.14-fixed",
|
|
"steps": [
|
|
{
|
|
"tag": "CreateSource",
|
|
"source": "DS"
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Source",
|
|
"source": "DS"
|
|
},
|
|
"argument": "provider",
|
|
"value": "\"sqlite\""
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Source",
|
|
"source": "DS"
|
|
},
|
|
"argument": "url",
|
|
"value": "\"***\""
|
|
},
|
|
{
|
|
"tag": "CreateModel",
|
|
"model": "Post"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "Post",
|
|
"field": "id",
|
|
"type": "Int",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "Post",
|
|
"field": "id"
|
|
},
|
|
"directive": "id"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "Post",
|
|
"field": "id"
|
|
},
|
|
"directive": "default"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "Post",
|
|
"field": "id"
|
|
},
|
|
"directive": "default"
|
|
},
|
|
"argument": "",
|
|
"value": "autoincrement()"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "Post",
|
|
"field": "title",
|
|
"type": "String",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "Post",
|
|
"field": "body",
|
|
"type": "String",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateField",
|
|
"model": "Post",
|
|
"field": "createdAt",
|
|
"type": "DateTime",
|
|
"arity": "Required"
|
|
},
|
|
{
|
|
"tag": "CreateDirective",
|
|
"location": {
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "Post",
|
|
"field": "createdAt"
|
|
},
|
|
"directive": "default"
|
|
}
|
|
},
|
|
{
|
|
"tag": "CreateArgument",
|
|
"location": {
|
|
"tag": "Directive",
|
|
"path": {
|
|
"tag": "Field",
|
|
"model": "Post",
|
|
"field": "createdAt"
|
|
},
|
|
"directive": "default"
|
|
},
|
|
"argument": "",
|
|
"value": "now()"
|
|
}
|
|
]
|
|
} |