New: Hero Page und Navigation
This commit is contained in:
36
api/src/graphql/identities.sdl.ts
Normal file
36
api/src/graphql/identities.sdl.ts
Normal file
@ -0,0 +1,36 @@
|
||||
export const schema = gql`
|
||||
type Identity {
|
||||
id: Int!
|
||||
provider: String!
|
||||
# uid: String!
|
||||
userId: Int!
|
||||
user: User!
|
||||
# accessToken: String
|
||||
# scope: String
|
||||
lastLoginAt: DateTime!
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime!
|
||||
}
|
||||
|
||||
type Query {
|
||||
identities: [Identity!]! @requireAuth
|
||||
}
|
||||
|
||||
input CreateIdentityInput {
|
||||
provider: String!
|
||||
uid: String!
|
||||
userId: Int!
|
||||
accessToken: String
|
||||
scope: String
|
||||
lastLoginAt: DateTime!
|
||||
}
|
||||
|
||||
input UpdateIdentityInput {
|
||||
provider: String
|
||||
uid: String
|
||||
userId: Int
|
||||
accessToken: String
|
||||
scope: String
|
||||
lastLoginAt: DateTime
|
||||
}
|
||||
`
|
||||
37
api/src/graphql/nachhilfeangebots.sdl.ts
Normal file
37
api/src/graphql/nachhilfeangebots.sdl.ts
Normal file
@ -0,0 +1,37 @@
|
||||
export const schema = gql`
|
||||
type Nachhilfeangebot {
|
||||
id: Int!
|
||||
subject: String!
|
||||
currentClass: String!
|
||||
cost: Float!
|
||||
user: User!
|
||||
}
|
||||
|
||||
type Query {
|
||||
nachhilfeangebots: [Nachhilfeangebot!]! @requireAuth
|
||||
nachhilfeangebot(id: Int!): Nachhilfeangebot @requireAuth
|
||||
}
|
||||
|
||||
input CreateNachhilfeangebotInput {
|
||||
subject: String!
|
||||
currentClass: String!
|
||||
cost: Float!
|
||||
}
|
||||
|
||||
input UpdateNachhilfeangebotInput {
|
||||
subject: String
|
||||
currentClass: String
|
||||
cost: Float
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
createNachhilfeangebot(
|
||||
input: CreateNachhilfeangebotInput!
|
||||
): Nachhilfeangebot! @requireAuth
|
||||
updateNachhilfeangebot(
|
||||
id: Int!
|
||||
input: UpdateNachhilfeangebotInput!
|
||||
): Nachhilfeangebot! @requireAuth
|
||||
deleteNachhilfeangebot(id: Int!): Nachhilfeangebot! @requireAuth
|
||||
}
|
||||
`
|
||||
43
api/src/graphql/users.sdl.ts
Normal file
43
api/src/graphql/users.sdl.ts
Normal file
@ -0,0 +1,43 @@
|
||||
export const schema = gql`
|
||||
type User {
|
||||
id: Int!
|
||||
email: String!
|
||||
firstName: String
|
||||
lastName: String
|
||||
# hashedPassword: String
|
||||
# salt: String
|
||||
# resetToken: String
|
||||
# resetTokenExpiresAt: DateTime
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime!
|
||||
roles: String!
|
||||
identites: [Identity]!
|
||||
Nachhilfeangebot: [Nachhilfeangebot]!
|
||||
}
|
||||
|
||||
type Query {
|
||||
users: [User!]! @requireAuth
|
||||
}
|
||||
|
||||
input CreateUserInput {
|
||||
email: String!
|
||||
firstName: String
|
||||
lastName: String
|
||||
hashedPassword: String
|
||||
salt: String
|
||||
resetToken: String
|
||||
resetTokenExpiresAt: DateTime
|
||||
roles: String!
|
||||
}
|
||||
|
||||
input UpdateUserInput {
|
||||
email: String
|
||||
firstName: String
|
||||
lastName: String
|
||||
hashedPassword: String
|
||||
salt: String
|
||||
resetToken: String
|
||||
resetTokenExpiresAt: DateTime
|
||||
roles: String
|
||||
}
|
||||
`
|
||||
Reference in New Issue
Block a user