moving dataconnect to dev
This commit is contained in:
18
backend/dataconnect/schema/course.gql
Normal file
18
backend/dataconnect/schema/course.gql
Normal file
@@ -0,0 +1,18 @@
|
||||
type Course @table(name: "courses") {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
|
||||
title: String
|
||||
description: String
|
||||
thumbnailUrl: String
|
||||
durationMinutes: Int
|
||||
xpReward: Int
|
||||
categoryId: UUID!
|
||||
category: Category! @ref(fields: "categoryId", references: "id")
|
||||
|
||||
levelRequired: String
|
||||
isCertification: Boolean
|
||||
|
||||
createdAt: Timestamp @default(expr: "request.time")
|
||||
updatedAt: Timestamp @default(expr: "request.time")
|
||||
createdBy: String
|
||||
}
|
||||
Reference in New Issue
Block a user