refactor: remove training property description, add svgIconURL, drop old migration and create new
- since app was not deployed yet, i deleted the migration to keep them clean
This commit is contained in:
parent
f731dd6bcb
commit
be651d1b9f
5 changed files with 37 additions and 7 deletions
|
|
@ -2,14 +2,44 @@
|
|||
id: s448cmvx05lra5mjyu35fdtd # generated via /scripts/cuid.mjs
|
||||
name: Terraform
|
||||
slug: terraform
|
||||
description: TODO
|
||||
days: 1
|
||||
weight: 1
|
||||
draft: false
|
||||
logoURL: https://example.com/logo.png
|
||||
svgIconURL: https://example.com/icon.svg
|
||||
repositoryURL: https://github.com/vojtechmares/terraform-training
|
||||
priceOpen: 5900
|
||||
priceCorporate: 24000
|
||||
---
|
||||
|
||||
TODO
|
||||
# TODO
|
||||
|
||||
TEST ME
|
||||
|
||||
# DOES IT WORK?
|
||||
|
||||
LOOKS LIKE IT DOES!
|
||||
|
||||
# LETS CHECK OUT LISTS
|
||||
|
||||
- A
|
||||
- B
|
||||
|
||||
# AND WHAT ABOUT OTHER STUFF?
|
||||
|
||||
- **STRONG**
|
||||
- *ITALIC*
|
||||
- [Link](https://google.com/)
|
||||
|
||||
## NESTED
|
||||
|
||||
### HEADINGS
|
||||
|
||||
OK WORK
|
||||
|
||||
> blockquote
|
||||
|
||||
```yaml
|
||||
code:
|
||||
block: true
|
||||
```
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ type Training = {
|
|||
id: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
description: string;
|
||||
days: number;
|
||||
weight: number;
|
||||
draft?: boolean;
|
||||
logoURL?: string;
|
||||
svgIconURL?: string;
|
||||
repositoryURL?: string;
|
||||
priceOpen: number;
|
||||
priceCorporate: number;
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ CREATE TABLE "Training" (
|
|||
"id" TEXT NOT NULL,
|
||||
"name" TEXT NOT NULL,
|
||||
"slug" TEXT NOT NULL,
|
||||
"description" TEXT,
|
||||
"days" INTEGER NOT NULL,
|
||||
"weight" INTEGER NOT NULL,
|
||||
"draft" BOOLEAN NOT NULL DEFAULT true,
|
||||
"logoURL" TEXT,
|
||||
"svgIconURL" TEXT,
|
||||
"repositoryURL" TEXT,
|
||||
"priceOpen" INTEGER NOT NULL,
|
||||
"priceCorporate" INTEGER NOT NULL,
|
||||
|
|
@ -19,11 +19,11 @@ model Training {
|
|||
id String @id @default(cuid())
|
||||
name String
|
||||
slug String @unique
|
||||
description String?
|
||||
days Int
|
||||
weight Int
|
||||
draft Boolean @default(true)
|
||||
logoURL String?
|
||||
svgIconURL String?
|
||||
repositoryURL String?
|
||||
priceOpen Int
|
||||
priceCorporate Int
|
||||
|
|
|
|||
|
|
@ -13,11 +13,11 @@ async function seed() {
|
|||
id: training.metadata.id ,
|
||||
name: training.metadata.name,
|
||||
slug: training.metadata.slug,
|
||||
description: training.metadata.description,
|
||||
days: training.metadata.days,
|
||||
weight: training.metadata.weight,
|
||||
draft: training.metadata.draft,
|
||||
logoURL: training.metadata.logoURL,
|
||||
svgIconURL: training.metadata.svgIconURL,
|
||||
repositoryURL: training.metadata.repositoryURL,
|
||||
priceOpen: training.metadata.priceOpen,
|
||||
priceCorporate: training.metadata.priceCorporate,
|
||||
|
|
@ -27,11 +27,11 @@ async function seed() {
|
|||
id: training.metadata.id ,
|
||||
name: training.metadata.name,
|
||||
slug: training.metadata.slug,
|
||||
description: training.metadata.description,
|
||||
days: training.metadata.days,
|
||||
weight: training.metadata.weight,
|
||||
draft: training.metadata.draft,
|
||||
logoURL: training.metadata.logoURL,
|
||||
svgIconURL: training.metadata.svgIconURL,
|
||||
repositoryURL: training.metadata.repositoryURL,
|
||||
priceOpen: training.metadata.priceOpen,
|
||||
priceCorporate: training.metadata.priceCorporate,
|
||||
|
|
|
|||
Reference in a new issue