Public facing projects showcase, individual project details not done yet
This commit is contained in:
2
api/db/migrations/20240929164343_/migration.sql
Normal file
2
api/db/migrations/20240929164343_/migration.sql
Normal file
@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Project" ALTER COLUMN "images" SET DEFAULT ARRAY[]::TEXT[];
|
@ -69,7 +69,7 @@ model Project {
|
||||
id Int @id @default(autoincrement())
|
||||
title String
|
||||
description String @default("No description provided")
|
||||
images String[]
|
||||
images String[] @default([])
|
||||
date DateTime
|
||||
links String[] @default([])
|
||||
tags Tag[]
|
||||
|
@ -10,8 +10,8 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Query {
|
||||
projects: [Project!]! @requireAuth
|
||||
project(id: Int!): Project @requireAuth
|
||||
projects: [Project!]! @skipAuth
|
||||
project(id: Int!): Project @skipAuth
|
||||
}
|
||||
|
||||
input CreateProjectInput {
|
||||
|
@ -7,8 +7,8 @@ export const schema = gql`
|
||||
}
|
||||
|
||||
type Query {
|
||||
tags: [Tag!]! @requireAuth
|
||||
tag(id: Int!): Tag @requireAuth
|
||||
tags: [Tag!]! @skipAuth
|
||||
tag(id: Int!): Tag @skipAuth
|
||||
}
|
||||
|
||||
input CreateTagInput {
|
||||
|
Reference in New Issue
Block a user