{
    "Castpubs": {
        "type": "Database",
        "childrens": {
            "Castpubs.dbo": {
                "type": "Schema",
                "childrens": {
                    "Castpubs.dbo.totalsales_trig": {
                        "type": "Trigger"
                    },
                    "Castpubs.dbo.on_delete_authors": {
                        "type": "Trigger"
                    },
                    "Castpubs.dbo.GetAuthors": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.I_Invoice_Line": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.sp_helpdiagrams": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.FK__salesdetail__5535A963": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.GetTitleAuthors": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.FK__discounts__stor___5AEE82B9": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.discounts": {
                        "type": "Table",
                        "childrens": [
                            {
                                "Castpubs.dbo.discounts.discounts_1481955782": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            }
                        ]
                    },
                    "Castpubs.dbo.U_Stock": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.FK__Stock_Lin__stor___571DF1D5": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.CreateNewOrders": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.DeliverOrderLine": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.GetAllSales": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.DeliverOrder": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.FK__titleauth__au_id__534D60F1": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.DeleteAllInvoice": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.sp_alterdiagram": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.I_Invoice": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.FK__roysched__title___59FA5E80": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.CreateSale": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.stores": {
                        "type": "Table",
                        "childrens": [
                            {
                                "Castpubs.dbo.stores.pk_stores": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            }
                        ]
                    },
                    "Castpubs.dbo.FK__titleauth__title__5441852A": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.discount_proc": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.roysched": {
                        "type": "Table"
                    },
                    "Castpubs.dbo.titleauthor": {
                        "type": "Table"
                    },
                    "Castpubs.dbo.Stock": {
                        "type": "Table",
                        "childrens": [
                            {
                                "Castpubs.dbo.Stock.pk_stock": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            }
                        ]
                    },
                    "Castpubs.dbo.title_proc": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.insert_sales_proc": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.storeid_proc": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.salesdetail": {
                        "type": "Table"
                    },
                    "Castpubs.dbo.titleid_proc": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.MYRF": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.FK__Stock_Lin__title__5812160E": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.E_Stock": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.sp_helpdiagramdefinition": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.sp_creatediagram": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.D_Invoice_Line": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.deltitle": {
                        "type": "Trigger"
                    },
                    "Castpubs.dbo.CreateNewOrderLine": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.updtitles": {
                        "type": "Trigger"
                    },
                    "Castpubs.dbo.sp_upgraddiagrams": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.CallCreateSale": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.SalesManagement": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.I_Order_Line": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.Invoice_Line_titles": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.Invoice_Line_Invoice": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.NewCreateSale": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.sales": {
                        "type": "Table",
                        "childrens": [
                            {
                                "Castpubs.dbo.sales.pk_sales": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            }
                        ]
                    },
                    "Castpubs.dbo.CreateNewInvoice": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.CreateNewInvoiceLines": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.Invoice_Line": {
                        "type": "Table"
                    },
                    "Castpubs.dbo.DeleteAllOrders": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.Invoice_sales": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.Order_Line_Order": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.Order_Line_titles": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.sp_renamediagram": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.sp_dropdiagram": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.MYRF2": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.CreateOrdersInvoice": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.PS_BO_REL_TYPE": {
                        "type": "Table"
                    },
                    "Castpubs.dbo.authors": {
                        "type": "Table",
                        "childrens": [
                            {
                                "Castpubs.dbo.authors.auidind": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            }
                        ]
                    },
                    "Castpubs.dbo.PS_BO_REL_CAT_ITEM": {
                        "type": "Table"
                    },
                    "Castpubs.dbo.FK__Stock__stor_id__5629CD9C": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.I_Stock": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.insert_salesdetail_proc": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.Stock_Line": {
                        "type": "Table",
                        "childrens": [
                            {
                                "Castpubs.dbo.Stock_Line.pk_stock_line": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            }
                        ]
                    },
                    "Castpubs.dbo.history_proc": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.FK__titles__pub_id__59063A47": {
                        "type": "ForeignKey"
                    },
                    "Castpubs.dbo.Invoice": {
                        "type": "Table",
                        "childrens": [
                            {
                                "Castpubs.dbo.Invoice.pk_invoice": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            }
                        ]
                    },
                    "Castpubs.dbo.Orders": {
                        "type": "Table",
                        "childrens": [
                            {
                                "Castpubs.dbo.Orders.pk_orders": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            }
                        ]
                    },
                    "Castpubs.dbo.I_Orders": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.I_Stock_Line": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.titles": {
                        "type": "Table",
                        "childrens": [
                            {
                                "Castpubs.dbo.titles.pk_titles": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            }
                        ]
                    },
                    "Castpubs.dbo.publishers": {
                        "type": "Table",
                        "childrens": [
                            {
                                "Castpubs.dbo.publishers.pk_publishers": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            }
                        ]
                    },
                    "Castpubs.dbo.Order_Line": {
                        "type": "Table"
                    },
                    "Castpubs.dbo.storename_proc": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.byroyalty": {
                        "type": "Procedure"
                    },
                    "Castpubs.dbo.sysdiagrams": {
                        "type": "Table",
                        "childrens": [
                            {
                                "Castpubs.dbo.sysdiagrams.uk_principal_name": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            },
                            {
                                "Castpubs.dbo.sysdiagrams.pk__sysdiagr__c2b05b615aee82b9": [
                                    {
                                        "type": "UniqueConstraint"
                                    }
                                ]
                            }
                        ]
                    }
                }
            }
        }
    }
}