Skip to content

Instantly share code, notes, and snippets.

@Fi1osof
Created November 11, 2018 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fi1osof/139541297717c61f459022a53b082e68 to your computer and use it in GitHub Desktop.
Save Fi1osof/139541297717c61f459022a53b082e68 to your computer and use it in GitHub Desktop.
Changes:
UserGroup (Type)
+ Created type `UserGroup`
+ Created field `id` of type `GraphQLID!`
+ Created field `name` of type `String!`
+ Created field `Users` of type `[Relation!]!`
+ Created field `updatedAt` of type `DateTime!`
+ Created field `createdAt` of type `DateTime!`
LogedIn (Type)
+ Created type `LogedIn`
+ Created field `id` of type `GraphQLID!`
+ Created field `createdAt` of type `DateTime!`
+ Created field `fake` of type `Boolean`
+ Created field `User` of type `Relation!`
+ Created field `updatedAt` of type `DateTime!`
NotificationType (Type)
+ Created type `NotificationType`
+ Created field `id` of type `GraphQLID!`
+ Created field `createdAt` of type `DateTime!`
+ Created field `updatedAt` of type `DateTime!`
+ Created field `name` of type `String!`
+ Created field `comment` of type `String`
+ Created field `Users` of type `[Relation!]!`
ResourceTag (Type)
+ Created type `ResourceTag`
+ Created field `id` of type `GraphQLID!`
+ Created field `createdAt` of type `DateTime!`
+ Created field `updatedAt` of type `DateTime!`
+ Created field `status` of type `Enum!`
+ Created field `Resource` of type `Relation!`
+ Created field `Tag` of type `Relation!`
+ Created field `CreatedBy` of type `Relation`
Tag (Type)
+ Created type `Tag`
+ Created field `id` of type `GraphQLID!`
+ Created field `createdAt` of type `DateTime!`
+ Created field `updatedAt` of type `DateTime!`
+ Created field `name` of type `String!`
+ Created field `status` of type `Enum!`
+ Created field `Resources` of type `[Relation!]!`
+ Created field `CreatedBy` of type `Relation`
Vote (Type)
+ Created type `Vote`
+ Created field `id` of type `GraphQLID!`
+ Created field `createdAt` of type `DateTime!`
+ Created field `updatedAt` of type `DateTime!`
+ Created field `Resource` of type `Relation!`
+ Created field `User` of type `Relation!`
+ Created field `value` of type `Float!`
User (Type)
+ Created field `phone` of type `String`
+ Created field `showEmail` of type `Boolean`
+ Created field `showPhone` of type `Boolean`
+ Created field `password` of type `String`
+ Created field `image` of type `String`
+ Created field `address` of type `String`
+ Created field `sudo` of type `Boolean`
+ Created field `active` of type `Boolean`
+ Created field `activated` of type `Boolean`
+ Created field `deleted` of type `Boolean`
+ Created field `Groups` of type `[Relation!]!`
+ Created field `CreatedUsers` of type `[Relation!]!`
+ Created field `CreatedBy` of type `Relation`
+ Created field `LogedIns` of type `[Relation!]!`
+ Created field `Resources` of type `[Relation!]!`
+ Created field `Votes` of type `[Relation!]!`
+ Created field `NotificationTypes` of type `[Relation!]!`
+ Created field `Tags` of type `[Relation!]!`
+ Created field `ResourceTags` of type `[Relation!]!`
~ Updated field `createdAt`
~ Updated field `updatedAt`
Resource (Type)
+ Created field `type` of type `GraphQLID!`
+ Created field `name` of type `String`
+ Created field `longtitle` of type `String`
+ Created field `content` of type `Json`
+ Created field `contentText` of type `String`
+ Created field `published` of type `Boolean!`
+ Created field `deleted` of type `Boolean!`
+ Created field `hidemenu` of type `Boolean!`
+ Created field `searchable` of type `Boolean!`
+ Created field `uri` of type `String!`
+ Created field `isfolder` of type `Boolean!`
+ Created field `CreatedBy` of type `Relation!`
+ Created field `Parent` of type `Relation`
+ Created field `Childs` of type `[Relation!]!`
+ Created field `rating` of type `Float!`
+ Created field `positiveVotesCount` of type `Int!`
+ Created field `negativeVotesCount` of type `Int!`
+ Created field `neutralVotesCount` of type `Int!`
+ Created field `CommentTarget` of type `Relation`
+ Created field `Comments` of type `[Relation!]!`
+ Created field `Votes` of type `[Relation!]!`
+ Created field `Tags` of type `[Relation!]!`
~ Updated field `createdAt`
~ Updated field `updatedAt`
TagStatus (Enum)
+ Created enum TagStatus with values `Active`, `Moderated`, `Blocked`
ResourceComments (Relation)
+ Created relation between Resource and Resource
ResourceCreatedBy (Relation)
+ Created relation between Resource and User
UserResourceTag (Relation)
+ Created relation between ResourceTag and User
ResourceVotes (Relation)
+ Created relation between Resource and Vote
UserTags (Relation)
+ Created relation between Tag and User
ResourceParent (Relation)
+ Created relation between Resource and Resource
UserVotes (Relation)
+ Created relation between User and Vote
UserNotificationTypes (Relation)
+ Created relation between NotificationType and User
ResourcesTagsResource (Relation)
+ Created relation between Resource and ResourceTag
ResourcesTagsTag (Relation)
+ Created relation between ResourceTag and Tag
UserGroups (Relation)
+ Created relation between User and UserGroup
UserLogedIn (Relation)
+ Created relation between LogedIn and User
UserCreatedBy (Relation)
+ Created relation between User and User
Your Prisma GraphQL database endpoint is live:
HTTP: http://localhost:4466/importer/dev
WS: ws://localhost:4466/importer/dev
⠋ Get schemaHandlerObject.flags { 'env-file': undefined }
Schema file was updated: src/schema/generated/prisma.graphql
⠋ Generating fragments for project app...src/schema/generated/api.graphql
✔ Fragments for project app written to src/schema/generated/api.fragments.js
Done in 14.41s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment