Paulo Neves
12/05/2020, 9:43 PMcursor
that has always the same value as the column id
. I think that somewhere in the past I saw here in prisma slack someone doing that, but I can't see how I can do it with postgres. Anyone knows?
It's like a view column.Ryan
12/07/2020, 8:08 AMgenerated
 identifier for this to make sure all values are same 🙂
Something like :
create table "user" (
"id" serial primary key,
"cursor" int generated always as ("id") stored
);
Paulo Neves
12/07/2020, 8:56 PMRyan
12/08/2020, 5:23 AMPaulo Neves
12/08/2020, 4:24 PMPaulo Neves
12/08/2020, 9:22 PMPaulo Neves
12/09/2020, 12:20 AMRyan
12/09/2020, 7:37 AMPaulo Neves
12/10/2020, 10:11 AM