diff --git a/db/03-default-users.sql b/db/03-default-users.sql index 835f918..501796b 100644 --- a/db/03-default-users.sql +++ b/db/03-default-users.sql @@ -19,7 +19,10 @@ VALUES '$argon2id$v=19$m=65536,t=4,p=1$YmxWaHpqaHRsU1dmZHFUOA$k8veR56hGcoTsciZGVYv/NuPJSyQ3wgzSTyryW/ynto', 1); --- Grant admin user superuser ACL (acl_id=1 from the acl seed data) -INSERT INTO `user_to_acl` (`user_to_acl_user_id`, `user_to_acl_acl_id`) VALUES +-- Grant admin user superuser ACL (acl_id=1 from the acl seed data). +-- NOTE: user_to_acl is one of the join tables in the schema that does NOT +-- follow the tablename_fieldname column convention — its columns are the +-- plain `user_id` and `acl_id`. +INSERT INTO `user_to_acl` (`user_id`, `acl_id`) VALUES (1, 1), -- admin → superuser (2, 3); -- testuser → user