Public facing projects showcase, individual project details not done yet

This commit is contained in:
Ahmed Al-Taiar
2024-09-29 15:38:26 -04:00
parent 38168db452
commit 9c0dee7d54
20 changed files with 287 additions and 38 deletions

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Project" ALTER COLUMN "images" SET DEFAULT ARRAY[]::TEXT[];

View File

@ -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[]

View File

@ -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 {

View File

@ -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 {