Skip to content

Commit

Permalink
docs: embed video on mapping fields on YT (#5380)
Browse files Browse the repository at this point in the history
* docs: embed video on mapping fields on YT

* add missing div
  • Loading branch information
ruheni authored Oct 15, 2023
1 parent f32b2c4 commit 5137af3
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,19 @@ With this model definition, Prisma automatically maps the `Comment` model to the
`@map` and `@@map` allow you to [tune the shape of your Prisma Client API](/concepts/components/prisma-client/working-with-prismaclient/use-custom-model-and-field-names#using-map-and-map-to-rename-fields-and-models-in-the-prisma-client-api) by decoupling model and field names from table and column names in the underlying database.

<div class="videoWrapper">

<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/oaZkHJiRFWw"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>

</div>

## Defining fields

The properties of a model are called _fields_, which consist of:
Expand Down

1 comment on commit 5137af3

@vercel
Copy link

@vercel vercel bot commented on 5137af3 Oct 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

docs-git-main-prisma.vercel.app
docs-prisma.vercel.app
prisma2-docs.vercel.app

Please sign in to comment.