pocketbase icon indicating copy to clipboard operation
pocketbase copied to clipboard

foreign key

Open edelah opened this issue 4 years ago • 1 comments

I created, on a collection, a field as a "relation" as it is called in the admin panel. When I look at the schema of the table, I was expected the field and a foreign key to be created, but the foreign key is not created. Is it expected?

edelah avatar Aug 31 '22 06:08 edelah

Yes, this is expected. The relation is maintained only on application level because it is dynamic (eg. it is allowed to change the collection reference after the field creation).

ganigeorgiev avatar Aug 31 '22 06:08 ganigeorgiev