-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphcms-schema.txt
77 lines (70 loc) · 1.48 KB
/
graphcms-schema.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
type Asset @model {
authorAvatar: [Author!]! @relation(name: "AssetAuthorAvatar")
createdAt: DateTime!
fileName: String!
handle: String! @isUnique
height: Float
id: ID! @isUnique
mimeType: String
postCoverImage: [Post!]! @relation(name: "AssetPostCoverImage")
size: Float
updatedAt: DateTime!
url: String! @isUnique
width: Float
}
type Author @model {
avatar: Asset @relation(name: "AssetAuthorAvatar")
biography: String
blogposts: [Post!]! @relation(name: "Author")
createdAt: DateTime!
facebookProfile: String
gitHubProfile: String
id: ID! @isUnique
instagramProfile: String
isPublished: Boolean! @defaultValue(value: false)
linkedInProfile: String
name: String
twitterProfile: String
updatedAt: DateTime!
}
enum Categorias {
Blog
}
type File @model {
contentType: String!
createdAt: DateTime!
id: ID! @isUnique
name: String!
secret: String! @isUnique
size: Int!
updatedAt: DateTime!
url: String! @isUnique
}
enum Locales {
EN_US
}
type Post @model {
author: Author @relation(name: "Author")
category: String!
coverImage: Asset @relation(name: "AssetPostCoverImage")
createdAt: DateTime!
date: DateTime!
html: String!
id: ID! @isUnique
isPublished: Boolean! @defaultValue(value: false)
postTags: [Tags!]
slug: String @isUnique
tags: [String!]
title: String
updatedAt: DateTime!
}
enum Tags {
Link
Video
Bandcamp
}
type User @model {
createdAt: DateTime!
id: ID! @isUnique
updatedAt: DateTime!
}