mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-04 09:45:21 +03:00
40 lines
828 B
JavaScript
40 lines
828 B
JavaScript
|
app hackathonBetaSubmissions {
|
||
|
wasp: {
|
||
|
version: "^0.7.0"
|
||
|
},
|
||
|
db: {
|
||
|
system: PostgreSQL
|
||
|
},
|
||
|
title: "hackathon-beta-submissions",
|
||
|
dependencies: [
|
||
|
("react-feather", "2.0.10"),
|
||
|
]
|
||
|
}
|
||
|
|
||
|
entity Submission {=psl
|
||
|
name String @id @unique
|
||
|
email String @unique
|
||
|
github String
|
||
|
description String
|
||
|
twitter String?
|
||
|
country String?
|
||
|
website String?
|
||
|
image String?
|
||
|
approved Boolean @default(false)
|
||
|
createdAt DateTime @default(now())
|
||
|
psl=}
|
||
|
|
||
|
route RootRoute { path: "/", to: MainPage }
|
||
|
page MainPage {
|
||
|
component: import Main from "@client/MainPage"
|
||
|
}
|
||
|
|
||
|
action submitProject {
|
||
|
fn: import { submitProject } from "@server/actions.js",
|
||
|
entities: [Submission]
|
||
|
}
|
||
|
|
||
|
query getProjects {
|
||
|
fn: import { getProjects } from "@server/queries.js",
|
||
|
entities: [Submission]
|
||
|
}
|