is there any documentation on the difference betwe...
# prisma-whats-new
d
is there any documentation on the difference between
Customer
and
User
? Are they the same?
a
They are both just Types in your schema. The User Type was mostly used for built-in authentication integrations.
d
are `User`s and
Customer
the same, e.g., are they polymorphic?
a
I don't understand what you're asking here
d
I'm in regards to authentication, seems that when you create a project, it comes with `User`s, and then I have an account with graphcool, and that's a
Customer
if I understand it correctly,
Customer
can create projects, models, and `User`s and `Customer`s can (be authorized to ) edit projects?
a
Ah right. No, the
Customer
Type is not part of your project. It is specified in the resolver function context when you use you're master root token (the one you use with
graphcool auth
). You can't use it.
d
so if I create something inside of a project, does it create a user from my customer model?
a
Again, I'm not really sure what information you're looking for.
Users inside your project are not created automatically
d
ok I think I get it. So a good workflow would be to create models, e.g.,
Blog
, and then create a
User
to test with creating entires. The
Customer
is completely unrelated
a
Exactly