Prisma.io
QuickstartDocsFAQCommunityBlogGitHub
QuickstartDocsFAQCommunityBlogGitHub
Getting StartedConceptsGuidesReferenceSupportAbout
Prisma 1 Docs   
Docs
    • Guides
      • Prisma guides
        • Transactions
        • Add Prisma Migrate to an existing project
        • Seeding your database with Prisma Client
      • Deployment Guides
        • Deploying to Heroku
        • Deploying to Vercel (ZEIT Now)
        • Deploying to AWS Lambda
        • Deploying to Netlify
      • Upgrade Guides
        • Upgrade from Prisma 1
        • Upgrade from Graphcool
      • Migrate to Prisma
        • Migrate from TypeORM
        • Migrate from Sequelize
      • General Guides
        • Database workflows
          • Unique constraints
          • Foreign keys
          • Cascading deletes
          • Data validation
          • SQL views
Guides / General Guides

Database workflows

This section includes end-to-end guides for common database workflow such as configuring constraints or cascading deletes.

database setup illustration

In this section

  • Unique constraints
    • Unique constraints and indexes (PostgreSQL)
    • Unique constraints and indexes (MySQL)
    • Unique constraints and indexes (SQLite)
  • Foreign keys
    • Foreign keys / Relations (PostgreSQL)
    • Foreign keys / Relations (MySQL)
    • Foreign keys / Relations (SQLite)
  • Cascading deletes
    • Cascading deletes (PostgreSQL)
    • Cascading deletes (MySQL)
    • Cascading deletes (SQLite)
  • Data validation
    • Data validation with CHECK constraints (PostgreSQL)
  • SQL views

Was this helpful?

Edit this page on GitHub
Prisma Logo

Products

Prisma ClientPrisma 1 CloudProduct Roadmap

Resources

DocsGet StartedAPI ReferenceExamplesHow to GraphQLData Guide

Prisma With

Prisma with Next.jsPrisma with GraphQLPrisma with ApolloPrisma with NestJSPrisma with ExpressPrisma with hapi

Community

Meet the CommunitySlackGitHubDiscussionsGraphQL MeetupTypeScript MeetupAdvanced TypeScript Trickery

Company

AboutJobs We're hiring!CausesBlogTerms & PrivacyHTML Sitemap

Newsletter

Stay up to date with the latest features and changes to Prisma

Find Us

Find us on TwitterFind us on YouTubeJoin us on SlackFind us on GitHub

Prisma © 2018-2021.

Made with ❤️ in Berlin and worldwide