|
|
@ -25,16 +25,16 @@ enum RightRole {
|
|
|
|
|
|
|
|
|
|
|
|
interface Base {
|
|
|
|
interface Base {
|
|
|
|
id: Int!
|
|
|
|
id: Int!
|
|
|
|
createdOn: Date
|
|
|
|
createdAt: Date
|
|
|
|
updatedOn: Date
|
|
|
|
updatedAt: Date
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# TYPES
|
|
|
|
# TYPES
|
|
|
|
|
|
|
|
|
|
|
|
type Comment implements Base {
|
|
|
|
type Comment implements Base {
|
|
|
|
id: Int!
|
|
|
|
id: Int!
|
|
|
|
createdOn: Date
|
|
|
|
createdAt: Date
|
|
|
|
updatedOn: Date
|
|
|
|
updatedAt: Date
|
|
|
|
content: String
|
|
|
|
content: String
|
|
|
|
document: Document!
|
|
|
|
document: Document!
|
|
|
|
author: User!
|
|
|
|
author: User!
|
|
|
@ -42,8 +42,8 @@ type Comment implements Base {
|
|
|
|
|
|
|
|
|
|
|
|
type Document implements Base {
|
|
|
|
type Document implements Base {
|
|
|
|
id: Int!
|
|
|
|
id: Int!
|
|
|
|
createdOn: Date
|
|
|
|
createdAt: Date
|
|
|
|
updatedOn: Date
|
|
|
|
updatedAt: Date
|
|
|
|
path: String!
|
|
|
|
path: String!
|
|
|
|
title: String!
|
|
|
|
title: String!
|
|
|
|
subtitle: String
|
|
|
|
subtitle: String
|
|
|
@ -57,8 +57,8 @@ type Document implements Base {
|
|
|
|
|
|
|
|
|
|
|
|
type File implements Base {
|
|
|
|
type File implements Base {
|
|
|
|
id: Int!
|
|
|
|
id: Int!
|
|
|
|
createdOn: Date
|
|
|
|
createdAt: Date
|
|
|
|
updatedOn: Date
|
|
|
|
updatedAt: Date
|
|
|
|
category: FileType!
|
|
|
|
category: FileType!
|
|
|
|
mime: String!
|
|
|
|
mime: String!
|
|
|
|
extra: String
|
|
|
|
extra: String
|
|
|
@ -70,15 +70,15 @@ type File implements Base {
|
|
|
|
|
|
|
|
|
|
|
|
type Folder implements Base {
|
|
|
|
type Folder implements Base {
|
|
|
|
id: Int!
|
|
|
|
id: Int!
|
|
|
|
createdOn: Date
|
|
|
|
createdAt: Date
|
|
|
|
updatedOn: Date
|
|
|
|
updatedAt: Date
|
|
|
|
name: String!
|
|
|
|
name: String!
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type Group implements Base {
|
|
|
|
type Group implements Base {
|
|
|
|
id: Int!
|
|
|
|
id: Int!
|
|
|
|
createdOn: Date
|
|
|
|
createdAt: Date
|
|
|
|
updatedOn: Date
|
|
|
|
updatedAt: Date
|
|
|
|
name: String!
|
|
|
|
name: String!
|
|
|
|
users: [User]
|
|
|
|
users: [User]
|
|
|
|
rights: [Right]
|
|
|
|
rights: [Right]
|
|
|
@ -86,8 +86,8 @@ type Group implements Base {
|
|
|
|
|
|
|
|
|
|
|
|
type Right implements Base {
|
|
|
|
type Right implements Base {
|
|
|
|
id: Int!
|
|
|
|
id: Int!
|
|
|
|
createdOn: Date
|
|
|
|
createdAt: Date
|
|
|
|
updatedOn: Date
|
|
|
|
updatedAt: Date
|
|
|
|
path: String!
|
|
|
|
path: String!
|
|
|
|
role: RightRole!
|
|
|
|
role: RightRole!
|
|
|
|
exact: Boolean!
|
|
|
|
exact: Boolean!
|
|
|
@ -96,8 +96,8 @@ type Right implements Base {
|
|
|
|
|
|
|
|
|
|
|
|
type Setting implements Base {
|
|
|
|
type Setting implements Base {
|
|
|
|
id: Int!
|
|
|
|
id: Int!
|
|
|
|
createdOn: Date
|
|
|
|
createdAt: Date
|
|
|
|
updatedOn: Date
|
|
|
|
updatedAt: Date
|
|
|
|
key: String!
|
|
|
|
key: String!
|
|
|
|
config: String!
|
|
|
|
config: String!
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -105,16 +105,16 @@ type Setting implements Base {
|
|
|
|
# Tags are attached to one or more documents
|
|
|
|
# Tags are attached to one or more documents
|
|
|
|
type Tag implements Base {
|
|
|
|
type Tag implements Base {
|
|
|
|
id: Int!
|
|
|
|
id: Int!
|
|
|
|
createdOn: Date
|
|
|
|
createdAt: Date
|
|
|
|
updatedOn: Date
|
|
|
|
updatedAt: Date
|
|
|
|
key: String!
|
|
|
|
key: String!
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# A User
|
|
|
|
# A User
|
|
|
|
type User implements Base {
|
|
|
|
type User implements Base {
|
|
|
|
id: Int!
|
|
|
|
id: Int!
|
|
|
|
createdOn: Date
|
|
|
|
createdAt: Date
|
|
|
|
updatedOn: Date
|
|
|
|
updatedAt: Date
|
|
|
|
email: String!
|
|
|
|
email: String!
|
|
|
|
provider: String!
|
|
|
|
provider: String!
|
|
|
|
providerId: String
|
|
|
|
providerId: String
|
|
|
|