Prisma vs Drizzle: Using Prisma and Drizzle Migrate

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 7

  • @sagar7929
    @sagar7929 Месяц назад

    can you guide on the time field?
    I need a time field in schema.prisma , so how can I use that time as in prisma schema and what would be the type for time field in dto?
    thank you

    • @holodeck_run
      @holodeck_run  Месяц назад

      you need strictly a field to represent a clock time or would a DateTime work?

    • @sagar7929
      @sagar7929 Месяц назад

      @@holodeck_run can possible to share a short tutorial on this?
      time should be store in db as 5:30 or 8:12 and also we are doing calculation it if required.

    • @sagar7929
      @sagar7929 Месяц назад

      @@holodeck_run another question, how we do audit trail/log using nodejs prisma

    • @holodeck_run
      @holodeck_run  Месяц назад

      @@sagar7929 will add it to the list!

    • @holodeck_run
      @holodeck_run  Месяц назад

      @@sagar7929 you can get logs from your Prisma instance and dump them to a log drain www.prisma.io/docs/orm/prisma-client/observability-and-logging/logging