Add restaurant_bookings app seed + internal PATCH endpoint for Hosted Tables integration
Seeds restaurant_bookings as inactive (active=false) so it stays hidden until the settings service configures the Hosted Tables URL. Adds PATCH /api/auth/internal/apps/:slug so settings can update base_path and active without auth restarts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
104d997824
commit
0cd9a34cf0
2 changed files with 27 additions and 0 deletions
|
|
@ -138,6 +138,14 @@ export async function initDb() {
|
|||
internal_port = EXCLUDED.internal_port
|
||||
`)
|
||||
|
||||
// Seed restaurant_bookings app — inactive until settings configures the Hosted Tables URL.
|
||||
// ON CONFLICT DO NOTHING so restarts never reset base_path/active managed by settings.
|
||||
await pool.query(`
|
||||
INSERT INTO apps (slug, name, description, base_path, icon, theme_color, category, active)
|
||||
VALUES ('restaurant_bookings', 'Table Bookings', 'Hosted table reservation system', '/bookings', 'UtensilsCrossed', '#1a1a2e', 'Restaurant', FALSE)
|
||||
ON CONFLICT (slug) DO NOTHING
|
||||
`)
|
||||
|
||||
// Seed default Staff role
|
||||
await pool.query(`
|
||||
INSERT INTO roles (name, slug, description, is_default)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue