diff --git a/ihp-ide/IHP/IDE/SchemaDesigner/View/Layout.hs b/ihp-ide/IHP/IDE/SchemaDesigner/View/Layout.hs
index 2105f17cc..5f955a134 100644
--- a/ihp-ide/IHP/IDE/SchemaDesigner/View/Layout.hs
+++ b/ihp-ide/IHP/IDE/SchemaDesigner/View/Layout.hs
@@ -222,6 +222,11 @@ renderColumnSelector tableName columns statements = [hsx|
{forEach columns (\column -> renderColumn (snd column) (fst column) tableName statements)}
+
+
+ Inherits: {inherits}
+
+
{suggestedColumnsSection tableName columns}
{auth}
@@ -251,6 +256,16 @@ renderColumnSelector tableName columns statements = [hsx|
auth :: Html
auth = renderPolicies tableName statements
+ inherits = statements
+ |> find (\case
+ StatementCreateTable CreateTable { name } | name == tableName -> True
+ _ -> False)
+ -- Get the table that this table inherits from
+ |> \case
+ Just (StatementCreateTable CreateTable { inherits }) -> inherits
+ _ -> Nothing
+
+
suggestedColumnsSection :: Text -> [(Int, Column)] -> Html
suggestedColumnsSection tableName indexAndColumns = unless isUsersTable [hsx|