From 873987793b05fc0d6e9908f5030b2bca145c4e6d Mon Sep 17 00:00:00 2001
From: Karen Arutyunov <karen@codesynthesis.com>
Date: Sun, 28 Oct 2018 01:01:53 +0300
Subject: Add tenant object

---
 libbrep/build-extra.sql | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'libbrep/build-extra.sql')

diff --git a/libbrep/build-extra.sql b/libbrep/build-extra.sql
index 35ba361..6c0d6ef 100644
--- a/libbrep/build-extra.sql
+++ b/libbrep/build-extra.sql
@@ -12,6 +12,16 @@ DROP FOREIGN TABLE IF EXISTS build_package;
 
 DROP FOREIGN TABLE IF EXISTS build_repository;
 
+DROP FOREIGN TABLE IF EXISTS build_tenant;
+
+-- The foreign table for build_tenant object.
+--
+--
+CREATE FOREIGN TABLE build_tenant (
+  id TEXT NOT NULL,
+  archived BOOLEAN NOT NULL)
+SERVER package_server OPTIONS (table_name 'tenant');
+
 -- The foreign table for build_repository object.
 --
 --
-- 
cgit v1.1

