Sean Templeton
09/16/2022, 5:45 PMgroupBy
call. Currently I have this:
prismaMock.fitment.groupBy.mockResolvedValue([
{ year: '2020', make: 'Ford', model: 'F-150', sub_model: null },
]);
Austin
09/27/2022, 10:01 PMSean Templeton
09/29/2022, 7:58 PMcreate table fitment
(
id serial primary key,
created timestamp default now() not null,
modified timestamp default now() not null,
year text not null,
make text not null,
model text not null,
sub_model text not null,
);
Austin
09/29/2022, 10:00 PMSean Templeton
09/30/2022, 3:24 PMgenerate
command or something like that to get a client, but I don't have any prisma file in my repo as far as I can see.Austin
09/30/2022, 8:11 PMschema.prisma
file in your project somewhere, I think. Are you using Prisma successfully in your actual application code?Vladi Stevanovic
Sean Templeton
10/03/2022, 2:52 PMschema.prisma
file, and yes, i have it working successfully in code (and in test). It just shows a typescript error for the testAustin
10/03/2022, 6:44 PMschema.prisma
file somewhere 🤔.Sean Templeton
10/18/2022, 6:17 PMNurul
10/19/2022, 12:57 PMnpx prisma db pull
command in your project? this should introspect your database and create a schema.prisma
file for you.Sean Templeton
10/26/2022, 9:39 PMmodel fitment {
id Int @id @default(autoincrement())
created DateTime @default(now()) @db.Timestamp(6)
modified DateTime @default(now()) @db.Timestamp(6)
available Boolean
sku String
vendor String
comment String
year String
make String
model String
sub_model String
part_number String
row String
seat_description String
amazon_description String
diagram String
tip_1_title String @default("")
tip_1_description String @default("")
tip_1_image String @default("")
tip_2_title String @default("")
tip_2_description String @default("")
tip_2_image String @default("")
evox_vif String @default("")
sort_by Int @default(0)
legacy_id Int?
questions Json @default("[]") @db.Json
addons String[] @default([])
analytics_count analytics_count[]
}