Ethanxyz
05/22/2023, 6:27 PMRazoth
05/22/2023, 7:31 PMArjunXD
05/23/2023, 8:32 AMnaz
05/23/2023, 10:09 AMsilentworks
05/23/2023, 2:17 PMgaryaustin
05/23/2023, 10:45 PMhttps://cdn.discordapp.com/attachments/839993398554656831/1110700140714545293/image.png▾
ArjunXD
05/24/2023, 3:21 PMdrilkmops
05/24/2023, 8:10 PMuser
model is the public schema, the users
model is the auth schema.
model user {
// This user id is from the auth schema, not the public schema.
user users @relation(fields: [id], references: [id])
id String @id @db.Uuid
email String
first_name String
last_name String
// ## Defined Relationships
// ...removed
@@schema("public")
}
Jinni
05/25/2023, 2:32 AMJinni
05/25/2023, 2:49 AM<hmmhmmhm/>
05/25/2023, 2:50 AMJinni
05/25/2023, 2:51 AM<hmmhmmhm/>
05/25/2023, 2:53 AM<hmmhmmhm/>
05/25/2023, 2:54 AM<hmmhmmhm/>
05/25/2023, 2:55 AM<hmmhmmhm/>
05/25/2023, 2:56 AM<hmmhmmhm/>
05/25/2023, 2:57 AMhttps://cdn.discordapp.com/attachments/839993398554656831/1111125855658324018/image.png▾
<hmmhmmhm/>
05/25/2023, 2:57 AM<hmmhmmhm/>
05/25/2023, 2:58 AMhttps://cdn.discordapp.com/attachments/839993398554656831/1111126097015345162/image.png▾
Jinni
05/25/2023, 2:58 AMJinni
05/25/2023, 2:59 AMhttps://cdn.discordapp.com/attachments/839993398554656831/1111126274056921228/image.png▾
Jinni
05/25/2023, 2:59 AM<hmmhmmhm/>
05/25/2023, 3:01 AM<hmmhmmhm/>
05/25/2023, 3:01 AMJinni
05/25/2023, 3:03 AMCREATE POLICY "test" ON "public"."profiles"
AS PERMISSIVE FOR SELECT
TO public
USING (boolean as $$ function createPolicy(cb) { cb({ row: globalThis, function: globalThis, auth: globalThis.auth, plv8: globalThis.plv8 }); } return createPolicy(function(context) { return true; }); $$ language plv8;)
https://cdn.discordapp.com/attachments/839993398554656831/1111127400726679622/image.png▾
Jinni
05/25/2023, 3:05 AMgaryaustin
05/25/2023, 3:05 AM<hmmhmmhm/>
05/25/2023, 3:05 AMJinni
05/25/2023, 3:05 AM<hmmhmmhm/>
05/25/2023, 3:06 AM