Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Use int64 (bigint) data type for date time #12

Merged
merged 1 commit into from
Nov 25, 2022
Merged

Conversation

riflowth
Copy link
Member

Description

Change database schema (Prisma schema) DateTime data type to BigInt or int 64

What

Change database schema that matches with gRPC proto

Why

If we use DateTime in the database schema, we will have a type that refers to the DateTime fields generated from Prisma. And have a duplicated one in gRPC api-types package that uses int64 or number in TS type.

How

We just change the database datetime-related fields to bigint as same as gRPC proto

Todo list (if applicable)

  • Open my computer
  • Change proto package
  • Change Prisma schema

Checklist

  • Drink juicy beverage when coding ☕️
  • Explained the purpose of this PR
  • Tested on Local machine and verified that there're no visible errors
  • Tested on Staging server and verified that there're no visible errors

@riflowth riflowth added this to the v1.0.0-alpha milestone Nov 25, 2022
@riflowth riflowth self-assigned this Nov 25, 2022
@riflowth riflowth merged commit d7b0b85 into main Nov 25, 2022
@riflowth riflowth deleted the refactor/api-types branch November 25, 2022 08:29
riflowth added a commit that referenced this pull request Nov 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant