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
|
id: s448cmvx05lra5mjyu35fdtd # generated via /scripts/cuid.mjs
|
||||||
name: Terraform
|
name: Terraform
|
||||||
slug: terraform
|
slug: terraform
|
||||||
description: TODO
|
|
||||||
days: 1
|
days: 1
|
||||||
weight: 1
|
weight: 1
|
||||||
draft: false
|
draft: false
|
||||||
logoURL: https://example.com/logo.png
|
logoURL: https://example.com/logo.png
|
||||||
|
svgIconURL: https://example.com/icon.svg
|
||||||
repositoryURL: https://github.com/vojtechmares/terraform-training
|
repositoryURL: https://github.com/vojtechmares/terraform-training
|
||||||
priceOpen: 5900
|
priceOpen: 5900
|
||||||
priceCorporate: 24000
|
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;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
description: string;
|
|
||||||
days: number;
|
days: number;
|
||||||
weight: number;
|
weight: number;
|
||||||
draft?: boolean;
|
draft?: boolean;
|
||||||
logoURL?: string;
|
logoURL?: string;
|
||||||
|
svgIconURL?: string;
|
||||||
repositoryURL?: string;
|
repositoryURL?: string;
|
||||||
priceOpen: number;
|
priceOpen: number;
|
||||||
priceCorporate: number;
|
priceCorporate: number;
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@ CREATE TABLE "Training" (
|
||||||
"id" TEXT NOT NULL,
|
"id" TEXT NOT NULL,
|
||||||
"name" TEXT NOT NULL,
|
"name" TEXT NOT NULL,
|
||||||
"slug" TEXT NOT NULL,
|
"slug" TEXT NOT NULL,
|
||||||
"description" TEXT,
|
|
||||||
"days" INTEGER NOT NULL,
|
"days" INTEGER NOT NULL,
|
||||||
"weight" INTEGER NOT NULL,
|
"weight" INTEGER NOT NULL,
|
||||||
"draft" BOOLEAN NOT NULL DEFAULT true,
|
"draft" BOOLEAN NOT NULL DEFAULT true,
|
||||||
"logoURL" TEXT,
|
"logoURL" TEXT,
|
||||||
|
"svgIconURL" TEXT,
|
||||||
"repositoryURL" TEXT,
|
"repositoryURL" TEXT,
|
||||||
"priceOpen" INTEGER NOT NULL,
|
"priceOpen" INTEGER NOT NULL,
|
||||||
"priceCorporate" INTEGER NOT NULL,
|
"priceCorporate" INTEGER NOT NULL,
|
||||||
|
|
@ -19,11 +19,11 @@ model Training {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
name String
|
name String
|
||||||
slug String @unique
|
slug String @unique
|
||||||
description String?
|
|
||||||
days Int
|
days Int
|
||||||
weight Int
|
weight Int
|
||||||
draft Boolean @default(true)
|
draft Boolean @default(true)
|
||||||
logoURL String?
|
logoURL String?
|
||||||
|
svgIconURL String?
|
||||||
repositoryURL String?
|
repositoryURL String?
|
||||||
priceOpen Int
|
priceOpen Int
|
||||||
priceCorporate Int
|
priceCorporate Int
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,11 @@ async function seed() {
|
||||||
id: training.metadata.id ,
|
id: training.metadata.id ,
|
||||||
name: training.metadata.name,
|
name: training.metadata.name,
|
||||||
slug: training.metadata.slug,
|
slug: training.metadata.slug,
|
||||||
description: training.metadata.description,
|
|
||||||
days: training.metadata.days,
|
days: training.metadata.days,
|
||||||
weight: training.metadata.weight,
|
weight: training.metadata.weight,
|
||||||
draft: training.metadata.draft,
|
draft: training.metadata.draft,
|
||||||
logoURL: training.metadata.logoURL,
|
logoURL: training.metadata.logoURL,
|
||||||
|
svgIconURL: training.metadata.svgIconURL,
|
||||||
repositoryURL: training.metadata.repositoryURL,
|
repositoryURL: training.metadata.repositoryURL,
|
||||||
priceOpen: training.metadata.priceOpen,
|
priceOpen: training.metadata.priceOpen,
|
||||||
priceCorporate: training.metadata.priceCorporate,
|
priceCorporate: training.metadata.priceCorporate,
|
||||||
|
|
@ -27,11 +27,11 @@ async function seed() {
|
||||||
id: training.metadata.id ,
|
id: training.metadata.id ,
|
||||||
name: training.metadata.name,
|
name: training.metadata.name,
|
||||||
slug: training.metadata.slug,
|
slug: training.metadata.slug,
|
||||||
description: training.metadata.description,
|
|
||||||
days: training.metadata.days,
|
days: training.metadata.days,
|
||||||
weight: training.metadata.weight,
|
weight: training.metadata.weight,
|
||||||
draft: training.metadata.draft,
|
draft: training.metadata.draft,
|
||||||
logoURL: training.metadata.logoURL,
|
logoURL: training.metadata.logoURL,
|
||||||
|
svgIconURL: training.metadata.svgIconURL,
|
||||||
repositoryURL: training.metadata.repositoryURL,
|
repositoryURL: training.metadata.repositoryURL,
|
||||||
priceOpen: training.metadata.priceOpen,
|
priceOpen: training.metadata.priceOpen,
|
||||||
priceCorporate: training.metadata.priceCorporate,
|
priceCorporate: training.metadata.priceCorporate,
|
||||||
|
|
|
||||||
Reference in a new issue