UNPKG

@baseplate-dev/project-builder-web

Version:

Web interface for constructing project builder JSON

464 lines (463 loc) 13.4 kB
{ "apps": [ { "id": "app:I3X22H8XDMp1", "name": "admin", "type": "admin" }, { "enableAxios": false, "enableBullQueue": false, "enablePostmark": false, "enableRedis": false, "enableSendgrid": false, "enableStripe": false, "enableSubscriptions": false, "id": "app:acqRWBqOc6tx", "name": "backend", "type": "backend" } ], "cliVersion": "0.8.2", "features": [ { "id": "feature:I_EnFXnHjbGQ", "name": "accounts", "parentRef": null }, { "id": "feature:KEDXl9Orio9N", "name": "accounts/password", "parentRef": "accounts" }, { "id": "feature:c28pJNS_89Oz", "name": "blogs", "parentRef": null } ], "isInitialized": true, "models": [ { "featureRef": "blogs", "graphql": { "objectType": { "enabled": true, "fields": ["name", "userId", "id"], "foreignRelations": [], "localRelations": [] }, "queries": { "get": { "enabled": true, "roles": [] }, "list": { "enabled": true, "roles": [] } } }, "id": "model:h7nbXcuLcUmy", "model": { "fields": [ { "id": "model-scalar-field:PPNcQYjHcLJM", "name": "id", "options": { "genUuid": true }, "type": "uuid" }, { "id": "model-scalar-field:5r4qOjWPHo7k", "name": "name", "options": { "default": "" }, "type": "string" }, { "id": "model-scalar-field:5r4qOjWPcsk", "name": "userId", "type": "uuid" }, { "id": "model-scalar-field:G5ODFua2_9E_", "name": "updatedAt", "options": { "defaultToNow": true, "updatedAt": true }, "type": "dateTime" }, { "id": "model-scalar-field:fOVkXTd3P1Jy", "name": "createdAt", "options": { "defaultToNow": true }, "type": "dateTime" } ], "primaryKeyFieldRefs": ["id"], "relations": [ { "foreignRelationName": "blogs", "modelRef": "User", "name": "user", "onDelete": "Cascade", "onUpdate": "Restrict", "references": [{ "foreignRef": "id", "localRef": "userId" }] } ], "uniqueConstraints": [] }, "name": "Blog" }, { "featureRef": "blogs", "id": "model:ZYGsFp93vRhv", "model": { "fields": [ { "id": "model-scalar-field:6AEaW6mjUeMi", "name": "id", "options": { "genUuid": true }, "type": "uuid" }, { "id": "model-scalar-field:dLndbykf8h2f", "name": "blogId", "options": { "default": "" }, "type": "uuid" }, { "id": "model-scalar-field:PNfjIfpZjmkw", "name": "publisherId", "options": { "default": "" }, "type": "uuid" }, { "id": "model-scalar-field:LfIe_qCQqQ42", "name": "title", "options": { "default": "" }, "type": "string" }, { "id": "model-scalar-field:p29bxCvmh_n8", "name": "content", "options": { "default": "" }, "type": "string" }, { "id": "model-scalar-field:lKjrrVtoNkEP", "name": "updatedAt", "options": { "defaultToNow": true, "updatedAt": true }, "type": "dateTime" }, { "id": "model-scalar-field:wJJXYvWWcOOS", "name": "createdAt", "options": { "defaultToNow": true }, "type": "dateTime" } ], "primaryKeyFieldRefs": ["id"], "relations": [ { "foreignRelationName": "blogPosts", "modelRef": "User", "name": "publisher", "onDelete": "Cascade", "onUpdate": "Restrict", "references": [{ "foreignRef": "id", "localRef": "publisherId" }] }, { "foreignRelationName": "posts", "modelRef": "Blog", "name": "blog", "onDelete": "Cascade", "onUpdate": "Restrict", "references": [{ "foreignRef": "id", "localRef": "blogId" }] } ], "uniqueConstraints": [] }, "name": "BlogPost" }, { "featureRef": "blogs", "id": "model:at_hVtN6XVWX", "model": { "fields": [ { "id": "model-scalar-field:EwhSjvGdsL9q", "name": "blogId", "options": { "default": "", "genUuid": false }, "type": "uuid" }, { "id": "model-scalar-field:HBbSkN0_M0TR", "name": "userId", "options": { "default": "" }, "type": "uuid" }, { "id": "model-scalar-field:vQybRRnJi3TW", "name": "updatedAt", "options": { "defaultToNow": true, "updatedAt": true }, "type": "dateTime" }, { "id": "model-scalar-field:u0mMHdHGq4u6", "name": "createdAt", "options": { "defaultToNow": true }, "type": "dateTime" } ], "primaryKeyFieldRefs": ["blogId", "userId"], "relations": [ { "foreignRelationName": "members", "modelRef": "Blog", "name": "blog", "onDelete": "Cascade", "onUpdate": "Restrict", "references": [{ "foreignRef": "id", "localRef": "blogId" }] }, { "foreignRelationName": "blogUsers", "modelRef": "User", "name": "user", "onDelete": "Cascade", "onUpdate": "Restrict", "references": [{ "foreignRef": "id", "localRef": "userId" }] } ], "uniqueConstraints": [] }, "name": "BlogUser" }, { "featureRef": "accounts", "graphql": { "mutations": { "create": {}, "delete": {}, "update": {} }, "objectType": { "enabled": true, "fields": ["id", "email"] }, "queries": { "get": { "enabled": true }, "list": {} } }, "id": "model:jZxZ8T0aLW5C", "model": { "fields": [ { "id": "model-scalar-field:iZSakQLjj07M", "name": "id", "options": { "genUuid": true }, "type": "uuid" }, { "id": "model-scalar-field:XrDYaOEQ6GZC", "isOptional": true, "name": "email", "options": { "default": "" }, "type": "string" }, { "id": "model-scalar-field:TZkNcyQ_Txvy", "isOptional": false, "name": "isEmailVerified", "options": { "default": "false" }, "type": "boolean" }, { "id": "model-scalar-field:HQJa_S0ldCJR", "isOptional": true, "name": "phone", "options": { "default": "" }, "type": "string" }, { "id": "model-scalar-field:AETlnfzdbjWt", "name": "updatedAt", "options": { "defaultToNow": true, "updatedAt": true }, "type": "dateTime" }, { "id": "model-scalar-field:ejT1yp4u8OHD", "name": "createdAt", "options": { "defaultToNow": true }, "type": "dateTime" } ], "primaryKeyFieldRefs": ["id"], "uniqueConstraints": [] }, "name": "User" }, { "featureRef": "accounts", "id": "model:89AumcW89cbQ", "model": { "fields": [ { "id": "model-scalar-field:gnzjScaSf6YQ", "name": "id", "options": { "genUuid": true }, "type": "uuid" }, { "id": "model-scalar-field:d4d76SlcLRs4", "name": "userId", "options": { "default": "" }, "type": "uuid" }, { "id": "model-scalar-field:DT6yCP4Av5an", "name": "providerType", "options": { "default": "" }, "type": "string" }, { "id": "model-scalar-field:BG8cwOFZjb6f", "name": "providerId", "options": { "default": "" }, "type": "string" }, { "id": "model-scalar-field:nqgVnw9itPWb", "name": "providerSecret", "options": { "default": "" }, "type": "string" }, { "id": "model-scalar-field:sTnwPjiZLvcc", "name": "createdAt", "options": { "defaultToNow": true }, "type": "dateTime" }, { "id": "model-scalar-field:yqN3N72ycVN0", "name": "updatedAt", "options": { "defaultToNow": true, "updatedAt": true }, "type": "dateTime" } ], "primaryKeyFieldRefs": ["id"], "relations": [ { "foreignRelationName": "userAuthProviders", "modelRef": "User", "name": "user", "onDelete": "Cascade", "onUpdate": "Restrict", "references": [{ "foreignRef": "id", "localRef": "userId" }] } ], "uniqueConstraints": [ { "fields": [ { "fieldRef": "providerType" }, { "fieldRef": "providerId" } ], "id": "model-unique-constraint:Yxl6s6FA_Ras" } ] }, "name": "UserAuthProvider" }, { "featureRef": "accounts", "id": "model:3BNvsyfylc9c", "model": { "fields": [ { "id": "model-scalar-field:7f865kOwXryv", "name": "userId", "options": { "default": "", "genUuid": false }, "type": "uuid" }, { "id": "model-scalar-field:1SNeYwyIj_Jy", "name": "role", "options": { "default": "" }, "type": "string" }, { "id": "model-scalar-field:SGKA5W77rUL5", "name": "updatedAt", "options": { "defaultToNow": true, "updatedAt": true }, "type": "dateTime" }, { "id": "model-scalar-field:uT7TyReHg24r", "name": "createdAt", "options": { "defaultToNow": true }, "type": "dateTime" } ], "primaryKeyFieldRefs": ["userId", "role"], "relations": [ { "foreignRelationName": "roles", "modelRef": "User", "name": "user", "onDelete": "Cascade", "onUpdate": "Restrict", "references": [{ "foreignRef": "id", "localRef": "userId" }] } ], "uniqueConstraints": [] }, "name": "UserRole" }, { "featureRef": "accounts", "id": "model:8koW3IyW42e_", "model": { "fields": [ { "id": "model-scalar-field:CjiJr2PTCCeT", "name": "id", "options": { "default": "", "genUuid": true }, "type": "uuid" }, { "id": "model-scalar-field:wIR0RC08zqov", "name": "token", "options": { "default": "" }, "type": "string" }, { "id": "model-scalar-field:7Y3oZIHFIY2V", "name": "userId", "options": { "default": "" }, "type": "uuid" }, { "id": "model-scalar-field:Y1Mg5lJh4IG0", "name": "expiresAt", "options": { "default": "" }, "type": "dateTime" }, { "id": "model-scalar-field:sEIUglst63xV", "name": "renewedAt", "options": { "defaultToNow": true, "updatedAt": false }, "type": "dateTime" }, { "id": "model-scalar-field:SFSrsPqRYtLD", "name": "createdAt", "options": { "defaultToNow": true }, "type": "dateTime" }, { "id": "model-scalar-field:__RpraUxczSN", "name": "updatedAt", "options": { "defaultToNow": true, "updatedAt": true }, "type": "dateTime" } ], "primaryKeyFieldRefs": ["id"], "relations": [ { "foreignRelationName": "userSessions", "modelRef": "User", "name": "user", "onDelete": "Cascade", "onUpdate": "Restrict", "references": [{ "foreignRef": "id", "localRef": "userId" }] } ], "uniqueConstraints": [ { "fields": [{ "fieldRef": "token" }], "id": "model-unique-constraint:4JFxyTcYT1LM" } ] }, "name": "UserSession" } ], "name": "blog-with-auth", "portOffset": 3000, "schemaVersion": 9, "version": "0.1.0" }