IF  EXISTS (SELECT * FROM sys.fn_listextendedproperty(N'MS_Description' , N'SCHEMA',N'dbo', N'TABLE',N'TA_ServiceTaxSetting', N'COLUMN',N'servicetype'))
EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TA_ServiceTaxSetting', @level2type=N'COLUMN',@level2name=N'servicetype'
GO
IF  EXISTS (SELECT * FROM sys.fn_listextendedproperty(N'MS_Description' , N'SCHEMA',N'dbo', N'TABLE',N'GUEST', N'COLUMN',N'LTTYpe'))
EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'GUEST', @level2type=N'COLUMN',@level2name=N'LTTYpe'
GO
IF  EXISTS (SELECT * FROM sys.fn_listextendedproperty(N'MS_Description' , N'SCHEMA',N'dbo', N'TABLE',N'FFItems', N'COLUMN',N'STATUS'))
EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'FFItems', @level2type=N'COLUMN',@level2name=N'STATUS'
GO
IF  EXISTS (SELECT * FROM sys.fn_listextendedproperty(N'MS_Description' , N'SCHEMA',N'dbo', N'TABLE',N'FFHist', N'COLUMN',N'status'))
EXEC sys.sp_dropextendedproperty @name=N'MS_Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'FFHist', @level2type=N'COLUMN',@level2name=N'status'
GO
/****** Object:  Trigger [insertwu]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[insertwu]'))
DROP TRIGGER [dbo].[insertwu]
GO
/****** Object:  Trigger [vougrno]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[vougrno]'))
DROP TRIGGER [dbo].[vougrno]
GO
/****** Object:  Trigger [vou_update]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[vou_update]'))
DROP TRIGGER [dbo].[vou_update]
GO
/****** Object:  Trigger [vou_insert]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[vou_insert]'))
DROP TRIGGER [dbo].[vou_insert]
GO
/****** Object:  Trigger [vou_delete]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[vou_delete]'))
DROP TRIGGER [dbo].[vou_delete]
GO
/****** Object:  Trigger [updltxndt]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[updltxndt]'))
DROP TRIGGER [dbo].[updltxndt]
GO
/****** Object:  Trigger [updatevouhist]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[updatevouhist]'))
DROP TRIGGER [dbo].[updatevouhist]
GO
/****** Object:  Trigger [roomServiceBlobk]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[roomServiceBlobk]'))
DROP TRIGGER [dbo].[roomServiceBlobk]
GO
/****** Object:  Trigger [CashPermission]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[CashPermission]'))
DROP TRIGGER [dbo].[CashPermission]
GO
/****** Object:  Trigger [trg_ins_toutlet]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[trg_ins_toutlet]'))
DROP TRIGGER [dbo].[trg_ins_toutlet]
GO
/****** Object:  Trigger [suppcheck]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[suppcheck]'))
DROP TRIGGER [dbo].[suppcheck]
GO
/****** Object:  Trigger [updstbal]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[updstbal]'))
DROP TRIGGER [dbo].[updstbal]
GO
/****** Object:  Trigger [storeminusbalance]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[storeminusbalance]'))
DROP TRIGGER [dbo].[storeminusbalance]
GO
/****** Object:  Trigger [CHKStoreMaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[CHKStoreMaster]'))
DROP TRIGGER [dbo].[CHKStoreMaster]
GO
/****** Object:  Trigger [tg_updatehctrlno2]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[tg_updatehctrlno2]'))
DROP TRIGGER [dbo].[tg_updatehctrlno2]
GO
/****** Object:  Trigger [stpurinsert]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[stpurinsert]'))
DROP TRIGGER [dbo].[stpurinsert]
GO
/****** Object:  Trigger [StorehistQTY1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[StorehistQTY1]'))
DROP TRIGGER [dbo].[StorehistQTY1]
GO
/****** Object:  Trigger [spstupdate]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[spstupdate]'))
DROP TRIGGER [dbo].[spstupdate]
GO
/****** Object:  Trigger [spstdelete]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[spstdelete]'))
DROP TRIGGER [dbo].[spstdelete]
GO
/****** Object:  Trigger [shminusbalance]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[shminusbalance]'))
DROP TRIGGER [dbo].[shminusbalance]
GO
/****** Object:  Trigger [forltxndtupdate]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[forltxndtupdate]'))
DROP TRIGGER [dbo].[forltxndtupdate]
GO
/****** Object:  Trigger [forltxndtdelete]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[forltxndtdelete]'))
DROP TRIGGER [dbo].[forltxndtdelete]
GO
/****** Object:  Trigger [StockPosting]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[StockPosting]'))
DROP TRIGGER [dbo].[StockPosting]
GO
/****** Object:  Trigger [sptbrs1invalidrooms]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[sptbrs1invalidrooms]'))
DROP TRIGGER [dbo].[sptbrs1invalidrooms]
GO
/****** Object:  Trigger [sptbrs1_update_wingno]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[sptbrs1_update_wingno]'))
DROP TRIGGER [dbo].[sptbrs1_update_wingno]
GO
/****** Object:  Trigger [sptbrs1_del]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[sptbrs1_del]'))
DROP TRIGGER [dbo].[sptbrs1_del]
GO
/****** Object:  Trigger [updatereservation]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[updatereservation]'))
DROP TRIGGER [dbo].[updatereservation]
GO
/****** Object:  Trigger [sptbrsUDI]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[sptbrsUDI]'))
DROP TRIGGER [dbo].[sptbrsUDI]
GO
/****** Object:  Trigger [statusdate]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[statusdate]'))
DROP TRIGGER [dbo].[statusdate]
GO
/****** Object:  Trigger [CI]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[CI]'))
DROP TRIGGER [dbo].[CI]
GO
/****** Object:  Trigger [updateposition]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[updateposition]'))
DROP TRIGGER [dbo].[updateposition]
GO
/****** Object:  Trigger [PHOUTLETINS]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[PHOUTLETINS]'))
DROP TRIGGER [dbo].[PHOUTLETINS]
GO
/****** Object:  Trigger [chkposition]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[chkposition]'))
DROP TRIGGER [dbo].[chkposition]
GO
/****** Object:  Trigger [check_date]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[check_date]'))
DROP TRIGGER [dbo].[check_date]
GO
/****** Object:  Trigger [MBInsert]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[MBInsert]'))
DROP TRIGGER [dbo].[MBInsert]
GO
/****** Object:  Trigger [MizUpdate]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[MizUpdate]'))
DROP TRIGGER [dbo].[MizUpdate]
GO
/****** Object:  Trigger [mizaminus]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[mizaminus]'))
DROP TRIGGER [dbo].[mizaminus]
GO
/****** Object:  Trigger [kitprimeins]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[kitprimeins]'))
DROP TRIGGER [dbo].[kitprimeins]
GO
/****** Object:  Trigger [insertkh1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[insertkh1]'))
DROP TRIGGER [dbo].[insertkh1]
GO
/****** Object:  Trigger [CheckGuest]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[CheckGuest]'))
DROP TRIGGER [dbo].[CheckGuest]
GO
/****** Object:  Trigger [KITINSERT]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[KITINSERT]'))
DROP TRIGGER [dbo].[KITINSERT]
GO
/****** Object:  Trigger [KITHISTDEL]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[KITHISTDEL]'))
DROP TRIGGER [dbo].[KITHISTDEL]
GO
/****** Object:  Trigger [khupdate]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[khupdate]'))
DROP TRIGGER [dbo].[khupdate]
GO
/****** Object:  Trigger [smsdelete]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[smsdelete]'))
DROP TRIGGER [dbo].[smsdelete]
GO
/****** Object:  Trigger [updatecodate]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[updatecodate]'))
DROP TRIGGER [dbo].[updatecodate]
GO
/****** Object:  Trigger [guestcidate]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[guestcidate]'))
DROP TRIGGER [dbo].[guestcidate]
GO
/****** Object:  Trigger [gst_expecteddep]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[gst_expecteddep]'))
DROP TRIGGER [dbo].[gst_expecteddep]
GO
/****** Object:  Trigger [gnewcidate]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[gnewcidate]'))
DROP TRIGGER [dbo].[gnewcidate]
GO
/****** Object:  Trigger [gppinsert]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[gppinsert]'))
DROP TRIGGER [dbo].[gppinsert]
GO
/****** Object:  Trigger [updtbal]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[updtbal]'))
DROP TRIGGER [dbo].[updtbal]
GO
/****** Object:  Trigger [glrpimisert]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[glrpimisert]'))
DROP TRIGGER [dbo].[glrpimisert]
GO
/****** Object:  Trigger [GLPRIMUSERNM]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[GLPRIMUSERNM]'))
DROP TRIGGER [dbo].[GLPRIMUSERNM]
GO
/****** Object:  Trigger [deletecasecade]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[deletecasecade]'))
DROP TRIGGER [dbo].[deletecasecade]
GO
/****** Object:  Trigger [loginupd]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[loginupd]'))
DROP TRIGGER [dbo].[loginupd]
GO
/****** Object:  Trigger [logininsert]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[logininsert]'))
DROP TRIGGER [dbo].[logininsert]
GO
/****** Object:  Trigger [comuserdel]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[comuserdel]'))
DROP TRIGGER [dbo].[comuserdel]
GO
/****** Object:  Trigger [INSCOMPANY]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[INSCOMPANY]'))
DROP TRIGGER [dbo].[INSCOMPANY]
GO
/****** Object:  Trigger [ForCoLogo]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[ForCoLogo]'))
DROP TRIGGER [dbo].[ForCoLogo]
GO
/****** Object:  Trigger [comlogins]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[comlogins]'))
DROP TRIGGER [dbo].[comlogins]
GO
/****** Object:  Trigger [updatechalan]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[updatechalan]'))
DROP TRIGGER [dbo].[updatechalan]
GO
/****** Object:  Trigger [INSERTCHALAN]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[INSERTCHALAN]'))
DROP TRIGGER [dbo].[INSERTCHALAN]
GO
/****** Object:  Trigger [delchal]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[delchal]'))
DROP TRIGGER [dbo].[delchal]
GO
/****** Object:  Trigger [bhinsert]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[bhinsert]'))
DROP TRIGGER [dbo].[bhinsert]
GO
/****** Object:  Trigger [pwinsert]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[pwinsert]'))
DROP TRIGGER [dbo].[pwinsert]
GO
/****** Object:  Trigger [acclog_insert]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.triggers WHERE object_id = OBJECT_ID(N'[dbo].[acclog_insert]'))
DROP TRIGGER [dbo].[acclog_insert]
GO
IF  EXISTS (SELECT * FROM sys.check_constraints WHERE object_id = OBJECT_ID(N'[dbo].[CK_GLPRIMLD_Blank_Description]') AND parent_object_id = OBJECT_ID(N'[dbo].[GLPRIMLD]'))
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [CK_GLPRIMLD_Blank_Description]
GO
IF  EXISTS (SELECT * FROM sys.check_constraints WHERE object_id = OBJECT_ID(N'[dbo].[CK_cashboxuser]') AND parent_object_id = OBJECT_ID(N'[dbo].[cashboxuser]'))
ALTER TABLE [dbo].[cashboxuser] DROP CONSTRAINT [CK_cashboxuser]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_storeitems_storedept]') AND parent_object_id = OBJECT_ID(N'[dbo].[storeitems]'))
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [FK_storeitems_storedept]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_storeitems_store]') AND parent_object_id = OBJECT_ID(N'[dbo].[storeitems]'))
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [FK_storeitems_store]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_RESTCO_COMPANY]') AND parent_object_id = OBJECT_ID(N'[dbo].[RESTCO]'))
ALTER TABLE [dbo].[RESTCO] DROP CONSTRAINT [FK_RESTCO_COMPANY]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_LTTABLE_LTMASTER]') AND parent_object_id = OBJECT_ID(N'[dbo].[LTTABLE]'))
ALTER TABLE [dbo].[LTTABLE] DROP CONSTRAINT [FK_LTTABLE_LTMASTER]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_kitprime_KITGROUP]') AND parent_object_id = OBJECT_ID(N'[dbo].[kitprime]'))
ALTER TABLE [dbo].[kitprime] DROP CONSTRAINT [FK_kitprime_KITGROUP]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_kitprime_KITCLASS_2]') AND parent_object_id = OBJECT_ID(N'[dbo].[kitprime]'))
ALTER TABLE [dbo].[kitprime] DROP CONSTRAINT [FK_kitprime_KITCLASS_2]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_kitprime_KITCLASS]') AND parent_object_id = OBJECT_ID(N'[dbo].[kitprime]'))
ALTER TABLE [dbo].[kitprime] DROP CONSTRAINT [FK_kitprime_KITCLASS]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_KITMAST1_OUTLET]') AND parent_object_id = OBJECT_ID(N'[dbo].[KITMAST1]'))
ALTER TABLE [dbo].[KITMAST1] DROP CONSTRAINT [FK_KITMAST1_OUTLET]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_KITHIST1_OUTLET]') AND parent_object_id = OBJECT_ID(N'[dbo].[KITHIST1]'))
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [FK_KITHIST1_OUTLET]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_KITHIST_KITHIST1]') AND parent_object_id = OBJECT_ID(N'[dbo].[KITHIST]'))
ALTER TABLE [dbo].[KITHIST] DROP CONSTRAINT [FK_KITHIST_KITHIST1]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_GSPLIT_GUEST]') AND parent_object_id = OBJECT_ID(N'[dbo].[GSPLIT]'))
ALTER TABLE [dbo].[GSPLIT] DROP CONSTRAINT [FK_GSPLIT_GUEST]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_GROOM_GUEST]') AND parent_object_id = OBJECT_ID(N'[dbo].[GROOM]'))
ALTER TABLE [dbo].[GROOM] DROP CONSTRAINT [FK_GROOM_GUEST]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_GRENT_GUEST]') AND parent_object_id = OBJECT_ID(N'[dbo].[GRENT]'))
ALTER TABLE [dbo].[GRENT] DROP CONSTRAINT [FK_GRENT_GUEST]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_GLPRIMLD_FINYEAR]') AND parent_object_id = OBJECT_ID(N'[dbo].[GLPRIMLD]'))
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [FK_GLPRIMLD_FINYEAR]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_FINYEAR_COMPANY]') AND parent_object_id = OBJECT_ID(N'[dbo].[FINYEAR]'))
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [FK_FINYEAR_COMPANY]
GO
IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_BILLHIST_BILLHIST11]') AND parent_object_id = OBJECT_ID(N'[dbo].[BILLHIST]'))
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [FK_BILLHIST_BILLHIST11]
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__Wings__staahcode__7266E4EE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Wings] DROP CONSTRAINT [DF__Wings__staahcode__7266E4EE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__wings__status__5BD420AC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Wings] DROP CONSTRAINT [DF__wings__status__5BD420AC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__whatsapps__token__320438FA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[whatsappset] DROP CONSTRAINT [DF__whatsapps__token__320438FA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__whatsappset__url__311014C1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[whatsappset] DROP CONSTRAINT [DF__whatsappset__url__311014C1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__whatsappmsg__msg__2F27CC4F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[whatsappmsg] DROP CONSTRAINT [DF__whatsappmsg__msg__2F27CC4F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__whatsappm__msgty__2E33A816]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[whatsappmsg] DROP CONSTRAINT [DF__whatsappm__msgty__2E33A816]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_wakeupresults_gno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[wakeupresults] DROP CONSTRAINT [DF_wakeupresults_gno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_wakeupresults_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[wakeupresults] DROP CONSTRAINT [DF_wakeupresults_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_WAITER_NAME]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[WAITER] DROP CONSTRAINT [DF_WAITER_NAME]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_WAITER_OUTLET]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[WAITER] DROP CONSTRAINT [DF_WAITER_OUTLET]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__vouhist__editdat__2D7E5472]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[vouhist] DROP CONSTRAINT [DF__vouhist__editdat__2D7E5472]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__VOUCHERS__outlet__1C5DEA11]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF__VOUCHERS__outlet__1C5DEA11]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__VOUCHERS__sessio__4BA6163B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF__VOUCHERS__sessio__4BA6163B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__VOUCHERS__EXAppr__4AB1F202]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF__VOUCHERS__EXAppr__4AB1F202]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_recondate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_recondate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_txntype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_txntype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_TXNNO2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_TXNNO2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_payee]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_payee]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_makedfordeletion]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_makedfordeletion]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_ltxndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_ltxndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_tmstmp]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_tmstmp]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_REFNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_REFNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_CHANNELCODE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_CHANNELCODE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_FDRSNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_FDRSNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_GRNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_GRNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_RECON]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_RECON]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_BALANCE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_BALANCE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_PARTIC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_PARTIC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VOUCHERS_TXNDT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VOUCHERS] DROP CONSTRAINT [DF_VOUCHERS_TXNDT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__vchdelete__outle__1D520E4A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[vchdeleted] DROP CONSTRAINT [DF__vchdelete__outle__1D520E4A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__vchdelete__sessi__55CAA640]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[vchdeleted] DROP CONSTRAINT [DF__vchdelete__sessi__55CAA640]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__vchdelete__EXApp__54D68207]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[vchdeleted] DROP CONSTRAINT [DF__vchdelete__EXApp__54D68207]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_vchdeleted_recondate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[vchdeleted] DROP CONSTRAINT [DF_vchdeleted_recondate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__vchdelete__txnty__3233AF94]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[vchdeleted] DROP CONSTRAINT [DF__vchdelete__txnty__3233AF94]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__vchdelete__txnno__668FABFF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[vchdeleted] DROP CONSTRAINT [DF__vchdelete__txnno__668FABFF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__vchdelete__marke__2D487EF1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[vchdeleted] DROP CONSTRAINT [DF__vchdelete__marke__2D487EF1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_VATTABLER_VAT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[VATTABLER] DROP CONSTRAINT [DF_VATTABLER_VAT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__TXNNO2__otype__770D5E94]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TXNNO2] DROP CONSTRAINT [DF__TXNNO2__otype__770D5E94]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttstaxrate_method]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttstaxrate] DROP CONSTRAINT [DF_ttstaxrate_method]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_minkm_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_minkm_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_minkm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_minkm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_Bata_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_Bata_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_Bata]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_Bata]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_MaxKm_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_MaxKm_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_MaxHrs_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_MaxHrs_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_MaxKm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_MaxKm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_MaxHrs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_MaxHrs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_PerHour_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_PerHour_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_PerHour]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_PerHour]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_PerKm_T]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_PerKm_T]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_PerKm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_PerKm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_Basic_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_Basic_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_NT_Basic]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster_NT] DROP CONSTRAINT [DF_TTMaster_NT_Basic]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_minkm_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_minkm_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_minkm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_minkm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_Bata_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_Bata_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_Bata]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_Bata]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_MaxKm_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_MaxKm_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_MaxHrs_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_MaxHrs_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_MaxKm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_MaxKm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_MaxHrs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_MaxHrs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_PerHour_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_PerHour_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_PerHour]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_PerHour]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_PerKm_T]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_PerKm_T]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_PerKm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_PerKm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_Basic_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_Basic_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TTMaster_Basic]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TTMaster] DROP CONSTRAINT [DF_TTMaster_Basic]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__ttadvance__tttyp__2DBCB4E6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF__ttadvance__tttyp__2DBCB4E6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttadvance_grno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF_ttadvance_grno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttadvance_glactnum]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF_ttadvance_glactnum]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttadvance_crcardbank]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF_ttadvance_crcardbank]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttadvance_crcardname]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF_ttadvance_crcardname]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttadvance_crcardnum]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF_ttadvance_crcardnum]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttadvance_mop]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF_ttadvance_mop]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttadvance_tmstmp]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF_ttadvance_tmstmp]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttadvance_atype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF_ttadvance_atype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttadvance_amount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF_ttadvance_amount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttadvance_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF_ttadvance_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ttadvance_ano]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ttadvance] DROP CONSTRAINT [DF_ttadvance_ano]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TRAVELAGENT_opgdate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TRAVELAGENT] DROP CONSTRAINT [DF_TRAVELAGENT_opgdate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet1_chlno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet1] DROP CONSTRAINT [DF_toutlet1_chlno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__toutlet__sac__14BCC849]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF__toutlet__sac__14BCC849]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__toutlet__billpre__6A518D31]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF__toutlet__billpre__6A518D31]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__toutlet__cancell__1C9228E4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF__toutlet__cancell__1C9228E4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__toutlet__cancell__1B9E04AB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF__toutlet__cancell__1B9E04AB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_servicetaxreturnac]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_servicetaxreturnac]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_purchasereturn6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_purchasereturn6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_salereturn6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_salereturn6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_purchasereturn5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_purchasereturn5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_salesreturn5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_salesreturn5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_purchasereturn3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_purchasereturn3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_salesreturn3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_salesreturn3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_purchaseretrun2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_purchaseretrun2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_salesreturn1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_salesreturn1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_sales6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_sales6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_purchase6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_purchase6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_sales5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_sales5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_purchase5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_purchase5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_sales4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_sales4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_packageotherchgs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_packageotherchgs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_discount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_discount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_ServiceTaxAC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_ServiceTaxAC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__toutlet__bataac__526EAAB6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF__toutlet__bataac__526EAAB6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__toutlet__otherch__517A867D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF__toutlet__otherch__517A867D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_my_receivable]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_my_receivable]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_adate_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_adate_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_ano_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_ano_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_adate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_adate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_ano]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_ano]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_lux]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_lux]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_htl_receivable]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_htl_receivable]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_htl_sales]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_htl_sales]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_htl_purchase]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_htl_purchase]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_hno_htlbook]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_hno_htlbook]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_hno_mybook]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_hno_mybook]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_billposition2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_billposition2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_billposition1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_billposition1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_selfdeal]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_selfdeal]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_staxrate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_staxrate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_advancepaid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_advancepaid]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_advancerecd]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_advancerecd]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_sales3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_sales3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_purchase3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_purchase3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_sales2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_sales2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_purchase2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_purchase2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_SALES1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_SALES1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_PURCHASE1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_PURCHASE1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_ATUONO2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_ATUONO2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_AUTONO1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_AUTONO1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_AUTONO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_AUTONO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_OCHLDATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_OCHLDATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_OCHLNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_OCHLNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_TCHLDATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_TCHLDATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_TCHLNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_TCHLNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_CHLDATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_CHLDATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_toutlet_CHLNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[toutlet] DROP CONSTRAINT [DF_toutlet_CHLNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TKTmaster_STTType]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TKTmaster] DROP CONSTRAINT [DF_TKTmaster_STTType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TKTmaster_OnDifference]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TKTmaster] DROP CONSTRAINT [DF_TKTmaster_OnDifference]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TKTmaster_TKTtaxrate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TKTmaster] DROP CONSTRAINT [DF_TKTmaster_TKTtaxrate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TempTables_dob]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TempTables] DROP CONSTRAINT [DF_TempTables_dob]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_ServiceTaxSetting_method]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_ServiceTaxSetting] DROP CONSTRAINT [DF_TA_ServiceTaxSetting_method]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_PaxDetails_visadetails]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_PaxDetails] DROP CONSTRAINT [DF_TA_PaxDetails_visadetails]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_PaxDetails_idproofno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_PaxDetails] DROP CONSTRAINT [DF_TA_PaxDetails_idproofno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_PaxDetails_idproof]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_PaxDetails] DROP CONSTRAINT [DF_TA_PaxDetails_idproof]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_PaxDetails_passportno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_PaxDetails] DROP CONSTRAINT [DF_TA_PaxDetails_passportno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_PaxDetails_age]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_PaxDetails] DROP CONSTRAINT [DF_TA_PaxDetails_age]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_ITList_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_ITList] DROP CONSTRAINT [DF_TA_ITList_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Itinerary_cess]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Itinerary] DROP CONSTRAINT [DF_TA_Itinerary_cess]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Itinerary_packageamount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Itinerary] DROP CONSTRAINT [DF_TA_Itinerary_packageamount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Itinerary_billed]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Itinerary] DROP CONSTRAINT [DF_TA_Itinerary_billed]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Itinerary_otherchgs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Itinerary] DROP CONSTRAINT [DF_TA_Itinerary_otherchgs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Itinerary_spldiscount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Itinerary] DROP CONSTRAINT [DF_TA_Itinerary_spldiscount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Itinerary_servicetax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Itinerary] DROP CONSTRAINT [DF_TA_Itinerary_servicetax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Itinerary_TaxInclusive]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Itinerary] DROP CONSTRAINT [DF_TA_Itinerary_TaxInclusive]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Itinerary_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Itinerary] DROP CONSTRAINT [DF_TA_Itinerary_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Itinerary_tc]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Itinerary] DROP CONSTRAINT [DF_TA_Itinerary_tc]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Itinerary_outlet]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Itinerary] DROP CONSTRAINT [DF_TA_Itinerary_outlet]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Hotel_travelagent]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Hotel] DROP CONSTRAINT [DF_TA_Hotel_travelagent]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Hotel_notravelagent]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Hotel] DROP CONSTRAINT [DF_TA_Hotel_notravelagent]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Hotel_glac]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Hotel] DROP CONSTRAINT [DF_TA_Hotel_glac]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Hotel_chkintime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Hotel] DROP CONSTRAINT [DF_TA_Hotel_chkintime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Chalan_cess]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Chalan] DROP CONSTRAINT [DF_TA_Chalan_cess]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__TA_Chalan__cance__41049384]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Chalan] DROP CONSTRAINT [DF__TA_Chalan__cance__41049384]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__TA_Chalan__trave__067CC346]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Chalan] DROP CONSTRAINT [DF__TA_Chalan__trave__067CC346]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__TA_Chalan__notra__05889F0D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Chalan] DROP CONSTRAINT [DF__TA_Chalan__notra__05889F0D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Chalan_split]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Chalan] DROP CONSTRAINT [DF_TA_Chalan_split]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Chalan_advance_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Chalan] DROP CONSTRAINT [DF_TA_Chalan_advance_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Chalan_advance]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Chalan] DROP CONSTRAINT [DF_TA_Chalan_advance]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Chalan_mailsend]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Chalan] DROP CONSTRAINT [DF_TA_Chalan_mailsend]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Chalan_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Chalan] DROP CONSTRAINT [DF_TA_Chalan_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_TA_Advance_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[TA_Advance] DROP CONSTRAINT [DF_TA_Advance_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_systems_online]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[systems] DROP CONSTRAINT [DF_systems_online]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_systems_ltxndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[systems] DROP CONSTRAINT [DF_systems_ltxndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__suppliers__regis__05BC1289]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[suppliers] DROP CONSTRAINT [DF__suppliers__regis__05BC1289]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__suppliers__GSTIN__789FAC88]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[suppliers] DROP CONSTRAINT [DF__suppliers__GSTIN__789FAC88]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__suppliers__compa__566200F3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[suppliers] DROP CONSTRAINT [DF__suppliers__compa__566200F3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_suppliers_STMode]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[suppliers] DROP CONSTRAINT [DF_suppliers_STMode]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_suppliers_ltxndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[suppliers] DROP CONSTRAINT [DF_suppliers_ltxndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sttablerN__compa__4EA972BC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sttablerNAME] DROP CONSTRAINT [DF__sttablerN__compa__4EA972BC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLER__pkgchg__0CA6A535]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF__STTABLER__pkgchg__0CA6A535]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLER__pkgchg__0BB280FC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF__STTABLER__pkgchg__0BB280FC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLER__invoic__0ABE5CC3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF__STTABLER__invoic__0ABE5CC3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLER__taxacn__5556704B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF__STTABLER__taxacn__5556704B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLER__taxshn__54624C12]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF__STTABLER__taxshn__54624C12]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLER__taxnam__536E27D9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF__STTABLER__taxnam__536E27D9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLER__cessna__31632898]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF__STTABLER__cessna__31632898]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLER__cesson__306F045F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF__STTABLER__cesson__306F045F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLER__cess2__2F7AE026]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF__STTABLER__cess2__2F7AE026]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_STTABLER_cessname]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF_STTABLER_cessname]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_STTABLER_cessonwhat]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF_STTABLER_cessonwhat]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLER__STTABL__2744C181]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLER] DROP CONSTRAINT [DF__STTABLER__STTABL__2744C181]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLE__taxacno__5C036DDA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLE] DROP CONSTRAINT [DF__STTABLE__taxacno__5C036DDA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLE__taxshna__527A03A0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLE] DROP CONSTRAINT [DF__STTABLE__taxshna__527A03A0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLE__taxname__5185DF67]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLE] DROP CONSTRAINT [DF__STTABLE__taxname__5185DF67]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLE__cessnam__4CEB477C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLE] DROP CONSTRAINT [DF__STTABLE__cessnam__4CEB477C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLE__cessonw__4BF72343]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLE] DROP CONSTRAINT [DF__STTABLE__cessonw__4BF72343]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLE__cess2__4B02FF0A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLE] DROP CONSTRAINT [DF__STTABLE__cess2__4B02FF0A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_STTABLE_CessName]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLE] DROP CONSTRAINT [DF_STTABLE_CessName]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_STTABLE_CessOnWhat]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLE] DROP CONSTRAINT [DF_STTABLE_CessOnWhat]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__STTABLE__STTABLE__1FA39FB9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[STTABLE] DROP CONSTRAINT [DF__STTABLE__STTABLE__1FA39FB9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storepurc__appro__21C4E6D9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storepurchaseorder] DROP CONSTRAINT [DF__storepurc__appro__21C4E6D9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storepurc__appro__20D0C2A0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storepurchaseorder] DROP CONSTRAINT [DF__storepurc__appro__20D0C2A0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storepurc__disco__1FDC9E67]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storepurchaseorder] DROP CONSTRAINT [DF__storepurc__disco__1FDC9E67]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storepurc__other__1EE87A2E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storepurchaseorder] DROP CONSTRAINT [DF__storepurc__other__1EE87A2E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storepurc__salet__1DF455F5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storepurchaseorder] DROP CONSTRAINT [DF__storepurc__salet__1DF455F5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storepurc__selle__1D0031BC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storepurchaseorder] DROP CONSTRAINT [DF__storepurc__selle__1D0031BC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storepurc__usern__1C0C0D83]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storepurchaseorder] DROP CONSTRAINT [DF__storepurc__usern__1C0C0D83]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storepurc__statu__1B17E94A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storepurchaseorder] DROP CONSTRAINT [DF__storepurc__statu__1B17E94A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storepurc__txndt__1A23C511]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storepurchaseorder] DROP CONSTRAINT [DF__storepurc__txndt__1A23C511]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storepurch__pono__192FA0D8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storepurchaseorder] DROP CONSTRAINT [DF__storepurch__pono__192FA0D8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storepurc__store__183B7C9F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storepurchaseorder] DROP CONSTRAINT [DF__storepurc__store__183B7C9F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_StorePrimary_balance]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[StorePrimary] DROP CONSTRAINT [DF_StorePrimary_balance]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_StorePrimary_opgbal]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[StorePrimary] DROP CONSTRAINT [DF_StorePrimary_opgbal]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storeitem__ITCEl__04C7EE50]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF__storeitem__ITCEl__04C7EE50]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storeitems__hsn__7993D0C1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF__storeitems__hsn__7993D0C1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_forupdt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_forupdt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_strate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_strate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_lstock]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_lstock]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_ltxndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_ltxndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_opgstock]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_opgstock]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_actodt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_actodt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_indent]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_indent]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_ratedate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_ratedate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_rate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_rate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_lidate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_lidate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_lpdate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_lpdate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storeitems_stock]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storeitems] DROP CONSTRAINT [DF_storeitems_stock]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__qty1__29ADC38E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__qty1__29ADC38E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__TCSAM__4FB370E5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__TCSAM__4FB370E5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__TCSRA__4EBF4CAC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__TCSRA__4EBF4CAC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__EXCIS__4DCB2873]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__EXCIS__4DCB2873]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__EXCIS__4CD7043A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__EXCIS__4CD7043A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__cessa__1F3A56BC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__cessa__1F3A56BC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__cessr__1E463283]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__cessr__1E463283]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__igsta__7F4CAA17]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__igsta__7F4CAA17]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__igstr__7E5885DE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__igstr__7E5885DE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__sgsta__7D6461A5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__sgsta__7D6461A5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__sgstr__7C703D6C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__sgstr__7C703D6C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__cgsta__7B7C1933]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__cgsta__7B7C1933]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__cgstr__7A87F4FA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__cgstr__7A87F4FA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storehist_hctrlno2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF_storehist_hctrlno2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__txndt__5753C756]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__txndt__5753C756]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storehist_damt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF_storehist_damt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storehist_drate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF_storehist_drate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__strat__4FBE5DDD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__strat__4FBE5DDD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__storehist__forup__4ECA39A4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF__storehist__forup__4ECA39A4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storehist_adjust]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF_storehist_adjust]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storehist_saletax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF_storehist_saletax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storehist_price]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF_storehist_price]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storehist_balance]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storehist] DROP CONSTRAINT [DF_storehist_balance]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storebills_supplier_acno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storebills] DROP CONSTRAINT [DF_storebills_supplier_acno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storebills_Reissue]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storebills] DROP CONSTRAINT [DF_storebills_Reissue]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storebills_Adjust]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storebills] DROP CONSTRAINT [DF_storebills_Adjust]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storebills_CashType]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storebills] DROP CONSTRAINT [DF_storebills_CashType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storebills_issuedtotype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storebills] DROP CONSTRAINT [DF_storebills_issuedtotype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storebills_issuedto]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storebills] DROP CONSTRAINT [DF_storebills_issuedto]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storebills_stmode]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storebills] DROP CONSTRAINT [DF_storebills_stmode]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storebills_discount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storebills] DROP CONSTRAINT [DF_storebills_discount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storebills_otherchgs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storebills] DROP CONSTRAINT [DF_storebills_otherchgs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_storebills_saletax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[storebills] DROP CONSTRAINT [DF_storebills_saletax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__store__TCSACNO__519BB957]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[store] DROP CONSTRAINT [DF__store__TCSACNO__519BB957]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__store__EXCISEACN__50A7951E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[store] DROP CONSTRAINT [DF__store__EXCISEACN__50A7951E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__store__cessacno__2216C367]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[store] DROP CONSTRAINT [DF__store__cessacno__2216C367]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__store__IGSTACNO__022916C2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[store] DROP CONSTRAINT [DF__store__IGSTACNO__022916C2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__store__SGSTACNO__0134F289]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[store] DROP CONSTRAINT [DF__store__SGSTACNO__0134F289]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__store__CGSTACNO__0040CE50]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[store] DROP CONSTRAINT [DF__store__CGSTACNO__0040CE50]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_store_fa_posting]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[store] DROP CONSTRAINT [DF_store_fa_posting]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_store_CashAcount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[store] DROP CONSTRAINT [DF_store_CashAcount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__stmasterp__taxac__5B0F49A1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stmasterpbacc] DROP CONSTRAINT [DF__stmasterp__taxac__5B0F49A1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__stmasterp__taxsh__5A1B2568]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stmasterpbacc] DROP CONSTRAINT [DF__stmasterp__taxsh__5A1B2568]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__stmasterp__taxna__5927012F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stmasterpbacc] DROP CONSTRAINT [DF__stmasterp__taxna__5927012F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__stmasterp__cessn__3AEC92D2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stmasterpbacc] DROP CONSTRAINT [DF__stmasterp__cessn__3AEC92D2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__stmasterp__cesso__39F86E99]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stmasterpbacc] DROP CONSTRAINT [DF__stmasterp__cesso__39F86E99]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__stmasterp__cess2__39044A60]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stmasterpbacc] DROP CONSTRAINT [DF__stmasterp__cess2__39044A60]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__stmasterp__cessn__38102627]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stmasterpbacc] DROP CONSTRAINT [DF__stmasterp__cessn__38102627]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__stmasterp__cesso__371C01EE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stmasterpbacc] DROP CONSTRAINT [DF__stmasterp__cesso__371C01EE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__stmasterp__sttab__3627DDB5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stmasterpbacc] DROP CONSTRAINT [DF__stmasterp__sttab__3627DDB5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__stchlno__pono__0FA6369E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stchlno] DROP CONSTRAINT [DF__stchlno__pono__0FA6369E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_stchlno_adjdr]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stchlno] DROP CONSTRAINT [DF_stchlno_adjdr]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_stchlno_Adjcr]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stchlno] DROP CONSTRAINT [DF_stchlno_Adjcr]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_stchlno_pchlno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stchlno] DROP CONSTRAINT [DF_stchlno_pchlno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_stchlno_dchlno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[stchlno] DROP CONSTRAINT [DF_stchlno_dchlno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__staahRates__addl__2F1EE1F7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahRates] DROP CONSTRAINT [DF__staahRates__addl__2F1EE1F7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__staahRate__rent2__2E2ABDBE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahRates] DROP CONSTRAINT [DF__staahRate__rent2__2E2ABDBE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_staahinvstop_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahinvstop] DROP CONSTRAINT [DF_staahinvstop_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__staahINV__edt__31072A69]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahINV] DROP CONSTRAINT [DF__staahINV__edt__31072A69]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_staahINV_message]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahINV] DROP CONSTRAINT [DF_staahINV_message]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_staahINV_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahINV] DROP CONSTRAINT [DF_staahINV_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_staahchannel_NettRate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahchannel] DROP CONSTRAINT [DF_staahchannel_NettRate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_staahchannel_commissionac]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahchannel] DROP CONSTRAINT [DF_staahchannel_commissionac]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_staahchannel_upfront]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahchannel] DROP CONSTRAINT [DF_staahchannel_upfront]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_staahchannel_companycom]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahchannel] DROP CONSTRAINT [DF_staahchannel_companycom]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_staahchannel_discount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahchannel] DROP CONSTRAINT [DF_staahchannel_discount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_staahchannel_glactno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[staahchannel] DROP CONSTRAINT [DF_staahchannel_glactno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptv_IMAGE1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptv] DROP CONSTRAINT [DF_sptv_IMAGE1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptv_IMAGE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptv] DROP CONSTRAINT [DF_sptv_IMAGE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptv_dept]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptv] DROP CONSTRAINT [DF_sptv_dept]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptv_outlet]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptv] DROP CONSTRAINT [DF_sptv_outlet]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptv_C4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptv] DROP CONSTRAINT [DF_sptv_C4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs1__dummyre__32EF72DB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF__sptbrs1__dummyre__32EF72DB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs1__extrabe__16300F6F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF__sptbrs1__extrabe__16300F6F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs1__food__153BEB36]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF__sptbrs1__food__153BEB36]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs1__channel__4D9F7493]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF__sptbrs1__channel__4D9F7493]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs1__channel__4CAB505A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF__sptbrs1__channel__4CAB505A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs1_autobillamt1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF_sptbrs1_autobillamt1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs1_fptype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF_sptbrs1_fptype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs1_lttype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF_sptbrs1_lttype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs1_wingno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF_sptbrs1_wingno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs1_rent2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF_sptbrs1_rent2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs1_rent1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF_sptbrs1_rent1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs1_sc]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF_sptbrs1_sc]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs1_discount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF_sptbrs1_discount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs1_cancelledrooms]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF_sptbrs1_cancelledrooms]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs1_arrivedrooms]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs1] DROP CONSTRAINT [DF_sptbrs1_arrivedrooms]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_rn_pctrlno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs_rn] DROP CONSTRAINT [DF_sptbrs_rn_pctrlno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs_no__txnca__327BA07A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs_noshow] DROP CONSTRAINT [DF__sptbrs_no__txnca__327BA07A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs_no__einvo__31877C41]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs_noshow] DROP CONSTRAINT [DF__sptbrs_no__einvo__31877C41]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs_nosh__sno__1DD13137]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs_noshow] DROP CONSTRAINT [DF__sptbrs_nosh__sno__1DD13137]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs_no__nosho__1CDD0CFE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs_noshow] DROP CONSTRAINT [DF__sptbrs_no__nosho__1CDD0CFE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs_nosh__gst__1BE8E8C5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs_noshow] DROP CONSTRAINT [DF__sptbrs_nosh__gst__1BE8E8C5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_inet_cancelled]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs_inet] DROP CONSTRAINT [DF_sptbrs_inet_cancelled]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_inet_amt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs_inet] DROP CONSTRAINT [DF_sptbrs_inet_amt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__whatsapp__2B573B6B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__whatsapp__2B573B6B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__staahsta__30130630]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__staahsta__30130630]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__commtds__6859F751]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__commtds__6859F751]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__commtdsr__6765D318]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__commtdsr__6765D318]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__otacommc__436D9591]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__otacommc__436D9591]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__commtcs__42797158]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__commtcs__42797158]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__commgst__41854D1F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__commgst__41854D1F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__commissi__409128E6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__commissi__409128E6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__commtcsr__3F9D04AD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__commtcsr__3F9D04AD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__commgstr__3EA8E074]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__commgstr__3EA8E074]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__commrate__3DB4BC3B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__commrate__3DB4BC3B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__GSTIN__77AB884F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__GSTIN__77AB884F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_ExtraBedAlloted]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_ExtraBedAlloted]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_ExtraBedCharges]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_ExtraBedCharges]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_ExtraBeds]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_ExtraBeds]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__domemail__726C744F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__domemail__726C744F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__dobemail__71785016]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__dobemail__71785016]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__domsmsse__70842BDD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__domsmsse__70842BDD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__dobsmsse__6F9007A4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__dobsmsse__6F9007A4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__domd__20684929]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__domd__20684929]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__domm__1F7424F0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__domm__1F7424F0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__dobd__1E8000B7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__dobd__1E8000B7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__dobm__1D8BDC7E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__dobm__1D8BDC7E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__staahid__063CCC24]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__staahid__063CCC24]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__channela__0548A7EB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__channela__0548A7EB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__ischanne__045483B2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__ischanne__045483B2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__channel__03605F79]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__channel__03605F79]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_mktmgr]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_mktmgr]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__renttype__20DE6CD3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__renttype__20DE6CD3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SPTBRS__EMAILSEN__29C6314D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__SPTBRS__EMAILSEN__29C6314D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__emailtim__71B6E254]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__emailtim__71B6E254]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__smssent1__5BF58550]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__smssent1__5BF58550]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__smssent__5B016117]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__smssent__5B016117]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__memorand__0E19EC5B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__memorand__0E19EC5B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__Autobill__5A9A4855]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__Autobill__5A9A4855]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__sptbrs__fax__5DA0D232]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF__sptbrs__fax__5DA0D232]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_tent_upto]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_tent_upto]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_Tetntative]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_Tetntative]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_net]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_net]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_pickupreqd]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_pickupreqd]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_refundamount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_refundamount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_advanceadjd]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_advanceadjd]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_advancerecd]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_advancerecd]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrs_cno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrs] DROP CONSTRAINT [DF_sptbrs_cno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sptbrooms_status1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sptbrooms] DROP CONSTRAINT [DF_sptbrooms_status1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__STOPM__6671AEDF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__STOPM__6671AEDF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__compl__7F0F14FA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__compl__7F0F14FA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__smsin__57F3B12B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__smsin__57F3B12B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__smsin__56FF8CF2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__smsin__56FF8CF2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__smsin__560B68B9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__smsin__560B68B9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__cabre__1A75A19F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__cabre__1A75A19F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__CISMS__51CFF82A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__CISMS__51CFF82A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__CISMS__50DBD3F1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__CISMS__50DBD3F1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__hksms__10966653]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__hksms__10966653]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__hksms__0FA2421A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__hksms__0FA2421A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__feedb__0EAE1DE1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__feedb__0EAE1DE1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssername__ol24__0DB9F9A8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssername__ol24__0DB9F9A8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__RentR__0CC5D56F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__RentR__0CC5D56F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__Resta__0BD1B136]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__Resta__0BD1B136]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smssernam__Month__0ADD8CFD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smssername] DROP CONSTRAINT [DF__smssernam__Month__0ADD8CFD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_smsreport_usernm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smsreport] DROP CONSTRAINT [DF_smsreport_usernm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_smsreminder_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smsreminder] DROP CONSTRAINT [DF_smsreminder_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_smsreminder_sentdate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smsreminder] DROP CONSTRAINT [DF_smsreminder_sentdate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__smslink__TEMPLAT__21511478]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smslink] DROP CONSTRAINT [DF__smslink__TEMPLAT__21511478]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_smscashbal_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[smscashbal] DROP CONSTRAINT [DF_smscashbal_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__outle__760D58A0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__outle__760D58A0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__g_sha__75193467]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__g_sha__75193467]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__DESCR__6E6C36D8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__DESCR__6E6C36D8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__COMPU__6D78129F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__COMPU__6D78129F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__6C83EE66]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__6C83EE66]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_FON__6B8FCA2D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_FON__6B8FCA2D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__6A9BA5F4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__6A9BA5F4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_FON__69A781BB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_FON__69A781BB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_FON__68B35D82]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_FON__68B35D82]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_FON__67BF3949]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_FON__67BF3949]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__66CB1510]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__66CB1510]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__65D6F0D7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__65D6F0D7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__64E2CC9E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__64E2CC9E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__63EEA865]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__63EEA865]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__62FA842C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__62FA842C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__62065FF3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__62065FF3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__61123BBA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__61123BBA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__601E1781]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__601E1781]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__5F29F348]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__5F29F348]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__5E35CF0F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__5E35CF0F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__5D41AAD6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__5D41AAD6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__5C4D869D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__5C4D869D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SHANTIPAL__G_SHA__5B596264]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SHANTIPALACE] DROP CONSTRAINT [DF__SHANTIPAL__G_SHA__5B596264]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__settingca__contr__50866244]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SettingCatelog] DROP CONSTRAINT [DF__settingca__contr__50866244]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_BillC__39A55AC2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_BillC__39A55AC2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_x1spa__38B13689]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_x1spa__38B13689]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__checkva__37BD1250]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__checkva__37BD1250]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_foodl__36C8EE17]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_foodl__36C8EE17]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__glcheck__34E0A5A5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__glcheck__34E0A5A5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__gnomanu__78F5A706]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__gnomanu__78F5A706]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__manualg__780182CD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__manualg__780182CD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__extrare__75251622]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__extrare__75251622]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__GSTCHEC__7430F1E9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__GSTCHEC__7430F1E9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__Reserve__49960A3E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__Reserve__49960A3E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__service__5AF4D513]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__service__5AF4D513]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__duplica__3EC8D3A7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__duplica__3EC8D3A7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__MSME__3DD4AF6E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__MSME__3DD4AF6E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__BHAORAO__3463E8EC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__BHAORAO__3463E8EC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__PRINTDE__7943231E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__PRINTDE__7943231E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__nohallc__784EFEE5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__nohallc__784EFEE5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__banqdif__6CDD4C39]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__banqdif__6CDD4C39]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__shiftre__37B427F8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__shiftre__37B427F8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Advan__33E39714]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Advan__33E39714]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_advan__296608A1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_advan__296608A1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_delet__1282A349]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_delet__1282A349]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_OCCLI__118E7F10]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_OCCLI__118E7F10]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_AUTHO__109A5AD7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_AUTHO__109A5AD7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Fullr__0EB21265]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Fullr__0EB21265]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__doubley__0DBDEE2C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__doubley__0DBDEE2C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__cloud__75CB630D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__cloud__75CB630D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__stop_ro__4555DE03]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__stop_ro__4555DE03]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__EXBEDWa__314EE556]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__EXBEDWa__314EE556]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_UC__2F669CE4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_UC__2F669CE4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__TCSONEX__556C4A3B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__TCSONEX__556C4A3B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__TCSONVA__54782602]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__TCSONVA__54782602]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__VATONTC__538401C9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__VATONTC__538401C9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__VATONEX__528FDD90]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__VATONEX__528FDD90]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_trave__48124F1D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_trave__48124F1D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__duelett__425975C7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__duelett__425975C7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__SSLEnab__4165518E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__SSLEnab__4165518E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__KOTSett__40712D55]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__KOTSett__40712D55]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__AUTOBUN__3BAC7838]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__AUTOBUN__3BAC7838]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__billyea__58E7D564]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__billyea__58E7D564]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__showren__55174480]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__showren__55174480]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__roomsec__4D7622B8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__roomsec__4D7622B8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__gstpaid__2D887613]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__gstpaid__2D887613]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_email__23FF0BD9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_email__23FF0BD9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__mbrprin__19817D66]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__mbrprin__19817D66]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__gststat__538E236A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__gststat__538E236A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__sttable__1A00A053]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__sttable__1A00A053]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__gBuzzer__190C7C1A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__gBuzzer__190C7C1A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_GSTBI__09CA388A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_GSTBI__09CA388A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_ether__63A48FA2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_ether__63A48FA2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_redal__0BFC99BF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_redal__0BFC99BF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__paperhe__0737E4A2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__paperhe__0737E4A2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__newbill__0643C069]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__newbill__0643C069]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__EXBEDSP__054F9C30]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__EXBEDSP__054F9C30]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__LTSETTI__045B77F7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__LTSETTI__045B77F7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__enoisgn__036753BE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__enoisgn__036753BE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__advance__02732F85]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__advance__02732F85]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_inbui__7CBA562F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_inbui__7CBA562F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__onetime__7BC631F6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__onetime__7BC631F6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__keycard__78E9C54B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__keycard__78E9C54B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__dmpprep__5788D180]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__dmpprep__5788D180]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__dmpprep__5694AD47]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__dmpprep__5694AD47]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__dmpprep__55A0890E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__dmpprep__55A0890E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_shant__54AC64D5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_shant__54AC64D5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__liquor__52C41C63]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__liquor__52C41C63]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_fpche__4A2ED662]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_fpche__4A2ED662]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_posti__7C8F6DA6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_posti__7C8F6DA6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__manualc__7B9B496D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__manualc__7B9B496D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__gencryp__7AA72534]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__gencryp__7AA72534]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_BillF__79B300FB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_BillF__79B300FB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_SecretMail]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_SecretMail]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Photo__77CAB889]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Photo__77CAB889]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_FBFColor]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_FBFColor]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_FBFBold]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_FBFBold]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_FBFItalic]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_FBFItalic]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_FBFSize]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_FBFSize]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_FBFName]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_FBFName]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__storeim__2F0AA2E4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__storeim__2F0AA2E4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_hotel__65CFFC92]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_hotel__65CFFC92]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_hotel__64DBD859]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_hotel__64DBD859]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Confi__63E7B420]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Confi__63E7B420]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_BillP__62F38FE7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_BillP__62F38FE7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_guest__61FF6BAE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_guest__61FF6BAE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__NetHeig__610B4775]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__NetHeig__610B4775]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__NetWidt__6017233C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__NetWidt__6017233C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__SMSWATC__5F22FF03]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__SMSWATC__5F22FF03]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_FoodP__5E2EDACA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_FoodP__5E2EDACA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Profo__5D3AB691]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Profo__5D3AB691]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_TimeC__5C469258]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_TimeC__5C469258]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Block__5B526E1F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Block__5B526E1F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__KOTFont__5A5E49E6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__KOTFont__5A5E49E6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__KOTFont__596A25AD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__KOTFont__596A25AD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__CODUE__58760174]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__CODUE__58760174]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__NOOLD__5781DD3B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__NOOLD__5781DD3B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_STONS__568DB902]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_STONS__568DB902]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_pemai__559994C9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_pemai__559994C9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_pemai__54A57090]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_pemai__54A57090]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_pemai__53B14C57]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_pemai__53B14C57]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_pemai__52BD281E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_pemai__52BD281E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_email__51C903E5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_email__51C903E5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_12_24__50D4DFAC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_12_24__50D4DFAC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_12_24__4FE0BB73]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_12_24__4FE0BB73]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Early__4EEC973A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Early__4EEC973A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_INetOutlet]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_INetOutlet]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_LTExe__4D044EC8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_LTExe__4D044EC8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_LTNameSH]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_LTNameSH]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_LTName]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_LTName]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_FinStart]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_FinStart]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_TitleOtherChgs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_TitleOtherChgs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_HeadOtherchgs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_HeadOtherchgs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_BillA__474B7572]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_BillA__474B7572]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_BillF__46575139]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_BillF__46575139]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Supre__45632D00]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Supre__45632D00]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Heade__446F08C7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Heade__446F08C7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__g_expsh__437AE48E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__g_expsh__437AE48E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Auto2__4286C055]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Auto2__4286C055]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Auto2__41929C1C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Auto2__41929C1C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Auto2__409E77E3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Auto2__409E77E3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Alpha__3FAA53AA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Alpha__3FAA53AA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_FoodC__3EB62F71]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_FoodC__3EB62F71]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Secon__3DC20B38]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Secon__3DC20B38]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_First__3CCDE6FF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_First__3CCDE6FF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_CashE__3BD9C2C6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_CashE__3BD9C2C6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__CardCha__3AE59E8D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__CardCha__3AE59E8D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__CardCha__39F17A54]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__CardCha__39F17A54]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_SCVAT__38FD561B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_SCVAT__38FD561B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_MakeM__380931E2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_MakeM__380931E2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_12Noo__37150DA9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_12Noo__37150DA9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_12Noo__3620E970]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_12Noo__3620E970]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_OnAcP__45AA77CC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_OnAcP__45AA77CC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Backu__3944A0E7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Backu__3944A0E7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_taxsy__05FA070B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_taxsy__05FA070B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_ShRoo__27900500]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_ShRoo__27900500]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_BillH__1941E5A9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_BillH__1941E5A9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__BnoisEn__77E0F1DE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__BnoisEn__77E0F1DE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_KOTMe__305A552B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_KOTMe__305A552B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Store__39398225]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Store__39398225]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_KitRo__4021B2CC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_KitRo__4021B2CC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Disab__4F98352F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Disab__4F98352F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Foote__1A7A617A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Foote__1A7A617A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_KOT_G__73BBC302]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_KOT_G__73BBC302]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Indic__6EF70DE5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Indic__6EF70DE5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_PDAWa__6E02E9AC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_PDAWa__6E02E9AC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_ScNet__515D22EA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_ScNet__515D22EA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_GPDes__2A625439]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_GPDes__2A625439]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_DonCh__296E3000]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_DonCh__296E3000]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__g_autog__6DE65170]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__g_autog__6DE65170]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__g_autog__6CF22D37]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__g_autog__6CF22D37]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__g_bnq_p__610125D4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__g_bnq_p__610125D4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_ConRe__7AD96167]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_ConRe__7AD96167]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_FinAc__5FFA82A2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_FinAc__5FFA82A2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__allowcr__21FD5029]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__allowcr__21FD5029]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_AutoLogoutTime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_AutoLogoutTime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_IdleT__5AF50B0C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_IdleT__5AF50B0C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_CashB__5A00E6D3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_CashB__5A00E6D3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_LTonS__7F356714]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_LTonS__7F356714]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__D_color__5FEB6B2D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__D_color__5FEB6B2D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Defau__5756252C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Defau__5756252C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_SafeL__2FB87114]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_SafeL__2FB87114]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_ShowA__07C4EBEA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_ShowA__07C4EBEA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Guest__7AC94CD1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Guest__7AC94CD1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_DOSCh__6FAA3DDB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_DOSCh__6FAA3DDB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_PWDay__0BEF14C9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_PWDay__0BEF14C9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_PWCon__0AFAF090]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_PWCon__0AFAF090]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Vouch__4570DF91]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Vouch__4570DF91]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Kit_E__447CBB58]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Kit_E__447CBB58]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_ChqPr__0DCD09D0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_ChqPr__0DCD09D0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_vouPr__0CD8E597]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_vouPr__0CD8E597]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Print__0BE4C15E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Print__0BE4C15E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Cform__2942E3E3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Cform__2942E3E3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_MisEn__7FB6BE6B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_MisEn__7FB6BE6B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_HalfD__2CBE6F0C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_HalfD__2CBE6F0C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Logo__05D9AC15]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Logo__05D9AC15]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_COMM_PRINTER]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_COMM_PRINTER]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_TT_PRINTER]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_TT_PRINTER]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_AdvPRINTER]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_AdvPRINTER]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_COPRINTER]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_COPRINTER]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_STDPULSE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_STDPULSE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_ISDPULSE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_ISDPULSE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_FIXSTD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_FIXSTD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_ISDRATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_ISDRATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_STDRATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_STDRATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Final__2A0C1F93]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Final__2A0C1F93]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__scforal__08AB2BC8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__scforal__08AB2BC8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__shortcu__05CEBF1D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__shortcu__05CEBF1D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__resadvp__04DA9AE4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__resadvp__04DA9AE4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__currenc__03E676AB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__currenc__03E676AB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__currenc__02F25272]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__currenc__02F25272]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_DISC_LTRULES]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_DISC_LTRULES]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_Juri__31F065D9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_Juri__31F065D9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_EPBXCheck]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_EPBXCheck]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_SCEnabled]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_SCEnabled]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_AutoS__589531AE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_AutoS__589531AE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_COT_Excuse]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_COT_Excuse]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_CIT_Excuse]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_CIT_Excuse]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_SC_Afterdisc]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_SC_Afterdisc]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_SC_LTRules]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_SC_LTRules]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__AutoBil__7698FF33]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__AutoBil__7698FF33]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__g_ltinc__24A9E2A6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__g_ltinc__24A9E2A6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_g_kotfinaltime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_g_kotfinaltime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_AutoBillShow]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_AutoBillShow]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_g_couponprinter]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_g_couponprinter]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__g_sc_ra__622726DB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__g_sc_ra__622726DB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__g_sc_de__613302A2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__g_sc_de__613302A2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_AutoBillOutlet]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_AutoBillOutlet]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_HotelPhoneHandlinghChgs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_HotelPhoneHandlinghChgs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_PhoneTax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_PhoneTax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_PulseRate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_PulseRate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_CallRate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_CallRate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_NewBillModel]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_NewBillModel]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_Preprintedfinal]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_Preprintedfinal]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_billConsolidation]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_billConsolidation]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_g_numbering]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_g_numbering]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_g_finalbillul]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_g_finalbillul]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_EpbxMenu]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_EpbxMenu]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_BillT__0FC2397C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_BillT__0FC2397C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setting__G_Close__0ECE1543]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__setting__G_Close__0ECE1543]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_PickupComp]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_PickupComp]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_QUICK__5DF371B9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_QUICK__5DF371B9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__SETTING__G_PASSP__5CFF4D80]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF__SETTING__G_PASSP__5CFF4D80]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_OccNew]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_OccNew]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_OccWings]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_OccWings]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_OccRw]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_OccRw]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_OccRH]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_OccRH]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_Occupancy]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_Occupancy]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_Bill_LH]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_Bill_LH]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_foodbillnarration]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_foodbillnarration]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_ltontariff]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_ltontariff]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_Cashier]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_Cashier]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_FreeLimit]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_FreeLimit]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_TTMaster]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_TTMaster]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_STOREOUTLET]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_STOREOUTLET]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_AUTOCUTTER]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_AUTOCUTTER]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_EXBED]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_EXBED]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_STRICTLT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_STRICTLT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_EPBXMODEL]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_EPBXMODEL]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_BILLPRINTER]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_BILLPRINTER]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_ROUNDOFF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_ROUNDOFF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_g_epbx]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_g_epbx]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_PaperType]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_PaperType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_OCCCOLS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_OCCCOLS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_VISUALDRIVE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_VISUALDRIVE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_RUNNINGDATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_RUNNINGDATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_BNO_GENERATION]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_BNO_GENERATION]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_GUESTDETAILS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_GUESTDETAILS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_DISC_ALLOW]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_DISC_ALLOW]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_AUTO_RENT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_AUTO_RENT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_KIT_SC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_KIT_SC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_KIT_DISC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_KIT_DISC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_SETTING_G_AUTOKOT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[SETTING] DROP CONSTRAINT [DF_SETTING_G_AUTOKOT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__setprinte__Print__744D2AC0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[setprinter] DROP CONSTRAINT [DF__setprinte__Print__744D2AC0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sessions_reservationno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sessions] DROP CONSTRAINT [DF_sessions_reservationno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sessions_mailsent]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sessions] DROP CONSTRAINT [DF_sessions_mailsent]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_sessions_updated]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[sessions] DROP CONSTRAINT [DF_sessions_updated]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__servicepe__usern__7B6BCEA4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[servicepermission] DROP CONSTRAINT [DF__servicepe__usern__7B6BCEA4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__servicepe__prepe__7A77AA6B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[servicepermission] DROP CONSTRAINT [DF__servicepe__prepe__7A77AA6B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_servicepermission_outlet]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[servicepermission] DROP CONSTRAINT [DF_servicepermission_outlet]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_servicepermission_outlettype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[servicepermission] DROP CONSTRAINT [DF_servicepermission_outlettype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_servicepermission_permission]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[servicepermission] DROP CONSTRAINT [DF_servicepermission_permission]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__servicech__statu__79E9CB3F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[servicechist] DROP CONSTRAINT [DF__servicech__statu__79E9CB3F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__servicechis__qty__76193A5B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[servicechist] DROP CONSTRAINT [DF__servicechis__qty__76193A5B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__servicecb__statu__2CC2C724]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[servicecbill] DROP CONSTRAINT [DF__servicecb__statu__2CC2C724]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ServiceBGRNO_grnobr]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ServiceBGRNO] DROP CONSTRAINT [DF_ServiceBGRNO_grnobr]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ServiceBGRNO_grnocc]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ServiceBGRNO] DROP CONSTRAINT [DF_ServiceBGRNO_grnocc]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ServiceBGRNO_grnogl]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ServiceBGRNO] DROP CONSTRAINT [DF_ServiceBGRNO_grnogl]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ServiceBGRNO_grnocash]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ServiceBGRNO] DROP CONSTRAINT [DF_ServiceBGRNO_grnocash]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ServiceAGRNO_grnobr]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ServiceAGRNO] DROP CONSTRAINT [DF_ServiceAGRNO_grnobr]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ServiceAGRNO_grnocc]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ServiceAGRNO] DROP CONSTRAINT [DF_ServiceAGRNO_grnocc]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ServiceAGRNO_grnogl]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ServiceAGRNO] DROP CONSTRAINT [DF_ServiceAGRNO_grnogl]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ServiceAGRNO_grnors]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ServiceAGRNO] DROP CONSTRAINT [DF_ServiceAGRNO_grnors]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ServiceAGRNO_grnocash]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ServiceAGRNO] DROP CONSTRAINT [DF_ServiceAGRNO_grnocash]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_RoomDues_split]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RoomDues] DROP CONSTRAINT [DF_RoomDues_split]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__ROOM__OL24NAME__7A374757]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF__ROOM__OL24NAME__7A374757]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__ROOM__kavachadd__38A84C31]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF__ROOM__kavachadd__38A84C31]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__ROOM__dset__2871E468]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF__ROOM__dset__2871E468]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__ROOM__drent__277DC02F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF__ROOM__drent__277DC02F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__ROOM__rnoa__26899BF6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF__ROOM__rnoa__26899BF6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__ROOM__roomsectio__4E6A46F1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF__ROOM__roomsectio__4E6A46F1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__ROOM__CISMSSent__4FE7AFB8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF__ROOM__CISMSSent__4FE7AFB8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__ROOM__HKSMS__29CC2871]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF__ROOM__HKSMS__29CC2871]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_24OLCount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_24OLCount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_24OLSMS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_24OLSMS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_24OLPW]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_24OLPW]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_OL24GNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_OL24GNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_OL24]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_OL24]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__room__SLNO__31A0B986]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF__room__SLNO__31A0B986]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__room__SL__30AC954D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF__room__SL__30AC954D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_DATAEXCHANGE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_DATAEXCHANGE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_WUSTATUS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_WUSTATUS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_WUTIMESET]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_WUTIMESET]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_CISTATUS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_CISTATUS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__room__qcheck__5A22E0D5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF__room__qcheck__5A22E0D5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_Sendstatus]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_Sendstatus]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_RoomWing]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_RoomWing]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_RentRate22]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_RentRate22]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_RentRate21]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_RentRate21]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_EVERYEX]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_EVERYEX]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_EXBED]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_EXBED]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_CAPACITY]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_CAPACITY]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_INSTANT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_INSTANT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_CALLRATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_CALLRATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_STATUS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_STATUS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_HOSTID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_HOSTID]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_CHECKOUT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_CHECKOUT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_EXNT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_EXNT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_STD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_STD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_TIME]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_TIME]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_WU]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_WU]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_CI]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_CI]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_GRPNAME]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_GRPNAME]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_ROOMTYPE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_ROOMTYPE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_RENT2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_RENT2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_RENT1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_RENT1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ROOM_GNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ROOM] DROP CONSTRAINT [DF_ROOM_GNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_RESTCO_line2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RESTCO] DROP CONSTRAINT [DF_RESTCO_line2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_RESTCO_line1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RESTCO] DROP CONSTRAINT [DF_RESTCO_line1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_RESTCO_self_receivable]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RESTCO] DROP CONSTRAINT [DF_RESTCO_self_receivable]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_RESTCO_htl_receivable]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RESTCO] DROP CONSTRAINT [DF_RESTCO_htl_receivable]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_RESTCO_billposition2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RESTCO] DROP CONSTRAINT [DF_RESTCO_billposition2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_RESTCO_billposition]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RESTCO] DROP CONSTRAINT [DF_RESTCO_billposition]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_RESTCO_SHNAME]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RESTCO] DROP CONSTRAINT [DF_RESTCO_SHNAME]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__resavenue__txndt__205CF03F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[resavenuelog] DROP CONSTRAINT [DF__resavenue__txndt__205CF03F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__RentType__staahc__7B113988]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[RentType] DROP CONSTRAINT [DF__RentType__staahc__7B113988]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_rentaccount_actnum]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[rentaccount] DROP CONSTRAINT [DF_rentaccount_actnum]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_rentaccount_lrate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[rentaccount] DROP CONSTRAINT [DF_rentaccount_lrate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_regentvisitor_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[regentvisitor] DROP CONSTRAINT [DF_regentvisitor_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_puvehicle_Charges]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[puvehicle] DROP CONSTRAINT [DF_puvehicle_Charges]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PrePaidCouponMaster_CouponType]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PrePaidCouponMaster] DROP CONSTRAINT [DF_PrePaidCouponMaster_CouponType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PrePaidCouponMaster_startdate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PrePaidCouponMaster] DROP CONSTRAINT [DF_PrePaidCouponMaster_startdate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PrePaidCouponMaster_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PrePaidCouponMaster] DROP CONSTRAINT [DF_PrePaidCouponMaster_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PowerBrai__ichec__00F75D6C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PowerBrain] DROP CONSTRAINT [DF__PowerBrai__ichec__00F75D6C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PowerBrai__Ichec__00033933]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PowerBrain] DROP CONSTRAINT [DF__PowerBrai__Ichec__00033933]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PowerBrai__STORE__7E1AF0C1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PowerBrain] DROP CONSTRAINT [DF__PowerBrai__STORE__7E1AF0C1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PowerBrai__IMAGE__7D26CC88]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PowerBrain] DROP CONSTRAINT [DF__PowerBrai__IMAGE__7D26CC88]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PowerBrai__STORE__7C32A84F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PowerBrain] DROP CONSTRAINT [DF__PowerBrai__STORE__7C32A84F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PowerBrai__IMAGE__7B3E8416]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PowerBrain] DROP CONSTRAINT [DF__PowerBrai__IMAGE__7B3E8416]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PowerBrain_Alert]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PowerBrain] DROP CONSTRAINT [DF_PowerBrain_Alert]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PowerBrain_smssent]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PowerBrain] DROP CONSTRAINT [DF_PowerBrain_smssent]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PowerBrain_smstime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PowerBrain] DROP CONSTRAINT [DF_PowerBrain_smstime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHOUTLET__runnin__2ADA7EB2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF__PHOUTLET__runnin__2ADA7EB2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHOUTLET__sac__13C8A410]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF__PHOUTLET__sac__13C8A410]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHOUTLET__billpr__75C33FDD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF__PHOUTLET__billpr__75C33FDD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHOUTLET__sttabl__695D68F8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF__PHOUTLET__sttabl__695D68F8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_ST_Actnum]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_ST_Actnum]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_STName]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_STName]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_STRate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_STRate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_SCRate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_SCRate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_billposition2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_billposition2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_BILLPOSITION]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_BILLPOSITION]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_SC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_SC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_LUX]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_LUX]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_HTL_GRNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_HTL_GRNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_BILLDATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_BILLDATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_SNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_SNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHOUTLET_SHNAME]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHOUTLET] DROP CONSTRAINT [DF_PHOUTLET_SHNAME]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__TXNCAT__242D8123]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__TXNCAT__242D8123]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__email__069D1E3C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__email__069D1E3C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__phone__05A8FA03]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__phone__05A8FA03]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__pin__04B4D5CA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__pin__04B4D5CA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__state__03C0B191]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__state__03C0B191]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__city__02CC8D58]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__city__02CC8D58]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__add2__01D8691F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__add2__01D8691F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__add1__00E444E6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__add1__00E444E6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__name__7FF020AD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__name__7FF020AD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__gstinname__7EFBFC74]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__gstinname__7EFBFC74]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__einvoice__7E07D83B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__einvoice__7E07D83B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__gstin__6E221E15]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__gstin__6E221E15]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_finalamt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_finalamt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_strate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_strate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_stamt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_stamt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_SCRate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_SCRate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_SCAMT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_SCAMT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__PHONE__usernm__469D7149]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF__PHONE__usernm__469D7149]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_txntime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_txntime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_LUX]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_LUX]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_CRTYPE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_CRTYPE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_CRNUM]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_CRNUM]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_CRNAME]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_CRNAME]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_RNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_RNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_SELFDEAL]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_SELFDEAL]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_SPLIT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_SPLIT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_DAMT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_DAMT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_CD_TYPE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_CD_TYPE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_CD_NAME]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_CD_NAME]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_CD_NUM]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_CD_NUM]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_DRATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_DRATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHONE_GNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHONE] DROP CONSTRAINT [DF_PHONE_GNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHHIST_AMOUNT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHHIST] DROP CONSTRAINT [DF_PHHIST_AMOUNT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHHIST_PARTIC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHHIST] DROP CONSTRAINT [DF_PHHIST_PARTIC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHHELPER_EDT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHHELPER] DROP CONSTRAINT [DF_PHHELPER_EDT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHHELPER_SDT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHHELPER] DROP CONSTRAINT [DF_PHHELPER_SDT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_PHHELPER_OUTLET]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[PHHELPER] DROP CONSTRAINT [DF_PHHELPER_OUTLET]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__outletcom__KOTTi__4EF38B7F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[outletcomputersetting] DROP CONSTRAINT [DF__outletcom__KOTTi__4EF38B7F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_outletcomputersetting_directtokitchen]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[outletcomputersetting] DROP CONSTRAINT [DF_outletcomputersetting_directtokitchen]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_outletcomputersetting_guestdetails]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[outletcomputersetting] DROP CONSTRAINT [DF_outletcomputersetting_guestdetails]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_outletcomputersetting_qtyfraction]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[outletcomputersetting] DROP CONSTRAINT [DF_outletcomputersetting_qtyfraction]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_outletcomputersetting_g_cutter]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[outletcomputersetting] DROP CONSTRAINT [DF_outletcomputersetting_g_cutter]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_outletcomputersetting_duplicate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[outletcomputersetting] DROP CONSTRAINT [DF_outletcomputersetting_duplicate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OUTLET__newcolum__2B960C00]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__OUTLET__newcolum__2B960C00]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OUTLET__vatname__4535E272]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__OUTLET__vatname__4535E272]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OUTLET__showsc__29B7E52F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__OUTLET__showsc__29B7E52F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OUTLET__sac__12D47FD7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__OUTLET__sac__12D47FD7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OUTLET__billpref__686944BF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__OUTLET__billpref__686944BF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_cessacno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_cessacno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_servicetaxacno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_servicetaxacno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OUTLET__NoKOTAdd__2818EA29]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__OUTLET__NoKOTAdd__2818EA29]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_powercaptain]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_powercaptain]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OUTLET__greeting__2630A1B7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__OUTLET__greeting__2630A1B7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_forstamp]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_forstamp]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OUTLET__oneperce__24485945]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__OUTLET__oneperce__24485945]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_infolinedetail]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_infolinedetail]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_infoline]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_infoline]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_olname]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_olname]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_chname]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_chname]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_coname]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_coname]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_VATONST]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_VATONST]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OUTLET__STTABLEN__1D9B5BB6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__OUTLET__STTABLEN__1D9B5BB6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_guestdetails]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_guestdetails]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__outlet__qtyfract__0B7F9651]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__outlet__qtyfract__0B7F9651]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_bno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_bno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_ServiceTax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_ServiceTax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__outlet__sc_door__70C2BE1B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__outlet__sc_door__70C2BE1B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__outlet__sc_room__6FCE99E2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__outlet__sc_room__6FCE99E2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__outlet__sc_table__6EDA75A9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF__outlet__sc_table__6EDA75A9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_RoundOff]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_RoundOff]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_ScRate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_ScRate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_Duplicate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_Duplicate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_G_cutter]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_G_cutter]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_G_STAXINCL]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_G_STAXINCL]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_SALETAXNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_SALETAXNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_AUTOKOT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_AUTOKOT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_FREEFOOD_VOUCHING]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_FREEFOOD_VOUCHING]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_SC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_SC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_LUX]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_LUX]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_HTL_GRNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_HTL_GRNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_SCSET]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_SCSET]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_STSET]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_STSET]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_SC_ACTNUM]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_SC_ACTNUM]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_GRNO_TRF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_GRNO_TRF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_HOTELACNUM]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_HOTELACNUM]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_SELFDEAL]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_SELFDEAL]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_GRNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_GRNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_RO_ACTNUM]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_RO_ACTNUM]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_BILLDATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_BILLDATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_KOTNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_KOTNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_KOTDATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_KOTDATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OUTLET_CURDATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OUTLET] DROP CONSTRAINT [DF_OUTLET_CURDATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OTACommis__tdsam__6A423FC3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OTACommission] DROP CONSTRAINT [DF__OTACommis__tdsam__6A423FC3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OTACommis__tdsra__694E1B8A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OTACommission] DROP CONSTRAINT [DF__OTACommis__tdsra__694E1B8A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OTACommis__statu__3707BEAC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OTACommission] DROP CONSTRAINT [DF__OTACommis__statu__3707BEAC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OTACommissi__TCS__36139A73]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OTACommission] DROP CONSTRAINT [DF__OTACommissi__TCS__36139A73]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OTACommissi__GST__351F763A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OTACommission] DROP CONSTRAINT [DF__OTACommissi__GST__351F763A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OTACommis__commi__342B5201]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OTACommission] DROP CONSTRAINT [DF__OTACommis__commi__342B5201]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__OTACommis__entry__33372DC8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OTACommission] DROP CONSTRAINT [DF__OTACommis__entry__33372DC8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OnAcRc_Details]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OnAcRc] DROP CONSTRAINT [DF_OnAcRc_Details]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OnAcRc_MOP]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OnAcRc] DROP CONSTRAINT [DF_OnAcRc_MOP]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_olstore_indent]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[olstore] DROP CONSTRAINT [DF_olstore_indent]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_olstore_rate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[olstore] DROP CONSTRAINT [DF_olstore_rate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_olstore_lidate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[olstore] DROP CONSTRAINT [DF_olstore_lidate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_olstore_lpdate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[olstore] DROP CONSTRAINT [DF_olstore_lpdate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_olstore_stock]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[olstore] DROP CONSTRAINT [DF_olstore_stock]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__olstkadj__outlet__33EC816C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[olstkadj] DROP CONSTRAINT [DF__olstkadj__outlet__33EC816C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_olstkadj_usernm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[olstkadj] DROP CONSTRAINT [DF_olstkadj_usernm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OL24_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OL24] DROP CONSTRAINT [DF_OL24_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OL24_SeqNo]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OL24] DROP CONSTRAINT [DF_OL24_SeqNo]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OL24_amount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OL24] DROP CONSTRAINT [DF_OL24_amount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_OL24_gno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[OL24] DROP CONSTRAINT [DF_OL24_gno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_NECMiniBar_acctd]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[NECMiniBar] DROP CONSTRAINT [DF_NECMiniBar_acctd]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_NECMiniBar_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[NECMiniBar] DROP CONSTRAINT [DF_NECMiniBar_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_NECMiniBar_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[NECMiniBar] DROP CONSTRAINT [DF_NECMiniBar_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_necmboutlet_items]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[necmboutlet] DROP CONSTRAINT [DF_necmboutlet_items]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_MYCUST_amount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[MYCUST] DROP CONSTRAINT [DF_MYCUST_amount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_MYCUST_TYPE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[MYCUST] DROP CONSTRAINT [DF_MYCUST_TYPE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_MYBILLS_Description]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[MYBILLS] DROP CONSTRAINT [DF_MYBILLS_Description]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_MYBILLS_btype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[MYBILLS] DROP CONSTRAINT [DF_MYBILLS_btype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_MYBILLS_AMOUNT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[MYBILLS] DROP CONSTRAINT [DF_MYBILLS_AMOUNT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_msgcount_rcnt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[msgcount] DROP CONSTRAINT [DF_msgcount_rcnt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_msgcount_scnt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[msgcount] DROP CONSTRAINT [DF_msgcount_scnt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_msgcount_countsent]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[msgcount] DROP CONSTRAINT [DF_msgcount_countsent]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_msgcount_count]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[msgcount] DROP CONSTRAINT [DF_msgcount_count]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_mktmgr_CRS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[mktmgr] DROP CONSTRAINT [DF_mktmgr_CRS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_mktmgr_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[mktmgr] DROP CONSTRAINT [DF_mktmgr_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__MizStock__outlet__32F85D33]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[MizStock] DROP CONSTRAINT [DF__MizStock__outlet__32F85D33]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_MizStock_Closing]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[MizStock] DROP CONSTRAINT [DF_MizStock_Closing]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_MizStock_Consumed]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[MizStock] DROP CONSTRAINT [DF_MizStock_Consumed]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_MizStock_Received]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[MizStock] DROP CONSTRAINT [DF_MizStock_Received]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_MizStock_Opening]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[MizStock] DROP CONSTRAINT [DF_MizStock_Opening]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_misset_counter]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[misset] DROP CONSTRAINT [DF_misset_counter]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_misset_settings]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[misset] DROP CONSTRAINT [DF_misset_settings]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_menusearch_menutype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[menusearch] DROP CONSTRAINT [DF_menusearch_menutype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__massdel__rent__4AA30C57]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[massdel] DROP CONSTRAINT [DF__massdel__rent__4AA30C57]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__massdel__amt__49AEE81E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[massdel] DROP CONSTRAINT [DF__massdel__amt__49AEE81E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_LTTABLE_FAMT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[LTTABLE] DROP CONSTRAINT [DF_LTTABLE_FAMT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__LTONTARIF__ltrat__230AE7A0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[LTONTARIFF] DROP CONSTRAINT [DF__LTONTARIF__ltrat__230AE7A0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__LTMASTER__glactn__6680FC4D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[LTMASTER] DROP CONSTRAINT [DF__LTMASTER__glactn__6680FC4D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__LTMASTER__ltSHna__658CD814]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[LTMASTER] DROP CONSTRAINT [DF__LTMASTER__ltSHna__658CD814]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__LTMASTER__ltname__6498B3DB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[LTMASTER] DROP CONSTRAINT [DF__LTMASTER__ltname__6498B3DB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_LTMASTER_EDT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[LTMASTER] DROP CONSTRAINT [DF_LTMASTER_EDT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_LTMASTER_SDT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[LTMASTER] DROP CONSTRAINT [DF_LTMASTER_SDT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__lic__lic3__15B0EC82]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[lic] DROP CONSTRAINT [DF__lic__lic3__15B0EC82]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_kotctrlno_ctrlno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[kotconstant] DROP CONSTRAINT [DF_kotctrlno_ctrlno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KOTCatelog_COutlet]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KOTCatelog] DROP CONSTRAINT [DF_KOTCatelog_COutlet]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KOTCatelog_CodeControl]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KOTCatelog] DROP CONSTRAINT [DF_KOTCatelog_CodeControl]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KOTCatelog_DControl]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KOTCatelog] DROP CONSTRAINT [DF_KOTCatelog_DControl]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KOTCatelog_WControl]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KOTCatelog] DROP CONSTRAINT [DF_KOTCatelog_WControl]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KOTCatelog_Value]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KOTCatelog] DROP CONSTRAINT [DF_KOTCatelog_Value]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KOTCatelog_MOP]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KOTCatelog] DROP CONSTRAINT [DF_KOTCatelog_MOP]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__kitprime__taxorg__434D9A00]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[kitprime] DROP CONSTRAINT [DF__kitprime__taxorg__434D9A00]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__kitprime__hsn__74CF1BA4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[kitprime] DROP CONSTRAINT [DF__kitprime__hsn__74CF1BA4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__kitprime__shcode__2E86BBED]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[kitprime] DROP CONSTRAINT [DF__kitprime__shcode__2E86BBED]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__kitprime__shcode__2D9297B4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[kitprime] DROP CONSTRAINT [DF__kitprime__shcode__2D9297B4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_kitprime_Unit]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[kitprime] DROP CONSTRAINT [DF_kitprime_Unit]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__kitprime__prefer__7EE723D4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[kitprime] DROP CONSTRAINT [DF__kitprime__prefer__7EE723D4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_kitprime_NoRate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[kitprime] DROP CONSTRAINT [DF_kitprime_NoRate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_kitprime_subclass]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[kitprime] DROP CONSTRAINT [DF_kitprime_subclass]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITMAST2_outlet]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITMAST2] DROP CONSTRAINT [DF_KITMAST2_outlet]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITMAST2_otype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITMAST2] DROP CONSTRAINT [DF_KITMAST2_otype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITMAST1_STOCK]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITMAST1] DROP CONSTRAINT [DF_KITMAST1_STOCK]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITMAST1_UNIT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITMAST1] DROP CONSTRAINT [DF_KITMAST1_UNIT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITMAST_NOTAXCATEGORY]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITMAST] DROP CONSTRAINT [DF_KITMAST_NOTAXCATEGORY]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__TXNCAT__23395CEA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__TXNCAT__23395CEA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__email__0F32643D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__email__0F32643D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__phone__0E3E4004]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__phone__0E3E4004]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__pin__0D4A1BCB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__pin__0D4A1BCB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__state__0C55F792]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__state__0C55F792]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__city__0B61D359]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__city__0B61D359]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__add2__0A6DAF20]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__add2__0A6DAF20]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__add1__09798AE7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__add1__09798AE7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__name__088566AE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__name__088566AE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__gstinn__07914275]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__gstinn__07914275]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__einvoi__7D13B402]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__einvoi__7D13B402]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__ndiscg__3AB2F668]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__ndiscg__3AB2F668]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__gstin__6C39D5A3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__gstin__6C39D5A3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__gno1__7425102E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__gno1__7425102E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__crbank__7330EBF5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__crbank__7330EBF5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__crnum1__723CC7BC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__crnum1__723CC7BC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__crname__7148A383]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__crname__7148A383]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__pmode1__70547F4A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__pmode1__70547F4A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__partpa__6F605B11]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__partpa__6F605B11]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_packingchgs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_packingchgs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST1__vatons__02173585]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__KITHIST1__vatons__02173585]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_vatonst]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_vatonst]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_CESS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_CESS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_ServiceTax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_ServiceTax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_ndiscount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_ndiscount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__kithist1__strbno__2118119B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__kithist1__strbno__2118119B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__kithist1__autopo__19018F22]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF__kithist1__autopo__19018F22]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_FinalAmt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_FinalAmt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_txntime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_txntime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_usernm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_usernm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_LUX]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_LUX]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_CRTYPE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_CRTYPE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_CRNUM]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_CRNUM]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_CRNAME]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_CRNAME]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_SCSET]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_SCSET]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_STSET]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_STSET]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_SCRATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_SCRATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_SCAMT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_SCAMT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_RATETYPE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_RATETYPE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_ROAMOUNT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_ROAMOUNT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_WNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_WNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_SPLIT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_SPLIT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_PMODE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_PMODE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_RNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_RNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_GNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_GNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST1_DRATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST1] DROP CONSTRAINT [DF_KITHIST1_DRATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITHIST__cess2__3BE0B70B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST] DROP CONSTRAINT [DF__KITHIST__cess2__3BE0B70B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST_SC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST] DROP CONSTRAINT [DF_KITHIST_SC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST_CESS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST] DROP CONSTRAINT [DF_KITHIST_CESS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_KITHIST_ST]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST] DROP CONSTRAINT [DF_KITHIST_ST]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__kithist__prefere__7DF2FF9B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITHIST] DROP CONSTRAINT [DF__kithist__prefere__7DF2FF9B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITGUEST__repup__25E7544B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITGUEST] DROP CONSTRAINT [DF__KITGUEST__repup__25E7544B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__KITGUEST__txndt__0B087586]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[KITGUEST] DROP CONSTRAINT [DF__KITGUEST__txndt__0B087586]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__infosent__whatsa__2C4B5FA4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[infosent] DROP CONSTRAINT [DF__infosent__whatsa__2C4B5FA4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__infosent__resto__0A14514D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[infosent] DROP CONSTRAINT [DF__infosent__resto__0A14514D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__infosent__hotel__09202D14]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[infosent] DROP CONSTRAINT [DF__infosent__hotel__09202D14]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__infosent__weekly__7A8729A3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[infosent] DROP CONSTRAINT [DF__infosent__weekly__7A8729A3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__infosent__monthl__7993056A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[infosent] DROP CONSTRAINT [DF__infosent__monthl__7993056A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__infosent__Weekly__789EE131]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[infosent] DROP CONSTRAINT [DF__infosent__Weekly__789EE131]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__infosent__Monthl__77AABCF8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[infosent] DROP CONSTRAINT [DF__infosent__Monthl__77AABCF8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_InetAccess_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[InetAccess] DROP CONSTRAINT [DF_InetAccess_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__HmsFolder__timer__77017CD9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[HmsFolder] DROP CONSTRAINT [DF__HmsFolder__timer__77017CD9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__HmsFolder__casha__6F1576F7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[HmsFolder] DROP CONSTRAINT [DF__HmsFolder__casha__6F1576F7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_HmsFolder_usd]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[HmsFolder] DROP CONSTRAINT [DF_HmsFolder_usd]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__hmsfolder__hitco__23B5BE6D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[HmsFolder] DROP CONSTRAINT [DF__hmsfolder__hitco__23B5BE6D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__hmsfolder__count__22C19A34]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[HmsFolder] DROP CONSTRAINT [DF__hmsfolder__count__22C19A34]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_HmsFolder_version_no]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[HmsFolder] DROP CONSTRAINT [DF_HmsFolder_version_no]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_HKHist_rep_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[HKHist] DROP CONSTRAINT [DF_HKHist_rep_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_HKHist_rep_doc]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[HKHist] DROP CONSTRAINT [DF_HKHist_rep_doc]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GuestSet_renttype1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GuestSet] DROP CONSTRAINT [DF_GuestSet_renttype1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GuestSet_lastvisit]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GuestSet] DROP CONSTRAINT [DF_GuestSet_lastvisit]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GuestSet_fptype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GuestSet] DROP CONSTRAINT [DF_GuestSet_fptype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GuestSet_sc]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GuestSet] DROP CONSTRAINT [DF_GuestSet_sc]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GuestSet_discount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GuestSet] DROP CONSTRAINT [DF_GuestSet_discount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GuestSet_lttype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GuestSet] DROP CONSTRAINT [DF_GuestSet_lttype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GuestSet_renttype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GuestSet] DROP CONSTRAINT [DF_GuestSet_renttype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GuestSet_rent2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GuestSet] DROP CONSTRAINT [DF_GuestSet_rent2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GuestSet_rent1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GuestSet] DROP CONSTRAINT [DF_GuestSet_rent1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GuestFP_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GuestFP] DROP CONSTRAINT [DF_GuestFP_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUESTAD__gstin__72E6D332]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF__GUESTAD__gstin__72E6D332]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUESTAD_renttype1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_GUESTAD_renttype1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUESTAD_uniquenetid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_GUESTAD_uniquenetid]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUESTAD_SC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_GUESTAD_SC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUESTAD_DISCOUNT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_GUESTAD_DISCOUNT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUESTAD_RENT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_GUESTAD_RENT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUESTAD_LASTVISIT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_GUESTAD_LASTVISIT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUESTAD_LIKES]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_GUESTAD_LIKES]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUESTAD_COMPANY_NO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_GUESTAD_COMPANY_NO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADDBK_EMAIL]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_ADDBK_EMAIL]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADDBK_FAX]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_ADDBK_FAX]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADDBK_PHONE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_ADDBK_PHONE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADDBK_PIN]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_ADDBK_PIN]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADDBK_STATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_ADDBK_STATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADDBK_CITY]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_ADDBK_CITY]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADDBK_ADD3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_ADDBK_ADD3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADDBK_ADD2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_ADDBK_ADD2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADDBK_ADD1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_ADDBK_ADD1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUESTAD_ADDRESS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUESTAD] DROP CONSTRAINT [DF_GUESTAD_ADDRESS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest2__fpname__54232047]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[guest2] DROP CONSTRAINT [DF__guest2__fpname__54232047]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest2__HEADERCE__523AD7D5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[guest2] DROP CONSTRAINT [DF__guest2__HEADERCE__523AD7D5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest2__HEADERST__5146B39C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[guest2] DROP CONSTRAINT [DF__guest2__HEADERST__5146B39C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest2__HEADERSC__50528F63]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[guest2] DROP CONSTRAINT [DF__guest2__HEADERSC__50528F63]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest2__HEADERLT__4F5E6B2A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[guest2] DROP CONSTRAINT [DF__guest2__HEADERLT__4F5E6B2A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest2__gstin__179934F4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[guest2] DROP CONSTRAINT [DF__guest2__gstin__179934F4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_guest2_spldiscount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[guest2] DROP CONSTRAINT [DF_guest2_spldiscount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__whatsappC__2A631732]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__whatsappC__2A631732]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__whatsapp__296EF2F9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__whatsapp__296EF2F9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__TXNCAT__224538B1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__TXNCAT__224538B1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__einvoice__7C1F8FC9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__einvoice__7C1F8FC9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__otacommct__3CC09802]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__otacommct__3CC09802]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__gstinspli__5CB86648]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__gstinspli__5CB86648]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__stopservi__2C9451DA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__stopservi__2C9451DA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__repup__24F33012]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__repup__24F33012]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__extrabed__1447C6FD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__extrabed__1447C6FD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__food__1353A2C4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__food__1353A2C4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__gstin__71F2AEF9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__gstin__71F2AEF9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__porting__017F0B4C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__porting__017F0B4C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__inetemail__77F5A112]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__inetemail__77F5A112]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__inetsmsse__4DFF6746]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__inetsmsse__4DFF6746]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__ExtraBedC__3D7E1B63]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__ExtraBedC__3D7E1B63]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__domemails__6E9BE36B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__domemails__6E9BE36B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__dobemails__6DA7BF32]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__dobemails__6DA7BF32]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__domsmssen__6CB39AF9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__domsmssen__6CB39AF9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__dobsmssen__6BBF76C0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__dobsmssen__6BBF76C0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__channelex__38B96646]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__channelex__38B96646]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__channelex__37C5420D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__channelex__37C5420D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__staahid__36D11DD4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__staahid__36D11DD4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__channelam__35DCF99B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__channelam__35DCF99B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__ischannel__34E8D562]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__ischannel__34E8D562]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__channel__33F4B129]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__channel__33F4B129]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__noshow__33008CF0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__noshow__33008CF0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__st__320C68B7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__st__320C68B7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_stopextra]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_stopextra]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_NettRentExcluingST]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_NettRentExcluingST]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_mktmgr]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_mktmgr]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_NettRent]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_NettRent]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_LTTYpe]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_LTTYpe]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_RentType1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_RentType1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_AllInclusive]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_AllInclusive]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest__GI__7375FE28]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__guest__GI__7375FE28]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest__FoodCoupo__60233292]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__guest__FoodCoupo__60233292]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest__cardsissu__61FA018A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__guest__cardsissu__61FA018A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest__emailtime__739F2AC6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__guest__emailtime__739F2AC6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest__tnxemails__72AB068D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__guest__tnxemails__72AB068D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest__smssent__5A0D3CDE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__guest__smssent__5A0D3CDE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_VoucherNo]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_VoucherNo]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_PIN]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_PIN]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_nationality]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_nationality]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_Address]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_Address]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_email]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_email]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_fax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_fax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_Phone]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_Phone]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_State]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_State]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_City]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_City]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_Add3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_Add3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_Add2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_Add2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_Add1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_Add1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_Name]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_Name]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest__wutimeset__1845A26F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__guest__wutimeset__1845A26F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest__wustatus__17517E36]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__guest__wustatus__17517E36]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest__cistatus__165D59FD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__guest__cistatus__165D59FD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_autoqty]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_autoqty]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_autoitem]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_autoitem]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_AUTOAMT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_AUTOAMT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_AUTOBILL]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_AUTOBILL]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_opentoall]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_opentoall]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GUEST__QNAME__5C0B2947]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__GUEST__QNAME__5C0B2947]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__guest__qcheck__5B17050E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF__guest__qcheck__5B17050E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_destination]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_destination]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_arrivedfrom]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_arrivedfrom]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_OMale]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_OMale]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_FP_details]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_FP_details]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_company]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_company]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_LT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_LT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_reserve_adv_cno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_reserve_adv_cno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_reserve_adv]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_reserve_adv]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_reserve_ref]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_reserve_ref]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_userchkout]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_userchkout]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_userchkin]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_userchkin]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_BNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_BNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_grpcounter]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_grpcounter]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_grpname]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_grpname]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_CHILD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_CHILD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_FEMALE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_FEMALE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_MALE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_MALE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_SC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_SC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_DISCOUNT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_DISCOUNT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_RENT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_RENT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_FOODPLAN]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_FOODPLAN]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_GRNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_GRNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_CI_DATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_CI_DATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GUEST_ENO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GUEST] DROP CONSTRAINT [DF_GUEST_ENO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GSTACtnum__name__2C42754C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GSTACtnum] DROP CONSTRAINT [DF__GSTACtnum__name__2C42754C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GSPLIT_SPLIT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GSPLIT] DROP CONSTRAINT [DF_GSPLIT_SPLIT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GRENT_NettRent]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GRENT] DROP CONSTRAINT [DF_GRENT_NettRent]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GRENT_FEMALE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GRENT] DROP CONSTRAINT [DF_GRENT_FEMALE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GRENT_HEAD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GRENT] DROP CONSTRAINT [DF_GRENT_HEAD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GRENT_RENT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GRENT] DROP CONSTRAINT [DF_GRENT_RENT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GPASSPORT_visalifetime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GPASSPORT] DROP CONSTRAINT [DF_GPASSPORT_visalifetime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GPASSPORT_cformno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GPASSPORT] DROP CONSTRAINT [DF_GPASSPORT_cformno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GPASSPORT_purpose]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GPASSPORT] DROP CONSTRAINT [DF_GPASSPORT_purpose]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GPASSPORT_stayduration]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GPASSPORT] DROP CONSTRAINT [DF_GPASSPORT_stayduration]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GPASSPORT_employed]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GPASSPORT] DROP CONSTRAINT [DF_GPASSPORT_employed]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GPASSPORT_port]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GPASSPORT] DROP CONSTRAINT [DF_GPASSPORT_port]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GPASSPORT_doa]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GPASSPORT] DROP CONSTRAINT [DF_GPASSPORT_doa]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GLPRIMLD__doo__02DFA5DE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF__GLPRIMLD__doo__02DFA5DE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GLPRIMLD__usernm__01EB81A5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF__GLPRIMLD__usernm__01EB81A5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GLPRIMLD__gstin__6B45B16A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF__GLPRIMLD__gstin__6B45B16A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_email]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_email]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_AllowCredit]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_AllowCredit]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_PERMIT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_PERMIT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_subgrp]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_subgrp]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_Deletable]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_Deletable]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT12]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT12]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT12]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT12]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT11]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT11]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT11]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT11]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT10]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT10]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT10]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT10]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_CREDIT1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_CREDIT1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_DEBIT1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_DEBIT1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_ONAC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_ONAC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_ASSET]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_ASSET]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_TXNNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_TXNNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_LTXNDT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_LTXNDT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_OPGBAL]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_OPGBAL]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_BALANCE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_BALANCE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GLPRIMLD_COMPANY]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GLPRIMLD] DROP CONSTRAINT [DF_GLPRIMLD_COMPANY]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_gimages_pictype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[gimages] DROP CONSTRAINT [DF_gimages_pictype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GFOODPLAN_CHARGES]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GFOODPLAN] DROP CONSTRAINT [DF_GFOODPLAN_CHARGES]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GFOODPLAN_DESCRIPTION]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GFOODPLAN] DROP CONSTRAINT [DF_GFOODPLAN_DESCRIPTION]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GFOODPLAN_NAME]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GFOODPLAN] DROP CONSTRAINT [DF_GFOODPLAN_NAME]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__gcomSet__renttyp__3335971A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[gcomSet] DROP CONSTRAINT [DF__gcomSet__renttyp__3335971A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_gcomSet_rent2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[gcomSet] DROP CONSTRAINT [DF_gcomSet_rent2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_gcomSet_rent1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[gcomSet] DROP CONSTRAINT [DF_gcomSet_rent1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_gcomSet_sc]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[gcomSet] DROP CONSTRAINT [DF_gcomSet_sc]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_gcomSet_discount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[gcomSet] DROP CONSTRAINT [DF_gcomSet_discount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_gcomSet_fptype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[gcomSet] DROP CONSTRAINT [DF_gcomSet_fptype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCompanyFoodDiscount_fooddiscount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCompanyFoodDiscount] DROP CONSTRAINT [DF_GCompanyFoodDiscount_fooddiscount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GCOMPANY__commtd__6B3663FC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF__GCOMPANY__commtd__6B3663FC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GCOMPANY__commel__3BCC73C9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF__GCOMPANY__commel__3BCC73C9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GCOMPANY__commgl__3AD84F90]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF__GCOMPANY__commgl__3AD84F90]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GCOMPANY__commtc__39E42B57]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF__GCOMPANY__commtc__39E42B57]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GCOMPANY__commgs__38F0071E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF__GCOMPANY__commgs__38F0071E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GCOMPANY__commra__37FBE2E5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF__GCOMPANY__commra__37FBE2E5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GCOMPANY__mktmgr__56606E74]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF__GCOMPANY__mktmgr__56606E74]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GCOMPANY__stopse__2BA02DA1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF__GCOMPANY__stopse__2BA02DA1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__GCOMPANY__gstin__73DAF76B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF__GCOMPANY__gstin__73DAF76B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_onlinestatus]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_onlinestatus]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_gateqY]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_gateqY]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_pw]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_pw]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_CRS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_CRS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_renttype1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_renttype1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_FPType]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_FPType]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_lttype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_lttype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_renttype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_renttype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_PROFILE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_PROFILE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_HITCOUNT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_HITCOUNT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_LASTVISIT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_LASTVISIT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_EMAIL]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_EMAIL]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_FAX]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_FAX]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_PHONE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_PHONE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_CONTACT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_CONTACT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_PIN]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_PIN]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_STATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_STATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_CITY]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_CITY]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_ADD3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_ADD3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_ADD2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_ADD2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_GCOMPANY_ADD1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[GCOMPANY] DROP CONSTRAINT [DF_GCOMPANY_ADD1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__FINYEAR__commcno__4461B9CA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF__FINYEAR__commcno__4461B9CA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__FINYEAR__ns_sno__1AF4C48C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF__FINYEAR__ns_sno__1AF4C48C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FINYEAR_TA_ANo]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF_FINYEAR_TA_ANo]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FINYEAR_PackageBNo]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF_FINYEAR_PackageBNo]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__FINYEAR__bno__11D4A34F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF__FINYEAR__bno__11D4A34F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FINYEAR_bno2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF_FINYEAR_bno2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FINYEAR_bno1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF_FINYEAR_bno1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FINYEAR_detached]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF_FINYEAR_detached]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FINYEAR_CommnVno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF_FINYEAR_CommnVno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FINYEAR_ADvBFADate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF_FINYEAR_ADvBFADate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FINYEAR_Blocked]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF_FINYEAR_Blocked]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FINYEAR_OnAcRcNo]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FINYEAR] DROP CONSTRAINT [DF_FINYEAR_OnAcRcNo]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FFItems_CValue]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FFItems] DROP CONSTRAINT [DF_FFItems_CValue]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_Table_1_DPercentage]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FFItems] DROP CONSTRAINT [DF_Table_1_DPercentage]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FFItems_Pvalue]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FFItems] DROP CONSTRAINT [DF_FFItems_Pvalue]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_FFItems_STATUS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[FFItems] DROP CONSTRAINT [DF_FFItems_STATUS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_extension_name]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[extension] DROP CONSTRAINT [DF_extension_name]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_exbedco_narration]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[exbedco] DROP CONSTRAINT [DF_exbedco_narration]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EPBXStatus_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EPBXStatus] DROP CONSTRAINT [DF_EPBXStatus_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EPBXData_Txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EPBXData] DROP CONSTRAINT [DF_EPBXData_Txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EPBXData_Details]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EPBXData] DROP CONSTRAINT [DF_EPBXData_Details]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EPBX_direction]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EPBX] DROP CONSTRAINT [DF_EPBX_direction]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EPBX_STATUS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EPBX] DROP CONSTRAINT [DF_EPBX_STATUS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_emailreport_usernm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[emailreport] DROP CONSTRAINT [DF_emailreport_usernm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__einvoiceh__compa__29E65A79]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[einvoiceheader] DROP CONSTRAINT [DF__einvoiceh__compa__29E65A79]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__einvoicehea__cno__28F23640]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[einvoiceheader] DROP CONSTRAINT [DF__einvoicehea__cno__28F23640]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EDITASST_kot2type]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF_EDITASST_kot2type]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EDITASST_kotstep2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF_EDITASST_kotstep2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__editasst__resdt7__436CCA3A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF__editasst__resdt7__436CCA3A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__editasst__resdt6__4278A601]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF__editasst__resdt6__4278A601]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__editasst__resdt5__418481C8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF__editasst__resdt5__418481C8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__editasst__resdt4__40905D8F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF__editasst__resdt4__40905D8F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__editasst__resdt3__3F9C3956]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF__editasst__resdt3__3F9C3956]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__editasst__resdt2__3EA8151D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF__editasst__resdt2__3EA8151D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__editasst__resdt1__3DB3F0E4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF__editasst__resdt1__3DB3F0E4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EDITASST_coprinter]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF_EDITASST_coprinter]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EDITASST_outlet]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF_EDITASST_outlet]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EDITASST_misprinter]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF_EDITASST_misprinter]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EDITASST_glname]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF_EDITASST_glname]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EDITASST_T2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF_EDITASST_T2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EDITASST_T1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF_EDITASST_T1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_EDITASST_TXNDT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[EDITASST] DROP CONSTRAINT [DF_EDITASST_TXNDT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__dummyserv__prepe__7C5FF2DD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYSERVICE] DROP CONSTRAINT [DF__dummyserv__prepe__7C5FF2DD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__dummyrent__sc__74AFE73B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYRENT] DROP CONSTRAINT [DF__dummyrent__sc__74AFE73B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__dummypp__VisaLif__6BBCA8C9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYPP] DROP CONSTRAINT [DF__dummypp__VisaLif__6BBCA8C9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_DUMMYPP_sex]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYPP] DROP CONSTRAINT [DF_DUMMYPP_sex]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_DUMMYPCC_partic]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYPCC] DROP CONSTRAINT [DF_DUMMYPCC_partic]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__dummyMIS__otaren__1376C782]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[dummyMIS] DROP CONSTRAINT [DF__dummyMIS__otaren__1376C782]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_dummyMIS_roomservice]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[dummyMIS] DROP CONSTRAINT [DF_dummyMIS_roomservice]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__servi__171946B0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__servi__171946B0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__servi__16252277]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__servi__16252277]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__servi__1530FE3E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__servi__1530FE3E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__servi__143CDA05]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__servi__143CDA05]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__servi__1348B5CC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__servi__1348B5CC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__servi__12549193]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__servi__12549193]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__servi__11606D5A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__servi__11606D5A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__servi__106C4921]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__servi__106C4921]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__servi__0F7824E8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__servi__0F7824E8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__servi__0E8400AF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__servi__0E8400AF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL1__sc__0D8FDC76]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL1__sc__0D8FDC76]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL1__lt__0C9BB83D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL1__lt__0C9BB83D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__disco__0BA79404]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__disco__0BA79404]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL1__rent__0AB36FCB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL1__rent__0AB36FCB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__advan__09BF4B92]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__advan__09BF4B92]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__total__08CB2759]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__total__08CB2759]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL__gname__07D70320]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL__gname__07D70320]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL1__gno__06E2DEE7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL1__gno__06E2DEE7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__DUMMYBILL1__rno__05EEBAAE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[DUMMYBILL1] DROP CONSTRAINT [DF__DUMMYBILL1__rno__05EEBAAE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__doorcust__GSTIN__26DB7884]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF__doorcust__GSTIN__26DB7884]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__doorcust__domema__763D0533]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF__doorcust__domema__763D0533]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__doorcust__dobema__7548E0FA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF__doorcust__dobema__7548E0FA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__doorcust__domsms__7454BCC1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF__doorcust__domsms__7454BCC1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__doorcust__dobsms__73609888]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF__doorcust__dobsms__73609888]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__doorcust__domd__308E3499]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF__doorcust__domd__308E3499]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__doorcust__domm__2F9A1060]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF__doorcust__domm__2F9A1060]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__doorcust__dobd__2EA5EC27]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF__doorcust__dobd__2EA5EC27]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__doorcust__dobm__2DB1C7EE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF__doorcust__dobm__2DB1C7EE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_doorcust_discountrate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF_doorcust_discountrate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_doorcust_phone]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF_doorcust_phone]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_doorcust_area]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF_doorcust_area]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_doorcust_add2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF_doorcust_add2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_doorcust_add1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF_doorcust_add1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_doorcust_name]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[doorcust] DROP CONSTRAINT [DF_doorcust_name]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkotsqno_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkotsqno] DROP CONSTRAINT [DF_currentkotsqno_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkotm_rate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkotm] DROP CONSTRAINT [DF_currentkotm_rate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkotk_kot]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkotk] DROP CONSTRAINT [DF_currentkotk_kot]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__currentkotb__dup__40B11C19]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkotbill] DROP CONSTRAINT [DF__currentkotb__dup__40B11C19]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkotbill_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkotbill] DROP CONSTRAINT [DF_currentkotbill_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__currentko__kotco__7DAE7A68]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF__currentko__kotco__7DAE7A68]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__currentko__packi__465E457E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF__currentko__packi__465E457E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__currentko__cess2__456A2145]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF__currentko__cess2__456A2145]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__currentko__cess2__4475FD0C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF__currentko__cess2__4475FD0C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_sqno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_sqno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_sc1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_sc1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_cess1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_cess1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_st1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_st1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_ppcouponamt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_ppcouponamt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_sno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_sno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_ratetype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_ratetype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_ROAMT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_ROAMT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_SCAMT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_SCAMT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_SCRATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_SCRATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_DAMT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_DAMT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_DRATE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_DRATE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_currentkot_BNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[currentkot] DROP CONSTRAINT [DF_currentkot_BNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CRSRates_renttypename]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CRSRates] DROP CONSTRAINT [DF_CRSRates_renttypename]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CRSINV_message]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CRSINV] DROP CONSTRAINT [DF_CRSINV_message]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CRSINV_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CRSINV] DROP CONSTRAINT [DF_CRSINV_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_crcardhold_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[crcardhold] DROP CONSTRAINT [DF_crcardhold_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_crcardhold_gno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[crcardhold] DROP CONSTRAINT [DF_crcardhold_gno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COUPON_Times]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[COUPON] DROP CONSTRAINT [DF_COUPON_Times]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COUPON_Txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[COUPON] DROP CONSTRAINT [DF_COUPON_Txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COUPON_Gno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[COUPON] DROP CONSTRAINT [DF_COUPON_Gno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COUPON_Spl]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[COUPON] DROP CONSTRAINT [DF_COUPON_Spl]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CONFIG_CODE2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CONFIG] DROP CONSTRAINT [DF_CONFIG_CODE2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__comuser__host_id__305AC11D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[comuser] DROP CONSTRAINT [DF__comuser__host_id__305AC11D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__comuser__session__5D26D6E3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[comuser] DROP CONSTRAINT [DF__comuser__session__5D26D6E3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__comuser__inet__5C32B2AA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[comuser] DROP CONSTRAINT [DF__comuser__inet__5C32B2AA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__comuser__CashBox__590CC29A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[comuser] DROP CONSTRAINT [DF__comuser__CashBox__590CC29A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__comuser__userno__5A2ECAEE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[comuser] DROP CONSTRAINT [DF__comuser__userno__5A2ECAEE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_comuser_control]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[comuser] DROP CONSTRAINT [DF_comuser_control]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_comuser_chktime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[comuser] DROP CONSTRAINT [DF_comuser_chktime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_comuser_logintime]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[comuser] DROP CONSTRAINT [DF_comuser_logintime]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__Comtest1__system__078C1F06]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Comtest1] DROP CONSTRAINT [DF__Comtest1__system__078C1F06]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__Comtest1__sms__0697FACD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Comtest1] DROP CONSTRAINT [DF__Comtest1__sms__0697FACD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_comtest_calldate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[comtest] DROP CONSTRAINT [DF_comtest_calldate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_comparty_name]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[COMPARTY] DROP CONSTRAINT [DF_comparty_name]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__company__GSTINNA__10268876]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF__company__GSTINNA__10268876]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__company__PIN__7A4A5FDD]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF__company__PIN__7A4A5FDD]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__company__STATE__79563BA4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF__company__STATE__79563BA4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__company__COT__59DBF99D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF__company__COT__59DBF99D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__company__GSTIN__76B76416]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF__company__GSTIN__76B76416]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__company__billpre__67752086]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF__company__billpre__67752086]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_company_serialno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_company_serialno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__company__lic2__67C4545A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF__company__lic2__67C4545A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__company__lic1__66D03021]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF__company__lic1__66D03021]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__company__fax__43B27E58]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF__company__fax__43B27E58]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__company__link__5E1AFB1C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF__company__link__5E1AFB1C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__company__g_final__064B1413]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF__company__g_final__064B1413]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COMPANY_BDT2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_COMPANY_BDT2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COMPANY_BNO2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_COMPANY_BNO2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COMPANY_BDT1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_COMPANY_BDT1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COMPANY_BNO1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_COMPANY_BNO1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COMPANY]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_COMPANY]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COMPANY_BNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_COMPANY_BNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COMPANY_ADVRDT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_COMPANY_ADVRDT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COMPANY_ADVRNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_COMPANY_ADVRNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COMPANY_city]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_COMPANY_city]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COMPANY_add2]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_COMPANY_add2]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_COMPANY_add1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[company] DROP CONSTRAINT [DF_COMPANY_add1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_commission_mop]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[commission] DROP CONSTRAINT [DF_commission_mop]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_comlog_txntype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[comlog] DROP CONSTRAINT [DF_comlog_txntype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_comlog_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[comlog] DROP CONSTRAINT [DF_comlog_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ColorForm_GFcolor]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ColorForm] DROP CONSTRAINT [DF_ColorForm_GFcolor]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ColorForm_FrameForeColor]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ColorForm] DROP CONSTRAINT [DF_ColorForm_FrameForeColor]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ColorForm_BCFixed]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ColorForm] DROP CONSTRAINT [DF_ColorForm_BCFixed]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_chqformat_e1width]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[chqformat] DROP CONSTRAINT [DF_chqformat_e1width]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_chqformat_printvou]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[chqformat] DROP CONSTRAINT [DF_chqformat_printvou]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_chqformat_orientation]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[chqformat] DROP CONSTRAINT [DF_chqformat_orientation]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__chqformat__iheig__0DF7F259]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[chqformat] DROP CONSTRAINT [DF__chqformat__iheig__0DF7F259]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHART_PERMIT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHART] DROP CONSTRAINT [DF_CHART_PERMIT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHART_ONAC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHART] DROP CONSTRAINT [DF_CHART_ONAC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHART_ASSET]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHART] DROP CONSTRAINT [DF_CHART_ASSET]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHART_TDNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHART] DROP CONSTRAINT [DF_CHART_TDNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__CHALAN__TXNCAT__2615C995]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF__CHALAN__TXNCAT__2615C995]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__CHALAN__email__15DF61CC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF__CHALAN__email__15DF61CC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__CHALAN__gstinnam__14EB3D93]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF__CHALAN__gstinnam__14EB3D93]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__CHALAN__pin__13F7195A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF__CHALAN__pin__13F7195A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__CHALAN__EINVOICE__1302F521]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF__CHALAN__EINVOICE__1302F521]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__CHALAN__cabready__1B69C5D8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF__CHALAN__cabready__1B69C5D8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__CHALAN__gstin__70FE8AC0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF__CHALAN__gstin__70FE8AC0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_cess]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_cess]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_cancelled]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_cancelled]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_minkm_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_minkm_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_minkm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_minkm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_otherchgs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_otherchgs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_amt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_amt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_grno_co1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_grno_co1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_split]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_split]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_finaltax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_finaltax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_finalbata_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_finalbata_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_finalbata]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_finalbata]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_finalbasic_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_finalbasic_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_finalbasic]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_finalbasic]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_discount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_discount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_GNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_GNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_GLACTNUM]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_GLACTNUM]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_CC_BANK]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_CC_BANK]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_CC_NUM]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_CC_NUM]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_CC_NAME]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_CC_NAME]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_mop]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_mop]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_maxhours_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_maxhours_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_maxkm_t]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_maxkm_t]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_maxhours]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_maxhours]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_maxkm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_maxkm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_OGNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_OGNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_NOTRAVELAGENT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_NOTRAVELAGENT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_ereading]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_ereading]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_STATUS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_STATUS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_grno_T]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_grno_T]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_grno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_grno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_totbata1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_totbata1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_totbata]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_totbata]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_stax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_stax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_pamt1]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_pamt1]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_pamt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_pamt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_finalamt_T]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_finalamt_T]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_finalamt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_finalamt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_ADVANCE_T]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_ADVANCE_T]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_ADVANCE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_ADVANCE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_BATA_T]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_BATA_T]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_PERHOUR_T]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_PERHOUR_T]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_PERKM_T]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_PERKM_T]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_BASICAMT_T]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_BASICAMT_T]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_TTTYPE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_TTTYPE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_BATA]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_BATA]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_PERHOUR]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_PERHOUR]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_PERKM]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_PERKM]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_BASICAMT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_BASICAMT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_TRAVELAGENT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_TRAVELAGENT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_V_NUMBER]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_V_NUMBER]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_V_MAKE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_V_MAKE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_V_TYPE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_V_TYPE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_SREADING]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_SREADING]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_DRIVER]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_DRIVER]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_PHONENO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_PHONENO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CHALAN_STYPE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CHALAN] DROP CONSTRAINT [DF_CHALAN_STYPE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_celtickets_sessionid]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[celtickets] DROP CONSTRAINT [DF_celtickets_sessionid]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_celtickets_ID]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[celtickets] DROP CONSTRAINT [DF_celtickets_ID]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_celtickets_pin]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[celtickets] DROP CONSTRAINT [DF_celtickets_pin]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_celterms_condition]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[celterms] DROP CONSTRAINT [DF_celterms_condition]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_celsessionp_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[celsessionp] DROP CONSTRAINT [DF_celsessionp_txndt]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_celsession_processstep]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[celsession] DROP CONSTRAINT [DF_celsession_processstep]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_celmaster_glac]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[celmaster] DROP CONSTRAINT [DF_celmaster_glac]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_celmaster_company]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[celmaster] DROP CONSTRAINT [DF_celmaster_company]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_celcategory_price]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[celcategory] DROP CONSTRAINT [DF_celcategory_price]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_celcategory_sold]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[celcategory] DROP CONSTRAINT [DF_celcategory_sold]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_cashboxuser_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[cashboxuser] DROP CONSTRAINT [DF_cashboxuser_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CashBox_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CashBox] DROP CONSTRAINT [DF_CashBox_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_CashBox_opgbal]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CashBox] DROP CONSTRAINT [DF_CashBox_opgbal]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLPOSITION_OULET]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLPOSITION] DROP CONSTRAINT [DF_BILLPOSITION_OULET]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLPOSITION_SERVICETYPE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLPOSITION] DROP CONSTRAINT [DF_BILLPOSITION_SERVICETYPE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_billhist2_roomservice]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[billhist2] DROP CONSTRAINT [DF_billhist2_roomservice]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BILLHIST1__irnsu__7B2B6B90]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF__BILLHIST1__irnsu__7B2B6B90]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BILLHIST1__nogro__146AEBBB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF__BILLHIST1__nogro__146AEBBB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BILLHIST1__gstin__6D2DF9DC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF__BILLHIST1__gstin__6D2DF9DC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST1_GRNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF_BILLHIST1_GRNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST1_MOP]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF_BILLHIST1_MOP]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST1_GLACTNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF_BILLHIST1_GLACTNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST1_CRTYPE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF_BILLHIST1_CRTYPE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST1_CRNUM]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF_BILLHIST1_CRNUM]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST1_CRNAME]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF_BILLHIST1_CRNAME]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST1_foodbill]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF_BILLHIST1_foodbill]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST1_SPLDISCOUNT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF_BILLHIST1_SPLDISCOUNT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST1_ADVANCE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF_BILLHIST1_ADVANCE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST1_SPLIT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST1] DROP CONSTRAINT [DF_BILLHIST1_SPLIT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BILLHIST__gstEXB__3F7D091C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [DF__BILLHIST__gstEXB__3F7D091C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BILLHIST__foodgs__125F7E8B]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [DF__BILLHIST__foodgs__125F7E8B]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BILLHIST__food__116B5A52]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [DF__BILLHIST__food__116B5A52]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BILLHIST__exbedG__10773619]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [DF__BILLHIST__exbedG__10773619]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BILLHIST__extrab__0F8311E0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [DF__BILLHIST__extrab__0F8311E0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BILLHIST__cess2__4DDF6BB5]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [DF__BILLHIST__cess2__4DDF6BB5]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST_CESS]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [DF_BILLHIST_CESS]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST_DISCOUNT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [DF_BILLHIST_DISCOUNT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST_OtherChgs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [DF_BILLHIST_OtherChgs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST_RENT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [DF_BILLHIST_RENT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BILLHIST_SPLIT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BILLHIST] DROP CONSTRAINT [DF_BILLHIST_SPLIT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__bill2__igstamt__5AD01DD6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[bill2] DROP CONSTRAINT [DF__bill2__igstamt__5AD01DD6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__bill2__LRATE__08D61451]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[bill2] DROP CONSTRAINT [DF__bill2__LRATE__08D61451]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__bill2__cess2__4D0B430D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[bill2] DROP CONSTRAINT [DF__bill2__cess2__4D0B430D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BASIC_rdaysdate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF_BASIC_rdaysdate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BASIC_rdaystemp]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF_BASIC_rdaystemp]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BASIC_rdays]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF_BASIC_rdays]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BASIC_crs]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF_BASIC_crs]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BASIC__qcheck__5AEE82B9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF__BASIC__qcheck__5AEE82B9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BASIC_fbc]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF_BASIC_fbc]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BASIC_eddays]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF_BASIC_eddays]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__basic__olp__536CF4BF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF__basic__olp__536CF4BF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BASIC_VPDays]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF_BASIC_VPDays]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BASIC__CODE9__6FECC8CC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF__BASIC__CODE9__6FECC8CC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BASIC__CODE8__6EF8A493]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF__BASIC__CODE8__6EF8A493]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BASIC__userno__6E04805A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BASIC] DROP CONSTRAINT [DF__BASIC__userno__6E04805A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_bardiscount_commission]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[bardiscount] DROP CONSTRAINT [DF_bardiscount_commission]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_barcoupon_discountrate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[barcoupon] DROP CONSTRAINT [DF_barcoupon_discountrate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_barcoupon_commnrate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[barcoupon] DROP CONSTRAINT [DF_barcoupon_commnrate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_barcoupon_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[barcoupon] DROP CONSTRAINT [DF_barcoupon_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_barcoupon_couponstatus]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[barcoupon] DROP CONSTRAINT [DF_barcoupon_couponstatus]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_barcoupon_couponeno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[barcoupon] DROP CONSTRAINT [DF_barcoupon_couponeno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_barcoupon_couponsno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[barcoupon] DROP CONSTRAINT [DF_barcoupon_couponsno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_barcoupon_bookno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[barcoupon] DROP CONSTRAINT [DF_barcoupon_bookno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquetVA__taxac__61BC4730]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquetVATmaster] DROP CONSTRAINT [DF__banquetVA__taxac__61BC4730]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquetVA__taxsh__60C822F7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquetVATmaster] DROP CONSTRAINT [DF__banquetVA__taxsh__60C822F7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquetVA__taxna__5FD3FEBE]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquetVATmaster] DROP CONSTRAINT [DF__banquetVA__taxna__5FD3FEBE]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquetVA__cessn__41999061]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquetVATmaster] DROP CONSTRAINT [DF__banquetVA__cessn__41999061]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquetVA__cesso__40A56C28]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquetVATmaster] DROP CONSTRAINT [DF__banquetVA__cesso__40A56C28]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquetVA__cess2__3FB147EF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquetVATmaster] DROP CONSTRAINT [DF__banquetVA__cess2__3FB147EF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquetVA__cessn__3EBD23B6]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquetVATmaster] DROP CONSTRAINT [DF__banquetVA__cessn__3EBD23B6]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquetVA__cesso__3DC8FF7D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquetVATmaster] DROP CONSTRAINT [DF__banquetVA__cesso__3DC8FF7D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquetVA__STTAB__49C3F6B7]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquetVATmaster] DROP CONSTRAINT [DF__banquetVA__STTAB__49C3F6B7]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_Banquet1_mode]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[Banquet1] DROP CONSTRAINT [DF_Banquet1_mode]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__SEZ__7ADDEF78]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__SEZ__7ADDEF78]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__TXNCAT__2521A55C]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__TXNCAT__2521A55C]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__EINVOIC__120ED0E8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__EINVOIC__120ED0E8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__GSTINNA__111AACAF]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__GSTINNA__111AACAF]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__gstin__6F16424E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__gstin__6F16424E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__kkcfood__4381D8D3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__kkcfood__4381D8D3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__kkcbnq__428DB49A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__kkcbnq__428DB49A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__charged__2AF94F87]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__charged__2AF94F87]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__RATE1__2A052B4E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__RATE1__2A052B4E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__BNQ2__29110715]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__BNQ2__29110715]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__BNQ1__281CE2DC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__BNQ1__281CE2DC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__VATFOOD__2728BEA3]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__VATFOOD__2728BEA3]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_cessfood]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_cessfood]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__STFOOD__26349A6A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__STFOOD__26349A6A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__LTBNQ__25407631]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__LTBNQ__25407631]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_cessbnq]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_cessbnq]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__STBNQ__244C51F8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__STBNQ__244C51F8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__cancell__64EA2048]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__cancell__64EA2048]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banquet__fax__5CACADF9]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF__banquet__fax__5CACADF9]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_address]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_address]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_billamount]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_billamount]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_chargedpax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_chargedpax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_contactno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_contactno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_contactperson]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_contactperson]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_hall]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_hall]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_grno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_grno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_glnum]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_glnum]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_crbank]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_crbank]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_crnum]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_crnum]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_crname]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_crname]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_mop]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_mop]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_billno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_billno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_status]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_status]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_rate]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_rate]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_maxpax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_maxpax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_minpax]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_minpax]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_banquet_cno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banquet] DROP CONSTRAINT [DF_banquet_cno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BanqMaste__billp__700A6687]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BanqMaster] DROP CONSTRAINT [DF__BanqMaste__billp__700A6687]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BanqMaste__bnqst__2AB62B09]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BanqMaster] DROP CONSTRAINT [DF__BanqMaste__bnqst__2AB62B09]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BanqMaste__bnqva__29C206D0]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BanqMaster] DROP CONSTRAINT [DF__BanqMaste__bnqva__29C206D0]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BanqMaste__lttab__28CDE297]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BanqMaster] DROP CONSTRAINT [DF__BanqMaste__lttab__28CDE297]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BanqMaste__sttab__267ABA7A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BanqMaster] DROP CONSTRAINT [DF__BanqMaste__sttab__267ABA7A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_BanqFood_Veg]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BanqFood] DROP CONSTRAINT [DF_BanqFood_Veg]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BanqDummy__SERVI__735B0927]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BanqDummy] DROP CONSTRAINT [DF__BanqDummy__SERVI__735B0927]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banqco__info1__775ADAAC]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banqco] DROP CONSTRAINT [DF__banqco__info1__775ADAAC]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banqco__WEBSITE__7666B673]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banqco] DROP CONSTRAINT [DF__banqco__WEBSITE__7666B673]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banqco__EMAIL__7572923A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banqco] DROP CONSTRAINT [DF__banqco__EMAIL__7572923A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banqco__PHONE__747E6E01]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banqco] DROP CONSTRAINT [DF__banqco__PHONE__747E6E01]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banqco__STATE__738A49C8]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banqco] DROP CONSTRAINT [DF__banqco__STATE__738A49C8]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banqco__CITY__7296258F]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banqco] DROP CONSTRAINT [DF__banqco__CITY__7296258F]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banqco__ADD3__71A20156]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banqco] DROP CONSTRAINT [DF__banqco__ADD3__71A20156]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banqco__ADD2__70ADDD1D]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banqco] DROP CONSTRAINT [DF__banqco__ADD2__70ADDD1D]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banqco__ADD1__6FB9B8E4]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banqco] DROP CONSTRAINT [DF__banqco__ADD1__6FB9B8E4]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banqco__bnqname__6EC594AB]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banqco] DROP CONSTRAINT [DF__banqco__bnqname__6EC594AB]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__banqbilln__billn__340B5670]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[banqbillno] DROP CONSTRAINT [DF__banqbilln__billn__340B5670]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__BanqBill__SERVIC__1BFD2C07]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[BanqBill] DROP CONSTRAINT [DF__BanqBill__SERVIC__1BFD2C07]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADVANCE_usernm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ADVANCE] DROP CONSTRAINT [DF_ADVANCE_usernm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADVANCE_SPLIT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ADVANCE] DROP CONSTRAINT [DF_ADVANCE_SPLIT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADVANCE_AMOUNT]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ADVANCE] DROP CONSTRAINT [DF_ADVANCE_AMOUNT]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADVANCE_GRNO]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ADVANCE] DROP CONSTRAINT [DF_ADVANCE_GRNO]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_ADVANCE_MOP]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[ADVANCE] DROP CONSTRAINT [DF_ADVANCE_MOP]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__acclogdup__txntr__0BC6C43E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[acclogdup] DROP CONSTRAINT [DF__acclogdup__txntr__0BC6C43E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__acclogdup__sessi__6003438E]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[acclogdup] DROP CONSTRAINT [DF__acclogdup__sessi__6003438E]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__acclog__txntrace__07F6335A]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[acclog] DROP CONSTRAINT [DF__acclog__txntrace__07F6335A]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF__acclog__sessioni__5F0F1F55]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[acclog] DROP CONSTRAINT [DF__acclog__sessioni__5F0F1F55]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_acclog_gno]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[acclog] DROP CONSTRAINT [DF_acclog_gno]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_acclog_txntype]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[acclog] DROP CONSTRAINT [DF_acclog_txntype]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_acclog_narration]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[acclog] DROP CONSTRAINT [DF_acclog_narration]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_acclog_usernm]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[acclog] DROP CONSTRAINT [DF_acclog_usernm]
END
GO
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DF_acclog_txndt]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[acclog] DROP CONSTRAINT [DF_acclog_txndt]
END
GO
/****** Object:  Table [dbo].[Wings]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Wings]') AND type in (N'U'))
DROP TABLE [dbo].[Wings]
GO
/****** Object:  Table [dbo].[whatsappset]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[whatsappset]') AND type in (N'U'))
DROP TABLE [dbo].[whatsappset]
GO
/****** Object:  Table [dbo].[whatsappmsg]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[whatsappmsg]') AND type in (N'U'))
DROP TABLE [dbo].[whatsappmsg]
GO
/****** Object:  Table [dbo].[wakeupresults]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[wakeupresults]') AND type in (N'U'))
DROP TABLE [dbo].[wakeupresults]
GO
/****** Object:  Table [dbo].[WAITER]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[WAITER]') AND type in (N'U'))
DROP TABLE [dbo].[WAITER]
GO
/****** Object:  Table [dbo].[vouhist]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[vouhist]') AND type in (N'U'))
DROP TABLE [dbo].[vouhist]
GO
/****** Object:  Table [dbo].[VOUCHERS]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[VOUCHERS]') AND type in (N'U'))
DROP TABLE [dbo].[VOUCHERS]
GO
/****** Object:  Table [dbo].[vmake]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[vmake]') AND type in (N'U'))
DROP TABLE [dbo].[vmake]
GO
/****** Object:  Table [dbo].[vchdeleted]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[vchdeleted]') AND type in (N'U'))
DROP TABLE [dbo].[vchdeleted]
GO
/****** Object:  Table [dbo].[VATTABLER]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[VATTABLER]') AND type in (N'U'))
DROP TABLE [dbo].[VATTABLER]
GO
/****** Object:  Table [dbo].[TXNNO2]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TXNNO2]') AND type in (N'U'))
DROP TABLE [dbo].[TXNNO2]
GO
/****** Object:  Table [dbo].[ttstaxrate]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ttstaxrate]') AND type in (N'U'))
DROP TABLE [dbo].[ttstaxrate]
GO
/****** Object:  Table [dbo].[TTMaster_NT]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TTMaster_NT]') AND type in (N'U'))
DROP TABLE [dbo].[TTMaster_NT]
GO
/****** Object:  Table [dbo].[TTMaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TTMaster]') AND type in (N'U'))
DROP TABLE [dbo].[TTMaster]
GO
/****** Object:  Table [dbo].[TTdescription]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TTdescription]') AND type in (N'U'))
DROP TABLE [dbo].[TTdescription]
GO
/****** Object:  Table [dbo].[ttadvance]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ttadvance]') AND type in (N'U'))
DROP TABLE [dbo].[ttadvance]
GO
/****** Object:  Table [dbo].[travelIRN]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[travelIRN]') AND type in (N'U'))
DROP TABLE [dbo].[travelIRN]
GO
/****** Object:  Table [dbo].[TRAVELAGENT]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TRAVELAGENT]') AND type in (N'U'))
DROP TABLE [dbo].[TRAVELAGENT]
GO
/****** Object:  Table [dbo].[trackid]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[trackid]') AND type in (N'U'))
DROP TABLE [dbo].[trackid]
GO
/****** Object:  Table [dbo].[toutlet1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[toutlet1]') AND type in (N'U'))
DROP TABLE [dbo].[toutlet1]
GO
/****** Object:  Table [dbo].[toutlet]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[toutlet]') AND type in (N'U'))
DROP TABLE [dbo].[toutlet]
GO
/****** Object:  Table [dbo].[TNAME]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TNAME]') AND type in (N'U'))
DROP TABLE [dbo].[TNAME]
GO
/****** Object:  Table [dbo].[TKTmaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TKTmaster]') AND type in (N'U'))
DROP TABLE [dbo].[TKTmaster]
GO
/****** Object:  Table [dbo].[TempTables]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TempTables]') AND type in (N'U'))
DROP TABLE [dbo].[TempTables]
GO
/****** Object:  Table [dbo].[TELEDIR]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TELEDIR]') AND type in (N'U'))
DROP TABLE [dbo].[TELEDIR]
GO
/****** Object:  Table [dbo].[TDSSection]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TDSSection]') AND type in (N'U'))
DROP TABLE [dbo].[TDSSection]
GO
/****** Object:  Table [dbo].[TDDrivers]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TDDrivers]') AND type in (N'U'))
DROP TABLE [dbo].[TDDrivers]
GO
/****** Object:  Table [dbo].[TDCHART]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TDCHART]') AND type in (N'U'))
DROP TABLE [dbo].[TDCHART]
GO
/****** Object:  Table [dbo].[TDCars]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TDCars]') AND type in (N'U'))
DROP TABLE [dbo].[TDCars]
GO
/****** Object:  Table [dbo].[TA_ServiceTaxSetting]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_ServiceTaxSetting]') AND type in (N'U'))
DROP TABLE [dbo].[TA_ServiceTaxSetting]
GO
/****** Object:  Table [dbo].[TA_RoomType]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_RoomType]') AND type in (N'U'))
DROP TABLE [dbo].[TA_RoomType]
GO
/****** Object:  Table [dbo].[TA_RentPeriod]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_RentPeriod]') AND type in (N'U'))
DROP TABLE [dbo].[TA_RentPeriod]
GO
/****** Object:  Table [dbo].[TA_RatePeriod]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_RatePeriod]') AND type in (N'U'))
DROP TABLE [dbo].[TA_RatePeriod]
GO
/****** Object:  Table [dbo].[TA_PaxDetails]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_PaxDetails]') AND type in (N'U'))
DROP TABLE [dbo].[TA_PaxDetails]
GO
/****** Object:  Table [dbo].[TA_ITType]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_ITType]') AND type in (N'U'))
DROP TABLE [dbo].[TA_ITType]
GO
/****** Object:  Table [dbo].[TA_ITList]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_ITList]') AND type in (N'U'))
DROP TABLE [dbo].[TA_ITList]
GO
/****** Object:  Table [dbo].[TA_Itinerary]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_Itinerary]') AND type in (N'U'))
DROP TABLE [dbo].[TA_Itinerary]
GO
/****** Object:  Table [dbo].[TA_Hotel]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_Hotel]') AND type in (N'U'))
DROP TABLE [dbo].[TA_Hotel]
GO
/****** Object:  Table [dbo].[TA_City]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_City]') AND type in (N'U'))
DROP TABLE [dbo].[TA_City]
GO
/****** Object:  Table [dbo].[TA_Chalan]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_Chalan]') AND type in (N'U'))
DROP TABLE [dbo].[TA_Chalan]
GO
/****** Object:  Table [dbo].[TA_Category]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_Category]') AND type in (N'U'))
DROP TABLE [dbo].[TA_Category]
GO
/****** Object:  Table [dbo].[ta_cancel]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ta_cancel]') AND type in (N'U'))
DROP TABLE [dbo].[ta_cancel]
GO
/****** Object:  Table [dbo].[TA_Advance]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TA_Advance]') AND type in (N'U'))
DROP TABLE [dbo].[TA_Advance]
GO
/****** Object:  Table [dbo].[systemsdate]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[systemsdate]') AND type in (N'U'))
DROP TABLE [dbo].[systemsdate]
GO
/****** Object:  Table [dbo].[systems]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[systems]') AND type in (N'U'))
DROP TABLE [dbo].[systems]
GO
/****** Object:  Table [dbo].[suppliersac]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[suppliersac]') AND type in (N'U'))
DROP TABLE [dbo].[suppliersac]
GO
/****** Object:  Table [dbo].[suppliers]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[suppliers]') AND type in (N'U'))
DROP TABLE [dbo].[suppliers]
GO
/****** Object:  Table [dbo].[SUPPGLAC]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[SUPPGLAC]') AND type in (N'U'))
DROP TABLE [dbo].[SUPPGLAC]
GO
/****** Object:  Table [dbo].[sttablerNAME]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sttablerNAME]') AND type in (N'U'))
DROP TABLE [dbo].[sttablerNAME]
GO
/****** Object:  Table [dbo].[STTABLER]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[STTABLER]') AND type in (N'U'))
DROP TABLE [dbo].[STTABLER]
GO
/****** Object:  Table [dbo].[STTABLE]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[STTABLE]') AND type in (N'U'))
DROP TABLE [dbo].[STTABLE]
GO
/****** Object:  Table [dbo].[storepurchaseorder]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[storepurchaseorder]') AND type in (N'U'))
DROP TABLE [dbo].[storepurchaseorder]
GO
/****** Object:  Table [dbo].[StorePrimary]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[StorePrimary]') AND type in (N'U'))
DROP TABLE [dbo].[StorePrimary]
GO
/****** Object:  Table [dbo].[storepohist]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[storepohist]') AND type in (N'U'))
DROP TABLE [dbo].[storepohist]
GO
/****** Object:  Table [dbo].[storeoutlets]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[storeoutlets]') AND type in (N'U'))
DROP TABLE [dbo].[storeoutlets]
GO
/****** Object:  Table [dbo].[storeitems]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[storeitems]') AND type in (N'U'))
DROP TABLE [dbo].[storeitems]
GO
/****** Object:  Table [dbo].[storehist]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[storehist]') AND type in (N'U'))
DROP TABLE [dbo].[storehist]
GO
/****** Object:  Table [dbo].[storedept]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[storedept]') AND type in (N'U'))
DROP TABLE [dbo].[storedept]
GO
/****** Object:  Table [dbo].[storebills]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[storebills]') AND type in (N'U'))
DROP TABLE [dbo].[storebills]
GO
/****** Object:  Table [dbo].[store]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[store]') AND type in (N'U'))
DROP TABLE [dbo].[store]
GO
/****** Object:  Table [dbo].[Stock_channel]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Stock_channel]') AND type in (N'U'))
DROP TABLE [dbo].[Stock_channel]
GO
/****** Object:  Table [dbo].[stmasterpbacc]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[stmasterpbacc]') AND type in (N'U'))
DROP TABLE [dbo].[stmasterpbacc]
GO
/****** Object:  Table [dbo].[STMaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[STMaster]') AND type in (N'U'))
DROP TABLE [dbo].[STMaster]
GO
/****** Object:  Table [dbo].[STDISD3]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[STDISD3]') AND type in (N'U'))
DROP TABLE [dbo].[STDISD3]
GO
/****** Object:  Table [dbo].[stchlno]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[stchlno]') AND type in (N'U'))
DROP TABLE [dbo].[stchlno]
GO
/****** Object:  Table [dbo].[states]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[states]') AND type in (N'U'))
DROP TABLE [dbo].[states]
GO
/****** Object:  Table [dbo].[staahxml]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[staahxml]') AND type in (N'U'))
DROP TABLE [dbo].[staahxml]
GO
/****** Object:  Table [dbo].[STAAHRESRENTTABLE]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[STAAHRESRENTTABLE]') AND type in (N'U'))
DROP TABLE [dbo].[STAAHRESRENTTABLE]
GO
/****** Object:  Table [dbo].[staahRates]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[staahRates]') AND type in (N'U'))
DROP TABLE [dbo].[staahRates]
GO
/****** Object:  Table [dbo].[staahinvstop]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[staahinvstop]') AND type in (N'U'))
DROP TABLE [dbo].[staahinvstop]
GO
/****** Object:  Table [dbo].[staahINV]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[staahINV]') AND type in (N'U'))
DROP TABLE [dbo].[staahINV]
GO
/****** Object:  Table [dbo].[staahchannel]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[staahchannel]') AND type in (N'U'))
DROP TABLE [dbo].[staahchannel]
GO
/****** Object:  Table [dbo].[st_connect_ol]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[st_connect_ol]') AND type in (N'U'))
DROP TABLE [dbo].[st_connect_ol]
GO
/****** Object:  Table [dbo].[SQNO]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[SQNO]') AND type in (N'U'))
DROP TABLE [dbo].[SQNO]
GO
/****** Object:  Table [dbo].[sqlcode]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sqlcode]') AND type in (N'U'))
DROP TABLE [dbo].[sqlcode]
GO
/****** Object:  Table [dbo].[sptv]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptv]') AND type in (N'U'))
DROP TABLE [dbo].[sptv]
GO
/****** Object:  Table [dbo].[sptbrsirn]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptbrsirn]') AND type in (N'U'))
DROP TABLE [dbo].[sptbrsirn]
GO
/****** Object:  Table [dbo].[sptbrs1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptbrs1]') AND type in (N'U'))
DROP TABLE [dbo].[sptbrs1]
GO
/****** Object:  Table [dbo].[sptbrs_rn]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptbrs_rn]') AND type in (N'U'))
DROP TABLE [dbo].[sptbrs_rn]
GO
/****** Object:  Table [dbo].[sptbrs_noshow]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptbrs_noshow]') AND type in (N'U'))
DROP TABLE [dbo].[sptbrs_noshow]
GO
/****** Object:  Table [dbo].[sptbrs_inet]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptbrs_inet]') AND type in (N'U'))
DROP TABLE [dbo].[sptbrs_inet]
GO
/****** Object:  Table [dbo].[sptbrs_can]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptbrs_can]') AND type in (N'U'))
DROP TABLE [dbo].[sptbrs_can]
GO
/****** Object:  Table [dbo].[sptbrs_ad]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptbrs_ad]') AND type in (N'U'))
DROP TABLE [dbo].[sptbrs_ad]
GO
/****** Object:  Table [dbo].[sptbrs]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptbrs]') AND type in (N'U'))
DROP TABLE [dbo].[sptbrs]
GO
/****** Object:  Table [dbo].[sptbrooms]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptbrooms]') AND type in (N'U'))
DROP TABLE [dbo].[sptbrooms]
GO
/****** Object:  Table [dbo].[sptbph]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptbph]') AND type in (N'U'))
DROP TABLE [dbo].[sptbph]
GO
/****** Object:  Table [dbo].[sptbpayablebycompany]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sptbpayablebycompany]') AND type in (N'U'))
DROP TABLE [dbo].[sptbpayablebycompany]
GO
/****** Object:  Table [dbo].[speset]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[speset]') AND type in (N'U'))
DROP TABLE [dbo].[speset]
GO
/****** Object:  Table [dbo].[smssername]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[smssername]') AND type in (N'U'))
DROP TABLE [dbo].[smssername]
GO
/****** Object:  Table [dbo].[smsreport]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[smsreport]') AND type in (N'U'))
DROP TABLE [dbo].[smsreport]
GO
/****** Object:  Table [dbo].[smsreminder]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[smsreminder]') AND type in (N'U'))
DROP TABLE [dbo].[smsreminder]
GO
/****** Object:  Table [dbo].[smslink]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[smslink]') AND type in (N'U'))
DROP TABLE [dbo].[smslink]
GO
/****** Object:  Table [dbo].[smscashbal]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[smscashbal]') AND type in (N'U'))
DROP TABLE [dbo].[smscashbal]
GO
/****** Object:  Table [dbo].[SHANTIPALACE]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[SHANTIPALACE]') AND type in (N'U'))
DROP TABLE [dbo].[SHANTIPALACE]
GO
/****** Object:  Table [dbo].[SettingCatelog]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[SettingCatelog]') AND type in (N'U'))
DROP TABLE [dbo].[SettingCatelog]
GO
/****** Object:  Table [dbo].[SETTING]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[SETTING]') AND type in (N'U'))
DROP TABLE [dbo].[SETTING]
GO
/****** Object:  Table [dbo].[setprinter]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[setprinter]') AND type in (N'U'))
DROP TABLE [dbo].[setprinter]
GO
/****** Object:  Table [dbo].[sessions]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sessions]') AND type in (N'U'))
DROP TABLE [dbo].[sessions]
GO
/****** Object:  Table [dbo].[servicepermissiond]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[servicepermissiond]') AND type in (N'U'))
DROP TABLE [dbo].[servicepermissiond]
GO
/****** Object:  Table [dbo].[servicepermission]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[servicepermission]') AND type in (N'U'))
DROP TABLE [dbo].[servicepermission]
GO
/****** Object:  Table [dbo].[servicenumbersdefault]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[servicenumbersdefault]') AND type in (N'U'))
DROP TABLE [dbo].[servicenumbersdefault]
GO
/****** Object:  Table [dbo].[ServiceNumbers]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ServiceNumbers]') AND type in (N'U'))
DROP TABLE [dbo].[ServiceNumbers]
GO
/****** Object:  Table [dbo].[servicecitems]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[servicecitems]') AND type in (N'U'))
DROP TABLE [dbo].[servicecitems]
GO
/****** Object:  Table [dbo].[servicechist]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[servicechist]') AND type in (N'U'))
DROP TABLE [dbo].[servicechist]
GO
/****** Object:  Table [dbo].[servicecbill]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[servicecbill]') AND type in (N'U'))
DROP TABLE [dbo].[servicecbill]
GO
/****** Object:  Table [dbo].[ServiceBGRNO]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ServiceBGRNO]') AND type in (N'U'))
DROP TABLE [dbo].[ServiceBGRNO]
GO
/****** Object:  Table [dbo].[ServiceASNO]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ServiceASNO]') AND type in (N'U'))
DROP TABLE [dbo].[ServiceASNO]
GO
/****** Object:  Table [dbo].[ServiceAGRNO]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ServiceAGRNO]') AND type in (N'U'))
DROP TABLE [dbo].[ServiceAGRNO]
GO
/****** Object:  Table [dbo].[ROOMTYPE]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ROOMTYPE]') AND type in (N'U'))
DROP TABLE [dbo].[ROOMTYPE]
GO
/****** Object:  Table [dbo].[roomsection]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[roomsection]') AND type in (N'U'))
DROP TABLE [dbo].[roomsection]
GO
/****** Object:  Table [dbo].[RoomDues]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[RoomDues]') AND type in (N'U'))
DROP TABLE [dbo].[RoomDues]
GO
/****** Object:  Table [dbo].[RoomClean]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[RoomClean]') AND type in (N'U'))
DROP TABLE [dbo].[RoomClean]
GO
/****** Object:  Table [dbo].[roomac]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[roomac]') AND type in (N'U'))
DROP TABLE [dbo].[roomac]
GO
/****** Object:  Table [dbo].[ROOM]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ROOM]') AND type in (N'U'))
DROP TABLE [dbo].[ROOM]
GO
/****** Object:  Table [dbo].[Results]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Results]') AND type in (N'U'))
DROP TABLE [dbo].[Results]
GO
/****** Object:  Table [dbo].[restpmode]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[restpmode]') AND type in (N'U'))
DROP TABLE [dbo].[restpmode]
GO
/****** Object:  Table [dbo].[RESTCO]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[RESTCO]') AND type in (N'U'))
DROP TABLE [dbo].[RESTCO]
GO
/****** Object:  Table [dbo].[resrateidtable]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[resrateidtable]') AND type in (N'U'))
DROP TABLE [dbo].[resrateidtable]
GO
/****** Object:  Table [dbo].[resavenuelog]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[resavenuelog]') AND type in (N'U'))
DROP TABLE [dbo].[resavenuelog]
GO
/****** Object:  Table [dbo].[RentType]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[RentType]') AND type in (N'U'))
DROP TABLE [dbo].[RentType]
GO
/****** Object:  Table [dbo].[RentPeriod]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[RentPeriod]') AND type in (N'U'))
DROP TABLE [dbo].[RentPeriod]
GO
/****** Object:  Table [dbo].[rentmaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[rentmaster]') AND type in (N'U'))
DROP TABLE [dbo].[rentmaster]
GO
/****** Object:  Table [dbo].[rentaccount]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[rentaccount]') AND type in (N'U'))
DROP TABLE [dbo].[rentaccount]
GO
/****** Object:  Table [dbo].[Rent]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Rent]') AND type in (N'U'))
DROP TABLE [dbo].[Rent]
GO
/****** Object:  Table [dbo].[regentvisitor]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[regentvisitor]') AND type in (N'U'))
DROP TABLE [dbo].[regentvisitor]
GO
/****** Object:  Table [dbo].[QRCODE]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[QRCODE]') AND type in (N'U'))
DROP TABLE [dbo].[QRCODE]
GO
/****** Object:  Table [dbo].[puvehicle]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[puvehicle]') AND type in (N'U'))
DROP TABLE [dbo].[puvehicle]
GO
/****** Object:  Table [dbo].[putime]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[putime]') AND type in (N'U'))
DROP TABLE [dbo].[putime]
GO
/****** Object:  Table [dbo].[Purpose]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Purpose]') AND type in (N'U'))
DROP TABLE [dbo].[Purpose]
GO
/****** Object:  Table [dbo].[pu]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[pu]') AND type in (N'U'))
DROP TABLE [dbo].[pu]
GO
/****** Object:  Table [dbo].[PSStudent]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PSStudent]') AND type in (N'U'))
DROP TABLE [dbo].[PSStudent]
GO
/****** Object:  Table [dbo].[PSSection]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PSSection]') AND type in (N'U'))
DROP TABLE [dbo].[PSSection]
GO
/****** Object:  Table [dbo].[PSSchool]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PSSchool]') AND type in (N'U'))
DROP TABLE [dbo].[PSSchool]
GO
/****** Object:  Table [dbo].[PSClass]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PSClass]') AND type in (N'U'))
DROP TABLE [dbo].[PSClass]
GO
/****** Object:  Table [dbo].[PSAcYear]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PSAcYear]') AND type in (N'U'))
DROP TABLE [dbo].[PSAcYear]
GO
/****** Object:  Table [dbo].[production]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[production]') AND type in (N'U'))
DROP TABLE [dbo].[production]
GO
/****** Object:  Table [dbo].[PrePaidHist]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PrePaidHist]') AND type in (N'U'))
DROP TABLE [dbo].[PrePaidHist]
GO
/****** Object:  Table [dbo].[PrePaidCoupons]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PrePaidCoupons]') AND type in (N'U'))
DROP TABLE [dbo].[PrePaidCoupons]
GO
/****** Object:  Table [dbo].[PrePaidCouponMaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PrePaidCouponMaster]') AND type in (N'U'))
DROP TABLE [dbo].[PrePaidCouponMaster]
GO
/****** Object:  Table [dbo].[PowerBrain]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PowerBrain]') AND type in (N'U'))
DROP TABLE [dbo].[PowerBrain]
GO
/****** Object:  Table [dbo].[pickup]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[pickup]') AND type in (N'U'))
DROP TABLE [dbo].[pickup]
GO
/****** Object:  Table [dbo].[PHOUTLET]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PHOUTLET]') AND type in (N'U'))
DROP TABLE [dbo].[PHOUTLET]
GO
/****** Object:  Table [dbo].[phoneIRN]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[phoneIRN]') AND type in (N'U'))
DROP TABLE [dbo].[phoneIRN]
GO
/****** Object:  Table [dbo].[PHONE]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PHONE]') AND type in (N'U'))
DROP TABLE [dbo].[PHONE]
GO
/****** Object:  Table [dbo].[PHHIST]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PHHIST]') AND type in (N'U'))
DROP TABLE [dbo].[PHHIST]
GO
/****** Object:  Table [dbo].[PHHELPER]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PHHELPER]') AND type in (N'U'))
DROP TABLE [dbo].[PHHELPER]
GO
/****** Object:  Table [dbo].[PassPorts]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PassPorts]') AND type in (N'U'))
DROP TABLE [dbo].[PassPorts]
GO
/****** Object:  Table [dbo].[outletlogo]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[outletlogo]') AND type in (N'U'))
DROP TABLE [dbo].[outletlogo]
GO
/****** Object:  Table [dbo].[outletcomputersetting]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[outletcomputersetting]') AND type in (N'U'))
DROP TABLE [dbo].[outletcomputersetting]
GO
/****** Object:  Table [dbo].[OUTLET]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[OUTLET]') AND type in (N'U'))
DROP TABLE [dbo].[OUTLET]
GO
/****** Object:  Table [dbo].[OTACommission]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[OTACommission]') AND type in (N'U'))
DROP TABLE [dbo].[OTACommission]
GO
/****** Object:  Table [dbo].[OTAAccounts]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[OTAAccounts]') AND type in (N'U'))
DROP TABLE [dbo].[OTAAccounts]
GO
/****** Object:  Table [dbo].[OnAcRc]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[OnAcRc]') AND type in (N'U'))
DROP TABLE [dbo].[OnAcRc]
GO
/****** Object:  Table [dbo].[olstore]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[olstore]') AND type in (N'U'))
DROP TABLE [dbo].[olstore]
GO
/****** Object:  Table [dbo].[olstock]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[olstock]') AND type in (N'U'))
DROP TABLE [dbo].[olstock]
GO
/****** Object:  Table [dbo].[olstkadj]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[olstkadj]') AND type in (N'U'))
DROP TABLE [dbo].[olstkadj]
GO
/****** Object:  Table [dbo].[OL24ROOM]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[OL24ROOM]') AND type in (N'U'))
DROP TABLE [dbo].[OL24ROOM]
GO
/****** Object:  Table [dbo].[OL24]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[OL24]') AND type in (N'U'))
DROP TABLE [dbo].[OL24]
GO
/****** Object:  Table [dbo].[Occupancy]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Occupancy]') AND type in (N'U'))
DROP TABLE [dbo].[Occupancy]
GO
/****** Object:  Table [dbo].[NECMiniBar]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NECMiniBar]') AND type in (N'U'))
DROP TABLE [dbo].[NECMiniBar]
GO
/****** Object:  Table [dbo].[necmbrprint]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[necmbrprint]') AND type in (N'U'))
DROP TABLE [dbo].[necmbrprint]
GO
/****** Object:  Table [dbo].[necmboutlet]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[necmboutlet]') AND type in (N'U'))
DROP TABLE [dbo].[necmboutlet]
GO
/****** Object:  Table [dbo].[NecMBMaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NecMBMaster]') AND type in (N'U'))
DROP TABLE [dbo].[NecMBMaster]
GO
/****** Object:  Table [dbo].[nationality]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[nationality]') AND type in (N'U'))
DROP TABLE [dbo].[nationality]
GO
/****** Object:  Table [dbo].[MYCUST]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MYCUST]') AND type in (N'U'))
DROP TABLE [dbo].[MYCUST]
GO
/****** Object:  Table [dbo].[MYBILLS]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MYBILLS]') AND type in (N'U'))
DROP TABLE [dbo].[MYBILLS]
GO
/****** Object:  Table [dbo].[msgcount]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[msgcount]') AND type in (N'U'))
DROP TABLE [dbo].[msgcount]
GO
/****** Object:  Table [dbo].[mktmgr]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[mktmgr]') AND type in (N'U'))
DROP TABLE [dbo].[mktmgr]
GO
/****** Object:  Table [dbo].[MizStock]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MizStock]') AND type in (N'U'))
DROP TABLE [dbo].[MizStock]
GO
/****** Object:  Table [dbo].[MIZASTOCK]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[MIZASTOCK]') AND type in (N'U'))
DROP TABLE [dbo].[MIZASTOCK]
GO
/****** Object:  Table [dbo].[misset]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[misset]') AND type in (N'U'))
DROP TABLE [dbo].[misset]
GO
/****** Object:  Table [dbo].[menusearch]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[menusearch]') AND type in (N'U'))
DROP TABLE [dbo].[menusearch]
GO
/****** Object:  Table [dbo].[matrixtest]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[matrixtest]') AND type in (N'U'))
DROP TABLE [dbo].[matrixtest]
GO
/****** Object:  Table [dbo].[massdel]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[massdel]') AND type in (N'U'))
DROP TABLE [dbo].[massdel]
GO
/****** Object:  Table [dbo].[LTTABLE]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[LTTABLE]') AND type in (N'U'))
DROP TABLE [dbo].[LTTABLE]
GO
/****** Object:  Table [dbo].[LTONTARIFF]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[LTONTARIFF]') AND type in (N'U'))
DROP TABLE [dbo].[LTONTARIFF]
GO
/****** Object:  Table [dbo].[LTMASTER]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[LTMASTER]') AND type in (N'U'))
DROP TABLE [dbo].[LTMASTER]
GO
/****** Object:  Table [dbo].[linker]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[linker]') AND type in (N'U'))
DROP TABLE [dbo].[linker]
GO
/****** Object:  Table [dbo].[lic]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[lic]') AND type in (N'U'))
DROP TABLE [dbo].[lic]
GO
/****** Object:  Table [dbo].[kottable]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[kottable]') AND type in (N'U'))
DROP TABLE [dbo].[kottable]
GO
/****** Object:  Table [dbo].[kotconstant]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[kotconstant]') AND type in (N'U'))
DROP TABLE [dbo].[kotconstant]
GO
/****** Object:  Table [dbo].[KOTCatelog]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[KOTCatelog]') AND type in (N'U'))
DROP TABLE [dbo].[KOTCatelog]
GO
/****** Object:  Table [dbo].[kitprime]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[kitprime]') AND type in (N'U'))
DROP TABLE [dbo].[kitprime]
GO
/****** Object:  Table [dbo].[KITMAST2]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[KITMAST2]') AND type in (N'U'))
DROP TABLE [dbo].[KITMAST2]
GO
/****** Object:  Table [dbo].[KITMAST1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[KITMAST1]') AND type in (N'U'))
DROP TABLE [dbo].[KITMAST1]
GO
/****** Object:  Table [dbo].[KITMAST]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[KITMAST]') AND type in (N'U'))
DROP TABLE [dbo].[KITMAST]
GO
/****** Object:  Table [dbo].[kithistIRN]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[kithistIRN]') AND type in (N'U'))
DROP TABLE [dbo].[kithistIRN]
GO
/****** Object:  Table [dbo].[KITHIST1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[KITHIST1]') AND type in (N'U'))
DROP TABLE [dbo].[KITHIST1]
GO
/****** Object:  Table [dbo].[KITHIST]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[KITHIST]') AND type in (N'U'))
DROP TABLE [dbo].[KITHIST]
GO
/****** Object:  Table [dbo].[KITGUEST]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[KITGUEST]') AND type in (N'U'))
DROP TABLE [dbo].[KITGUEST]
GO
/****** Object:  Table [dbo].[kitgrpsno]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[kitgrpsno]') AND type in (N'U'))
DROP TABLE [dbo].[kitgrpsno]
GO
/****** Object:  Table [dbo].[KITGROUP]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[KITGROUP]') AND type in (N'U'))
DROP TABLE [dbo].[KITGROUP]
GO
/****** Object:  Table [dbo].[KITCLASS_2]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[KITCLASS_2]') AND type in (N'U'))
DROP TABLE [dbo].[KITCLASS_2]
GO
/****** Object:  Table [dbo].[KITCLASS]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[KITCLASS]') AND type in (N'U'))
DROP TABLE [dbo].[KITCLASS]
GO
/****** Object:  Table [dbo].[keycardmodel]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[keycardmodel]') AND type in (N'U'))
DROP TABLE [dbo].[keycardmodel]
GO
/****** Object:  Table [dbo].[JSONTOPOST]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[JSONTOPOST]') AND type in (N'U'))
DROP TABLE [dbo].[JSONTOPOST]
GO
/****** Object:  Table [dbo].[infosent]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[infosent]') AND type in (N'U'))
DROP TABLE [dbo].[infosent]
GO
/****** Object:  Table [dbo].[inettrchgs]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[inettrchgs]') AND type in (N'U'))
DROP TABLE [dbo].[inettrchgs]
GO
/****** Object:  Table [dbo].[inetterms]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[inetterms]') AND type in (N'U'))
DROP TABLE [dbo].[inetterms]
GO
/****** Object:  Table [dbo].[inetreserve]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[inetreserve]') AND type in (N'U'))
DROP TABLE [dbo].[inetreserve]
GO
/****** Object:  Table [dbo].[InetAccess]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[InetAccess]') AND type in (N'U'))
DROP TABLE [dbo].[InetAccess]
GO
/****** Object:  Table [dbo].[IN_Terms]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[IN_Terms]') AND type in (N'U'))
DROP TABLE [dbo].[IN_Terms]
GO
/****** Object:  Table [dbo].[HOUSEKEEPER]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[HOUSEKEEPER]') AND type in (N'U'))
DROP TABLE [dbo].[HOUSEKEEPER]
GO
/****** Object:  Table [dbo].[HmsFolder]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[HmsFolder]') AND type in (N'U'))
DROP TABLE [dbo].[HmsFolder]
GO
/****** Object:  Table [dbo].[hkoutlet]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[hkoutlet]') AND type in (N'U'))
DROP TABLE [dbo].[hkoutlet]
GO
/****** Object:  Table [dbo].[HKMaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[HKMaster]') AND type in (N'U'))
DROP TABLE [dbo].[HKMaster]
GO
/****** Object:  Table [dbo].[HKJobs]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[HKJobs]') AND type in (N'U'))
DROP TABLE [dbo].[HKJobs]
GO
/****** Object:  Table [dbo].[HKHist]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[HKHist]') AND type in (N'U'))
DROP TABLE [dbo].[HKHist]
GO
/****** Object:  Table [dbo].[happyhours]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[happyhours]') AND type in (N'U'))
DROP TABLE [dbo].[happyhours]
GO
/****** Object:  Table [dbo].[GuestSet]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GuestSet]') AND type in (N'U'))
DROP TABLE [dbo].[GuestSet]
GO
/****** Object:  Table [dbo].[GuestIPW]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GuestIPW]') AND type in (N'U'))
DROP TABLE [dbo].[GuestIPW]
GO
/****** Object:  Table [dbo].[GuestFP]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GuestFP]') AND type in (N'U'))
DROP TABLE [dbo].[GuestFP]
GO
/****** Object:  Table [dbo].[GuestCard]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GuestCard]') AND type in (N'U'))
DROP TABLE [dbo].[GuestCard]
GO
/****** Object:  Table [dbo].[GUESTAD]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GUESTAD]') AND type in (N'U'))
DROP TABLE [dbo].[GUESTAD]
GO
/****** Object:  Table [dbo].[guest2]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[guest2]') AND type in (N'U'))
DROP TABLE [dbo].[guest2]
GO
/****** Object:  Table [dbo].[GUEST1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GUEST1]') AND type in (N'U'))
DROP TABLE [dbo].[GUEST1]
GO
/****** Object:  Table [dbo].[Guest_memo]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Guest_memo]') AND type in (N'U'))
DROP TABLE [dbo].[Guest_memo]
GO
/****** Object:  Table [dbo].[Guest_AutoBill]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Guest_AutoBill]') AND type in (N'U'))
DROP TABLE [dbo].[Guest_AutoBill]
GO
/****** Object:  Table [dbo].[GUEST]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GUEST]') AND type in (N'U'))
DROP TABLE [dbo].[GUEST]
GO
/****** Object:  Table [dbo].[GSTACtnum]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GSTACtnum]') AND type in (N'U'))
DROP TABLE [dbo].[GSTACtnum]
GO
/****** Object:  Table [dbo].[GSPLIT]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GSPLIT]') AND type in (N'U'))
DROP TABLE [dbo].[GSPLIT]
GO
/****** Object:  Table [dbo].[GROUPLINKER]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GROUPLINKER]') AND type in (N'U'))
DROP TABLE [dbo].[GROUPLINKER]
GO
/****** Object:  Table [dbo].[GroupConnection]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GroupConnection]') AND type in (N'U'))
DROP TABLE [dbo].[GroupConnection]
GO
/****** Object:  Table [dbo].[GROOM]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GROOM]') AND type in (N'U'))
DROP TABLE [dbo].[GROOM]
GO
/****** Object:  Table [dbo].[GRENT]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GRENT]') AND type in (N'U'))
DROP TABLE [dbo].[GRENT]
GO
/****** Object:  Table [dbo].[GPASSPORT]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GPASSPORT]') AND type in (N'U'))
DROP TABLE [dbo].[GPASSPORT]
GO
/****** Object:  Table [dbo].[GOCCUPANTS]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GOCCUPANTS]') AND type in (N'U'))
DROP TABLE [dbo].[GOCCUPANTS]
GO
/****** Object:  Table [dbo].[gm_master]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[gm_master]') AND type in (N'U'))
DROP TABLE [dbo].[gm_master]
GO
/****** Object:  Table [dbo].[GLSUBGRP]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GLSUBGRP]') AND type in (N'U'))
DROP TABLE [dbo].[GLSUBGRP]
GO
/****** Object:  Table [dbo].[GLPRIMLD]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GLPRIMLD]') AND type in (N'U'))
DROP TABLE [dbo].[GLPRIMLD]
GO
/****** Object:  Table [dbo].[GLGROUP]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GLGROUP]') AND type in (N'U'))
DROP TABLE [dbo].[GLGROUP]
GO
/****** Object:  Table [dbo].[GLFLAG]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GLFLAG]') AND type in (N'U'))
DROP TABLE [dbo].[GLFLAG]
GO
/****** Object:  Table [dbo].[gimages]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[gimages]') AND type in (N'U'))
DROP TABLE [dbo].[gimages]
GO
/****** Object:  Table [dbo].[GFOODPLAN]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GFOODPLAN]') AND type in (N'U'))
DROP TABLE [dbo].[GFOODPLAN]
GO
/****** Object:  Table [dbo].[GFFL]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GFFL]') AND type in (N'U'))
DROP TABLE [dbo].[GFFL]
GO
/****** Object:  Table [dbo].[gcomSet]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[gcomSet]') AND type in (N'U'))
DROP TABLE [dbo].[gcomSet]
GO
/****** Object:  Table [dbo].[GCompanyFoodDiscount]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GCompanyFoodDiscount]') AND type in (N'U'))
DROP TABLE [dbo].[GCompanyFoodDiscount]
GO
/****** Object:  Table [dbo].[GCOMPANY]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[GCOMPANY]') AND type in (N'U'))
DROP TABLE [dbo].[GCOMPANY]
GO
/****** Object:  Table [dbo].[FoodTime]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FoodTime]') AND type in (N'U'))
DROP TABLE [dbo].[FoodTime]
GO
/****** Object:  Table [dbo].[FINYEAR]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FINYEAR]') AND type in (N'U'))
DROP TABLE [dbo].[FINYEAR]
GO
/****** Object:  Table [dbo].[FFMaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FFMaster]') AND type in (N'U'))
DROP TABLE [dbo].[FFMaster]
GO
/****** Object:  Table [dbo].[FFItems]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FFItems]') AND type in (N'U'))
DROP TABLE [dbo].[FFItems]
GO
/****** Object:  Table [dbo].[FFHist]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FFHist]') AND type in (N'U'))
DROP TABLE [dbo].[FFHist]
GO
/****** Object:  Table [dbo].[EXTRABED]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EXTRABED]') AND type in (N'U'))
DROP TABLE [dbo].[EXTRABED]
GO
/****** Object:  Table [dbo].[extnnumbers]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[extnnumbers]') AND type in (N'U'))
DROP TABLE [dbo].[extnnumbers]
GO
/****** Object:  Table [dbo].[extension]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[extension]') AND type in (N'U'))
DROP TABLE [dbo].[extension]
GO
/****** Object:  Table [dbo].[exbedco]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[exbedco]') AND type in (N'U'))
DROP TABLE [dbo].[exbedco]
GO
/****** Object:  Table [dbo].[exbed]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[exbed]') AND type in (N'U'))
DROP TABLE [dbo].[exbed]
GO
/****** Object:  Table [dbo].[errortrap]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[errortrap]') AND type in (N'U'))
DROP TABLE [dbo].[errortrap]
GO
/****** Object:  Table [dbo].[epbxtest]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[epbxtest]') AND type in (N'U'))
DROP TABLE [dbo].[epbxtest]
GO
/****** Object:  Table [dbo].[EPBXStatus]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EPBXStatus]') AND type in (N'U'))
DROP TABLE [dbo].[EPBXStatus]
GO
/****** Object:  Table [dbo].[EPBXMODEL]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EPBXMODEL]') AND type in (N'U'))
DROP TABLE [dbo].[EPBXMODEL]
GO
/****** Object:  Table [dbo].[EPBXData]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EPBXData]') AND type in (N'U'))
DROP TABLE [dbo].[EPBXData]
GO
/****** Object:  Table [dbo].[EPBXBarred]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EPBXBarred]') AND type in (N'U'))
DROP TABLE [dbo].[EPBXBarred]
GO
/****** Object:  Table [dbo].[EPBX]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EPBX]') AND type in (N'U'))
DROP TABLE [dbo].[EPBX]
GO
/****** Object:  Table [dbo].[emailreport]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[emailreport]') AND type in (N'U'))
DROP TABLE [dbo].[emailreport]
GO
/****** Object:  Table [dbo].[einvoiceheader]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[einvoiceheader]') AND type in (N'U'))
DROP TABLE [dbo].[einvoiceheader]
GO
/****** Object:  Table [dbo].[einvoiceaccess]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[einvoiceaccess]') AND type in (N'U'))
DROP TABLE [dbo].[einvoiceaccess]
GO
/****** Object:  Table [dbo].[EDITASST]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EDITASST]') AND type in (N'U'))
DROP TABLE [dbo].[EDITASST]
GO
/****** Object:  Table [dbo].[DUMMYVCH]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYVCH]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYVCH]
GO
/****** Object:  Table [dbo].[DUMMYSTK]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYSTK]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYSTK]
GO
/****** Object:  Table [dbo].[DUMMYSQL]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYSQL]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYSQL]
GO
/****** Object:  Table [dbo].[DUMMYSPLIT]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYSPLIT]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYSPLIT]
GO
/****** Object:  Table [dbo].[DUMMYSP]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYSP]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYSP]
GO
/****** Object:  Table [dbo].[DUMMYSERVICE]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYSERVICE]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYSERVICE]
GO
/****** Object:  Table [dbo].[DUMMYSALE]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYSALE]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYSALE]
GO
/****** Object:  Table [dbo].[dummyreserve]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummyreserve]') AND type in (N'U'))
DROP TABLE [dbo].[dummyreserve]
GO
/****** Object:  Table [dbo].[dummyreport]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummyreport]') AND type in (N'U'))
DROP TABLE [dbo].[dummyreport]
GO
/****** Object:  Table [dbo].[DUMMYRENT]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYRENT]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYRENT]
GO
/****** Object:  Table [dbo].[DUMMYPYMT]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYPYMT]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYPYMT]
GO
/****** Object:  Table [dbo].[DUMMYPROFORMA]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYPROFORMA]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYPROFORMA]
GO
/****** Object:  Table [dbo].[DUMMYPP]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYPP]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYPP]
GO
/****** Object:  Table [dbo].[dummypl]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummypl]') AND type in (N'U'))
DROP TABLE [dbo].[dummypl]
GO
/****** Object:  Table [dbo].[DUMMYPH]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYPH]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYPH]
GO
/****** Object:  Table [dbo].[DUMMYPCC]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYPCC]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYPCC]
GO
/****** Object:  Table [dbo].[DUMMYONAC]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYONAC]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYONAC]
GO
/****** Object:  Table [dbo].[DUMMYOB]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYOB]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYOB]
GO
/****** Object:  Table [dbo].[dummyMIS]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummyMIS]') AND type in (N'U'))
DROP TABLE [dbo].[dummyMIS]
GO
/****** Object:  Table [dbo].[DUMMYLP]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYLP]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYLP]
GO
/****** Object:  Table [dbo].[dummyledger]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummyledger]') AND type in (N'U'))
DROP TABLE [dbo].[dummyledger]
GO
/****** Object:  Table [dbo].[DUMMYKIT]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYKIT]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYKIT]
GO
/****** Object:  Table [dbo].[DummyKF]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DummyKF]') AND type in (N'U'))
DROP TABLE [dbo].[DummyKF]
GO
/****** Object:  Table [dbo].[dummyit]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummyit]') AND type in (N'U'))
DROP TABLE [dbo].[dummyit]
GO
/****** Object:  Table [dbo].[dummygst]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummygst]') AND type in (N'U'))
DROP TABLE [dbo].[dummygst]
GO
/****** Object:  Table [dbo].[DUMMYGRP]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYGRP]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYGRP]
GO
/****** Object:  Table [dbo].[DUMMYGLTB]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYGLTB]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYGLTB]
GO
/****** Object:  Table [dbo].[dummygdetails]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummygdetails]') AND type in (N'U'))
DROP TABLE [dbo].[dummygdetails]
GO
/****** Object:  Table [dbo].[DUMMYGD]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYGD]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYGD]
GO
/****** Object:  Table [dbo].[DUMMYGCO]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYGCO]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYGCO]
GO
/****** Object:  Table [dbo].[dummyg]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummyg]') AND type in (N'U'))
DROP TABLE [dbo].[dummyg]
GO
/****** Object:  Table [dbo].[dummydt2]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummydt2]') AND type in (N'U'))
DROP TABLE [dbo].[dummydt2]
GO
/****** Object:  Table [dbo].[dummydt]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummydt]') AND type in (N'U'))
DROP TABLE [dbo].[dummydt]
GO
/****** Object:  Table [dbo].[DummyDisc]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DummyDisc]') AND type in (N'U'))
DROP TABLE [dbo].[DummyDisc]
GO
/****** Object:  Table [dbo].[DUMMYCOUPON]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYCOUPON]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYCOUPON]
GO
/****** Object:  Table [dbo].[DUMMYCO]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYCO]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYCO]
GO
/****** Object:  Table [dbo].[DUMMYBS]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYBS]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYBS]
GO
/****** Object:  Table [dbo].[DUMMYBNQ1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYBNQ1]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYBNQ1]
GO
/****** Object:  Table [dbo].[DUMMYBILL1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYBILL1]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYBILL1]
GO
/****** Object:  Table [dbo].[DUMMYBILL]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMYBILL]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMYBILL]
GO
/****** Object:  Table [dbo].[dummy]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[dummy]') AND type in (N'U'))
DROP TABLE [dbo].[dummy]
GO
/****** Object:  Table [dbo].[DUMMBILLNOS]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DUMMBILLNOS]') AND type in (N'U'))
DROP TABLE [dbo].[DUMMBILLNOS]
GO
/****** Object:  Table [dbo].[doorcust_id]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[doorcust_id]') AND type in (N'U'))
DROP TABLE [dbo].[doorcust_id]
GO
/****** Object:  Table [dbo].[doorcust]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[doorcust]') AND type in (N'U'))
DROP TABLE [dbo].[doorcust]
GO
/****** Object:  Table [dbo].[designation]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[designation]') AND type in (N'U'))
DROP TABLE [dbo].[designation]
GO
/****** Object:  Table [dbo].[DELXXXTABLES]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[DELXXXTABLES]') AND type in (N'U'))
DROP TABLE [dbo].[DELXXXTABLES]
GO
/****** Object:  Table [dbo].[currentkotsqno]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[currentkotsqno]') AND type in (N'U'))
DROP TABLE [dbo].[currentkotsqno]
GO
/****** Object:  Table [dbo].[currentkotm]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[currentkotm]') AND type in (N'U'))
DROP TABLE [dbo].[currentkotm]
GO
/****** Object:  Table [dbo].[currentkotk]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[currentkotk]') AND type in (N'U'))
DROP TABLE [dbo].[currentkotk]
GO
/****** Object:  Table [dbo].[currentkotdeleted]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[currentkotdeleted]') AND type in (N'U'))
DROP TABLE [dbo].[currentkotdeleted]
GO
/****** Object:  Table [dbo].[currentkotbill]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[currentkotbill]') AND type in (N'U'))
DROP TABLE [dbo].[currentkotbill]
GO
/****** Object:  Table [dbo].[currentkot]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[currentkot]') AND type in (N'U'))
DROP TABLE [dbo].[currentkot]
GO
/****** Object:  Table [dbo].[CRSRates]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CRSRates]') AND type in (N'U'))
DROP TABLE [dbo].[CRSRates]
GO
/****** Object:  Table [dbo].[CRSINV]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CRSINV]') AND type in (N'U'))
DROP TABLE [dbo].[CRSINV]
GO
/****** Object:  Table [dbo].[CRMMaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CRMMaster]') AND type in (N'U'))
DROP TABLE [dbo].[CRMMaster]
GO
/****** Object:  Table [dbo].[CRMHist]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CRMHist]') AND type in (N'U'))
DROP TABLE [dbo].[CRMHist]
GO
/****** Object:  Table [dbo].[creative]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[creative]') AND type in (N'U'))
DROP TABLE [dbo].[creative]
GO
/****** Object:  Table [dbo].[crcardtype]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[crcardtype]') AND type in (N'U'))
DROP TABLE [dbo].[crcardtype]
GO
/****** Object:  Table [dbo].[crcardhold]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[crcardhold]') AND type in (N'U'))
DROP TABLE [dbo].[crcardhold]
GO
/****** Object:  Table [dbo].[COUPON]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[COUPON]') AND type in (N'U'))
DROP TABLE [dbo].[COUPON]
GO
/****** Object:  Table [dbo].[country1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[country1]') AND type in (N'U'))
DROP TABLE [dbo].[country1]
GO
/****** Object:  Table [dbo].[country]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[country]') AND type in (N'U'))
DROP TABLE [dbo].[country]
GO
/****** Object:  Table [dbo].[CONFIG]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CONFIG]') AND type in (N'U'))
DROP TABLE [dbo].[CONFIG]
GO
/****** Object:  Table [dbo].[comuser]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[comuser]') AND type in (N'U'))
DROP TABLE [dbo].[comuser]
GO
/****** Object:  Table [dbo].[Comtest1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Comtest1]') AND type in (N'U'))
DROP TABLE [dbo].[Comtest1]
GO
/****** Object:  Table [dbo].[comtest]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[comtest]') AND type in (N'U'))
DROP TABLE [dbo].[comtest]
GO
/****** Object:  Table [dbo].[computerol]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[computerol]') AND type in (N'U'))
DROP TABLE [dbo].[computerol]
GO
/****** Object:  Table [dbo].[COMPARTY]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[COMPARTY]') AND type in (N'U'))
DROP TABLE [dbo].[COMPARTY]
GO
/****** Object:  Table [dbo].[companylogo]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[companylogo]') AND type in (N'U'))
DROP TABLE [dbo].[companylogo]
GO
/****** Object:  Table [dbo].[company]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[company]') AND type in (N'U'))
DROP TABLE [dbo].[company]
GO
/****** Object:  Table [dbo].[commission]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[commission]') AND type in (N'U'))
DROP TABLE [dbo].[commission]
GO
/****** Object:  Table [dbo].[comlog]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[comlog]') AND type in (N'U'))
DROP TABLE [dbo].[comlog]
GO
/****** Object:  Table [dbo].[ColorSet]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ColorSet]') AND type in (N'U'))
DROP TABLE [dbo].[ColorSet]
GO
/****** Object:  Table [dbo].[colors]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[colors]') AND type in (N'U'))
DROP TABLE [dbo].[colors]
GO
/****** Object:  Table [dbo].[ColorForm]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ColorForm]') AND type in (N'U'))
DROP TABLE [dbo].[ColorForm]
GO
/****** Object:  Table [dbo].[cminvupdate]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cminvupdate]') AND type in (N'U'))
DROP TABLE [dbo].[cminvupdate]
GO
/****** Object:  Table [dbo].[chqmatch]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[chqmatch]') AND type in (N'U'))
DROP TABLE [dbo].[chqmatch]
GO
/****** Object:  Table [dbo].[chqformat]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[chqformat]') AND type in (N'U'))
DROP TABLE [dbo].[chqformat]
GO
/****** Object:  Table [dbo].[CHART]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CHART]') AND type in (N'U'))
DROP TABLE [dbo].[CHART]
GO
/****** Object:  Table [dbo].[channelmanager]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[channelmanager]') AND type in (N'U'))
DROP TABLE [dbo].[channelmanager]
GO
/****** Object:  Table [dbo].[CHALAN]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CHALAN]') AND type in (N'U'))
DROP TABLE [dbo].[CHALAN]
GO
/****** Object:  Table [dbo].[celtickets]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[celtickets]') AND type in (N'U'))
DROP TABLE [dbo].[celtickets]
GO
/****** Object:  Table [dbo].[celterms]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[celterms]') AND type in (N'U'))
DROP TABLE [dbo].[celterms]
GO
/****** Object:  Table [dbo].[celsessionp]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[celsessionp]') AND type in (N'U'))
DROP TABLE [dbo].[celsessionp]
GO
/****** Object:  Table [dbo].[celsession]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[celsession]') AND type in (N'U'))
DROP TABLE [dbo].[celsession]
GO
/****** Object:  Table [dbo].[celmaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[celmaster]') AND type in (N'U'))
DROP TABLE [dbo].[celmaster]
GO
/****** Object:  Table [dbo].[celcategory]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[celcategory]') AND type in (N'U'))
DROP TABLE [dbo].[celcategory]
GO
/****** Object:  Table [dbo].[CASHTYPE]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CASHTYPE]') AND type in (N'U'))
DROP TABLE [dbo].[CASHTYPE]
GO
/****** Object:  Table [dbo].[cashboxuser]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cashboxuser]') AND type in (N'U'))
DROP TABLE [dbo].[cashboxuser]
GO
/****** Object:  Table [dbo].[cashboxhist]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cashboxhist]') AND type in (N'U'))
DROP TABLE [dbo].[cashboxhist]
GO
/****** Object:  Table [dbo].[CashBox]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CashBox]') AND type in (N'U'))
DROP TABLE [dbo].[CashBox]
GO
/****** Object:  Table [dbo].[cashbook]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cashbook]') AND type in (N'U'))
DROP TABLE [dbo].[cashbook]
GO
/****** Object:  Table [dbo].[BRNO]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BRNO]') AND type in (N'U'))
DROP TABLE [dbo].[BRNO]
GO
/****** Object:  Table [dbo].[blockrooms]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[blockrooms]') AND type in (N'U'))
DROP TABLE [dbo].[blockrooms]
GO
/****** Object:  Table [dbo].[billprintoc]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[billprintoc]') AND type in (N'U'))
DROP TABLE [dbo].[billprintoc]
GO
/****** Object:  Table [dbo].[billprinto]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[billprinto]') AND type in (N'U'))
DROP TABLE [dbo].[billprinto]
GO
/****** Object:  Table [dbo].[BILLPOSITION]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BILLPOSITION]') AND type in (N'U'))
DROP TABLE [dbo].[BILLPOSITION]
GO
/****** Object:  Table [dbo].[billmode]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[billmode]') AND type in (N'U'))
DROP TABLE [dbo].[billmode]
GO
/****** Object:  Table [dbo].[BILLHISTIRN]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BILLHISTIRN]') AND type in (N'U'))
DROP TABLE [dbo].[BILLHISTIRN]
GO
/****** Object:  Table [dbo].[billhist2]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[billhist2]') AND type in (N'U'))
DROP TABLE [dbo].[billhist2]
GO
/****** Object:  Table [dbo].[BILLHIST1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BILLHIST1]') AND type in (N'U'))
DROP TABLE [dbo].[BILLHIST1]
GO
/****** Object:  Table [dbo].[BILLHIST]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BILLHIST]') AND type in (N'U'))
DROP TABLE [dbo].[BILLHIST]
GO
/****** Object:  Table [dbo].[bill2]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[bill2]') AND type in (N'U'))
DROP TABLE [dbo].[bill2]
GO
/****** Object:  Table [dbo].[basic2]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[basic2]') AND type in (N'U'))
DROP TABLE [dbo].[basic2]
GO
/****** Object:  Table [dbo].[BASIC]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BASIC]') AND type in (N'U'))
DROP TABLE [dbo].[BASIC]
GO
/****** Object:  Table [dbo].[bardiscount]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[bardiscount]') AND type in (N'U'))
DROP TABLE [dbo].[bardiscount]
GO
/****** Object:  Table [dbo].[barcoupon]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[barcoupon]') AND type in (N'U'))
DROP TABLE [dbo].[barcoupon]
GO
/****** Object:  Table [dbo].[barcommission]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[barcommission]') AND type in (N'U'))
DROP TABLE [dbo].[barcommission]
GO
/****** Object:  Table [dbo].[baragents]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[baragents]') AND type in (N'U'))
DROP TABLE [dbo].[baragents]
GO
/****** Object:  Table [dbo].[baragentglac]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[baragentglac]') AND type in (N'U'))
DROP TABLE [dbo].[baragentglac]
GO
/****** Object:  Table [dbo].[banquetVATmaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[banquetVATmaster]') AND type in (N'U'))
DROP TABLE [dbo].[banquetVATmaster]
GO
/****** Object:  Table [dbo].[BanquetiRN]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BanquetiRN]') AND type in (N'U'))
DROP TABLE [dbo].[BanquetiRN]
GO
/****** Object:  Table [dbo].[Banquet2]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Banquet2]') AND type in (N'U'))
DROP TABLE [dbo].[Banquet2]
GO
/****** Object:  Table [dbo].[Banquet1]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Banquet1]') AND type in (N'U'))
DROP TABLE [dbo].[Banquet1]
GO
/****** Object:  Table [dbo].[banquet]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[banquet]') AND type in (N'U'))
DROP TABLE [dbo].[banquet]
GO
/****** Object:  Table [dbo].[BanqMaster]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BanqMaster]') AND type in (N'U'))
DROP TABLE [dbo].[BanqMaster]
GO
/****** Object:  Table [dbo].[BanqHall]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BanqHall]') AND type in (N'U'))
DROP TABLE [dbo].[BanqHall]
GO
/****** Object:  Table [dbo].[BanqFunction]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BanqFunction]') AND type in (N'U'))
DROP TABLE [dbo].[BanqFunction]
GO
/****** Object:  Table [dbo].[BanqFood]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BanqFood]') AND type in (N'U'))
DROP TABLE [dbo].[BanqFood]
GO
/****** Object:  Table [dbo].[BanqDummy]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BanqDummy]') AND type in (N'U'))
DROP TABLE [dbo].[BanqDummy]
GO
/****** Object:  Table [dbo].[banqco]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[banqco]') AND type in (N'U'))
DROP TABLE [dbo].[banqco]
GO
/****** Object:  Table [dbo].[banqbillno]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[banqbillno]') AND type in (N'U'))
DROP TABLE [dbo].[banqbillno]
GO
/****** Object:  Table [dbo].[BanqBill]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BanqBill]') AND type in (N'U'))
DROP TABLE [dbo].[BanqBill]
GO
/****** Object:  Table [dbo].[BanqAdv]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BanqAdv]') AND type in (N'U'))
DROP TABLE [dbo].[BanqAdv]
GO
/****** Object:  Table [dbo].[BanqACNo]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BanqACNo]') AND type in (N'U'))
DROP TABLE [dbo].[BanqACNo]
GO
/****** Object:  Table [dbo].[ADVANCE]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ADVANCE]') AND type in (N'U'))
DROP TABLE [dbo].[ADVANCE]
GO
/****** Object:  Table [dbo].[ADDROOM]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ADDROOM]') AND type in (N'U'))
DROP TABLE [dbo].[ADDROOM]
GO
/****** Object:  Table [dbo].[ADDRESS]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ADDRESS]') AND type in (N'U'))
DROP TABLE [dbo].[ADDRESS]
GO
/****** Object:  Table [dbo].[ADDBK]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ADDBK]') AND type in (N'U'))
DROP TABLE [dbo].[ADDBK]
GO
/****** Object:  Table [dbo].[acclogdup]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[acclogdup]') AND type in (N'U'))
DROP TABLE [dbo].[acclogdup]
GO
/****** Object:  Table [dbo].[acclogaction]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[acclogaction]') AND type in (N'U'))
DROP TABLE [dbo].[acclogaction]
GO
/****** Object:  Table [dbo].[acclog]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[acclog]') AND type in (N'U'))
DROP TABLE [dbo].[acclog]
GO
/****** Object:  Rule [FDR_ONAC]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FDR_ONAC]') AND OBJECTPROPERTY(object_id, N'IsRule') = 1)
DROP RULE [dbo].[FDR_ONAC]
GO
/****** Object:  Rule [AMTTYP]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[AMTTYP]') AND OBJECTPROPERTY(object_id, N'IsRule') = 1)
DROP RULE [dbo].[AMTTYP]
GO
/****** Object:  Default [FDRSNO]    Script Date: 07/04/2026 20:30:01 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FDRSNO]') AND OBJECTPROPERTY(object_id, N'IsDefault') = 1)
DROP DEFAULT [dbo].[FDRSNO]
GO
/****** Object:  Default [FDRSNO]    Script Date: 07/04/2026 20:30:01 ******/
CREATE DEFAULT [dbo].[FDRSNO] 
AS
0











GO
/****** Object:  Rule [AMTTYP]    Script Date: 07/04/2026 20:30:01 ******/
CREATE RULE [dbo].[AMTTYP] 
AS
@M_AMTTYP IN ('C','D')











GO
/****** Object:  Rule [FDR_ONAC]    Script Date: 07/04/2026 20:30:01 ******/
CREATE RULE [dbo].[FDR_ONAC] 
AS
@M_ONAC IN ('O','S')











GO
/****** Object:  Table [dbo].[acclog]    Script Date: 07/04/2026 20:30:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[acclog](
	[txndt] [datetime] NOT NULL,
	[usernm] [varchar](50) NULL,
	[narration] [varchar](2000) NOT NULL,
	[txntype] [numeric](18, 0) NOT NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[gno] [numeric](18, 0) NULL,
	[computer] [varchar](50) NULL,
	[username] [varchar](50) NULL,
	[sessionid] [varchar](200) NOT NULL,
	[txntrace] [varchar](50) NOT NULL,
 CONSTRAINT [PK_acclog] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[acclogaction]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[acclogaction](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Code] [int] NOT NULL,
	[Action] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[acclogdup]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[acclogdup](
	[txndt] [datetime] NOT NULL,
	[usernm] [varchar](50) NULL,
	[narration] [varchar](2000) NOT NULL,
	[txntype] [numeric](18, 0) NOT NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
	[gno] [numeric](18, 0) NULL,
	[computer] [varchar](50) NULL,
	[username] [varchar](50) NULL,
	[sessionid] [varchar](200) NOT NULL,
	[txntrace] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ADDBK]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ADDBK](
	[GNO] [float] NULL,
	[COMPANY] [nvarchar](30) NULL,
	[NAME] [nvarchar](30) NULL,
	[ADD1] [nvarchar](30) NULL,
	[ADD2] [nvarchar](30) NULL,
	[ADD3] [nvarchar](30) NULL,
	[CITY] [nvarchar](20) NULL,
	[STATE] [nvarchar](20) NULL,
	[PIN] [float] NULL,
	[PHONE1] [nvarchar](10) NULL,
	[PHONE2] [nvarchar](10) NULL,
	[DISCOUNT] [float] NULL,
	[INDIAN] [nvarchar](1) NULL,
	[NATION] [nvarchar](20) NULL,
	[PASSPORT] [nvarchar](30) NULL,
	[SC] [float] NULL,
	[RENT] [float] NULL,
	[LT] [bit] NOT NULL,
	[STATUS] [nvarchar](1) NULL,
	[LTXNDT] [smalldatetime] NULL,
	[ADDRESS] [nvarchar](4) NULL,
	[BDATE] [nvarchar](4) NULL,
	[MDATE] [nvarchar](4) NULL,
	[FREQUENCY] [nvarchar](35) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ADDRESS]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ADDRESS](
	[ADDR] [char](4) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ADDROOM]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ADDROOM](
	[GNO] [numeric](18, 0) NOT NULL,
	[RNO] [numeric](18, 0) NOT NULL,
 CONSTRAINT [IX_ADDROOM] UNIQUE NONCLUSTERED 
(
	[GNO] ASC,
	[RNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ADVANCE]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ADVANCE](
	[CNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[GNO] [numeric](18, 0) NOT NULL,
	[TXNDT] [datetime] NULL,
	[COMPANY] [tinyint] NULL,
	[ANO] [numeric](18, 0) NULL,
	[MOP] [tinyint] NOT NULL,
	[GRNO] [numeric](18, 0) NOT NULL,
	[AMOUNT] [money] NOT NULL,
	[GLACTNUM] [numeric](18, 0) NULL,
	[SPLIT] [char](1) NULL,
	[usernm] [varchar](50) NOT NULL,
	[crcardnum] [varchar](100) NULL,
	[crcardname] [varchar](100) NULL,
	[crcardbank] [varchar](100) NULL,
	[narration] [varchar](200) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BanqACNo]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BanqACNo](
	[Ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Description] [varchar](50) NOT NULL,
	[Amttyp] [char](1) NOT NULL,
	[cgp_actno] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_BanqACNo] PRIMARY KEY CLUSTERED 
(
	[Ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_BanqACNo] UNIQUE NONCLUSTERED 
(
	[Description] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BanqAdv]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BanqAdv](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[bnqctrlno] [numeric](18, 0) NOT NULL,
	[advrno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[amount] [money] NOT NULL,
	[mop] [tinyint] NOT NULL,
	[crnum] [varchar](20) NULL,
	[crname] [varchar](50) NULL,
	[crbank] [varchar](50) NULL,
	[grno] [numeric](18, 0) NOT NULL,
	[usernm] [varchar](50) NULL,
 CONSTRAINT [PK_BanqAdv] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BanqBill]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BanqBill](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[bnqctrlno] [numeric](18, 0) NOT NULL,
	[description] [varchar](100) NOT NULL,
	[amount] [money] NOT NULL,
	[amttyp] [char](1) NOT NULL,
	[actno] [numeric](18, 0) NOT NULL,
	[SERVICETYPE] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[banqbillno]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[banqbillno](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[bnqno] [numeric](18, 0) NOT NULL,
	[fy] [numeric](18, 0) NOT NULL,
	[billno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[banqco]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[banqco](
	[bnqname] [nvarchar](200) NOT NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[company] [numeric](18, 0) NOT NULL,
	[ADD1] [nvarchar](100) NOT NULL,
	[ADD2] [nvarchar](100) NOT NULL,
	[ADD3] [nvarchar](100) NOT NULL,
	[CITY] [nvarchar](100) NOT NULL,
	[STATE] [nvarchar](100) NOT NULL,
	[PHONE] [nvarchar](100) NOT NULL,
	[EMAIL] [nvarchar](100) NOT NULL,
	[WEBSITE] [nvarchar](100) NOT NULL,
	[info1] [varchar](100) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BanqDummy]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BanqDummy](
	[description] [varchar](100) NULL,
	[amount] [money] NULL,
	[amttyp] [char](1) NULL,
	[actno] [numeric](18, 0) NULL,
	[SERVICETYPE] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BanqFood]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BanqFood](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Name] [varchar](100) NOT NULL,
	[foodtype] [varchar](50) NOT NULL,
	[Veg] [tinyint] NOT NULL,
 CONSTRAINT [PK_PartyFood] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BanqFunction]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BanqFunction](
	[CtrlNo] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Name] [varchar](50) NOT NULL,
 CONSTRAINT [PK_BanqFuntion] PRIMARY KEY CLUSTERED 
(
	[CtrlNo] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BanqHall]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BanqHall](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Name] [varchar](50) NOT NULL,
 CONSTRAINT [PK_BanqHall] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BanqMaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BanqMaster](
	[BnqNo] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Name] [varchar](50) NOT NULL,
	[Company] [numeric](18, 0) NOT NULL,
	[advrno] [numeric](18, 0) NULL,
	[advdate] [datetime] NULL,
	[billno] [numeric](18, 0) NULL,
	[billdate] [datetime] NULL,
	[taxline1] [varchar](100) NULL,
	[taxline2] [varchar](100) NULL,
	[taxline3] [varchar](100) NULL,
	[sttableno] [int] NOT NULL,
	[lttableno] [tinyint] NOT NULL,
	[bnqvattableno] [tinyint] NOT NULL,
	[bnqsttableno] [tinyint] NOT NULL,
	[billprefix] [char](3) NOT NULL,
 CONSTRAINT [PK_BnqMaster] PRIMARY KEY CLUSTERED 
(
	[BnqNo] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[banquet]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[banquet](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[BnqNo] [tinyint] NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[dob] [datetime] NOT NULL,
	[sdof] [datetime] NOT NULL,
	[edof] [datetime] NOT NULL,
	[ftype] [varchar](50) NOT NULL,
	[minpax] [numeric](18, 0) NOT NULL,
	[maxpax] [numeric](18, 0) NOT NULL,
	[rate] [money] NOT NULL,
	[status] [char](1) NOT NULL,
	[billno] [numeric](18, 0) NOT NULL,
	[billdate] [datetime] NULL,
	[mop] [tinyint] NOT NULL,
	[crname] [varchar](50) NOT NULL,
	[crnum] [varchar](50) NOT NULL,
	[crbank] [varchar](50) NOT NULL,
	[glnum] [numeric](18, 0) NOT NULL,
	[grno] [numeric](18, 0) NOT NULL,
	[hall] [tinyint] NOT NULL,
	[contactperson] [varchar](50) NOT NULL,
	[contactno] [varchar](50) NOT NULL,
	[chargedpax] [numeric](18, 0) NOT NULL,
	[billamount] [money] NOT NULL,
	[usernm1] [varchar](50) NULL,
	[usernm2] [varchar](50) NULL,
	[Cancelledby] [varchar](50) NULL,
	[CancellReason] [varchar](100) NULL,
	[name] [varchar](50) NULL,
	[add1] [varchar](50) NULL,
	[add2] [varchar](50) NULL,
	[add3] [varchar](50) NULL,
	[city] [varchar](50) NULL,
	[state] [varchar](50) NULL,
	[PIN] [char](6) NULL,
	[phone] [varchar](50) NULL,
	[email] [varchar](500) NULL,
	[address] [varchar](10) NOT NULL,
	[fax] [varchar](50) NOT NULL,
	[cancelledon] [datetime] NULL,
	[cancellgrno] [numeric](18, 0) NOT NULL,
	[cancellmop] [tinyint] NULL,
	[cancellglac] [numeric](18, 0) NULL,
	[STBNQ] [money] NOT NULL,
	[cessbnq] [money] NOT NULL,
	[LTBNQ] [money] NOT NULL,
	[STFOOD] [money] NOT NULL,
	[cessfood] [money] NOT NULL,
	[VATFOOD] [money] NOT NULL,
	[BNQ1] [money] NOT NULL,
	[BNQ2] [money] NOT NULL,
	[RATE1] [money] NOT NULL,
	[chargedpax1] [numeric](18, 0) NOT NULL,
	[kkcbnq] [money] NOT NULL,
	[kkcfood] [money] NOT NULL,
	[gstin] [nvarchar](50) NOT NULL,
	[GSTINNAME] [varchar](100) NOT NULL,
	[EINVOICE] [char](1) NOT NULL,
	[TXNCAT] [nchar](10) NOT NULL,
	[SEZ] [char](1) NOT NULL,
 CONSTRAINT [PK_banquet] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Banquet1]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Banquet1](
	[id] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
	[detail] [varchar](500) NULL,
	[mode] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Banquet2]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Banquet2](
	[Id] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
	[foodcode] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BanquetiRN]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BanquetiRN](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[ACKDT] [datetime] NOT NULL,
	[ACKNO] [varchar](50) NOT NULL,
	[IRN] [varchar](200) NOT NULL,
	[INVOICE] [text] NOT NULL,
	[QRCODE] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[banquetVATmaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[banquetVATmaster](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[SDT] [datetime] NULL,
	[EDT] [datetime] NULL,
	[SAMT] [decimal](18, 0) NULL,
	[EAMT] [decimal](18, 0) NULL,
	[LAMT] [decimal](18, 0) NULL,
	[RATE] [money] NULL,
	[DISCOUNT] [money] NULL,
	[CESS] [money] NULL,
	[STTABLENO] [int] NOT NULL,
	[cessonwhat] [tinyint] NOT NULL,
	[cessname] [varchar](10) NOT NULL,
	[cess2] [tinyint] NOT NULL,
	[cessonwhat2] [tinyint] NOT NULL,
	[cessname2] [varchar](10) NOT NULL,
	[taxname] [nvarchar](100) NOT NULL,
	[taxshname] [nvarchar](10) NOT NULL,
	[taxacno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[baragentglac]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[baragentglac](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[agentcode] [numeric](18, 0) NOT NULL,
	[company] [numeric](18, 0) NOT NULL,
	[fy] [numeric](18, 0) NOT NULL,
	[glac] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[baragents]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[baragents](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) NOT NULL,
	[add1] [varchar](50) NOT NULL,
	[add2] [varchar](50) NOT NULL,
	[add3] [varchar](50) NOT NULL,
	[city] [varchar](50) NOT NULL,
	[phone] [varchar](50) NOT NULL,
	[email] [varchar](50) NOT NULL,
 CONSTRAINT [PK_baragents] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_baragents] UNIQUE NONCLUSTERED 
(
	[name] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[barcommission]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[barcommission](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[channel] [numeric](18, 0) NOT NULL,
	[agentcode] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[amount] [numeric](18, 0) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[grno] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_barcommission] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[barcoupon]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[barcoupon](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[agentcode] [numeric](18, 0) NOT NULL,
	[bookno] [numeric](18, 0) NOT NULL,
	[couponsno] [numeric](18, 0) NOT NULL,
	[couponeno] [numeric](18, 0) NOT NULL,
	[couponstatus] [char](25) NOT NULL,
	[duedt] [datetime] NOT NULL,
	[status] [char](1) NOT NULL,
	[commnrate] [numeric](18, 0) NOT NULL,
	[discountrate] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[bardiscount]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[bardiscount](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[couponcode] [numeric](18, 0) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[discount] [numeric](18, 0) NOT NULL,
	[commission] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_bardiscount] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BASIC]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BASIC](
	[CODE1] [char](100) NOT NULL,
	[CODE2] [char](100) NOT NULL,
	[CODE3] [char](100) NOT NULL,
	[CODE4] [char](100) NOT NULL,
	[userno] [numeric](18, 0) NOT NULL,
	[CODE6] [varchar](100) NULL,
	[code7] [varchar](100) NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[CODE8] [varchar](500) NOT NULL,
	[CODE9] [varchar](20) NOT NULL,
	[VPDays] [numeric](18, 0) NOT NULL,
	[olp] [char](1) NOT NULL,
	[code10] [varchar](200) NULL,
	[code11] [varchar](100) NULL,
	[eddays] [int] NOT NULL,
	[fbc] [int] NOT NULL,
	[qcheck] [int] NOT NULL,
	[crs] [char](1) NOT NULL,
	[rdays] [numeric](18, 0) NOT NULL,
	[rdaystemp] [tinyint] NOT NULL,
	[rdaysdate] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[basic2]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[basic2](
	[CODE1] [char](100) NOT NULL,
	[CODE2] [char](100) NOT NULL,
	[CODE3] [char](100) NOT NULL,
	[CODE4] [char](100) NOT NULL,
	[userno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[bill2]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[bill2](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cno] [numeric](18, 0) NULL,
	[txndt] [datetime] NULL,
	[rent] [money] NULL,
	[lt] [money] NULL,
	[sc] [money] NULL,
	[discount] [money] NULL,
	[item1] [money] NULL,
	[item2] [money] NULL,
	[item3] [money] NULL,
	[item4] [money] NULL,
	[item5] [money] NULL,
	[item6] [money] NULL,
	[item7] [money] NULL,
	[item8] [money] NULL,
	[item9] [money] NULL,
	[item10] [money] NULL,
	[servicetax] [money] NULL,
	[cess] [money] NULL,
	[cess2] [money] NOT NULL,
	[LRATE] [money] NOT NULL,
	[igstamt] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BILLHIST]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BILLHIST](
	[CTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[GNO] [numeric](18, 0) NOT NULL,
	[TXNDT] [datetime] NOT NULL,
	[COMPANY] [int] NOT NULL,
	[SPLIT] [char](1) NOT NULL,
	[RENT] [money] NOT NULL,
	[OtherChgs] [money] NOT NULL,
	[DISCOUNT] [money] NOT NULL,
	[ITEM1] [money] NULL,
	[OUTLET1] [int] NULL,
	[ITEM2] [money] NULL,
	[OUTLET2] [int] NULL,
	[ITEM3] [money] NULL,
	[OUTLET3] [int] NULL,
	[ITEM4] [money] NULL,
	[OUTLET4] [int] NULL,
	[ITEM5] [money] NULL,
	[OUTLET5] [int] NULL,
	[ITEM6] [money] NULL,
	[OUTLET6] [int] NULL,
	[ITEM7] [money] NULL,
	[OUTLET7] [int] NULL,
	[ITEM8] [money] NULL,
	[OUTLET8] [int] NULL,
	[ITEM9] [money] NULL,
	[OUTLET9] [int] NULL,
	[ITEM10] [money] NULL,
	[OUTLET10] [int] NULL,
	[SC] [money] NULL,
	[LT] [money] NULL,
	[TOTAL] [money] NULL,
	[HOSTID] [char](18) NULL,
	[CNO] [numeric](18, 0) NULL,
	[BILLORDER] [int] NULL,
	[SECTION] [char](1) NULL,
	[taxable] [money] NULL,
	[rno] [numeric](18, 0) NULL,
	[orent] [money] NULL,
	[ST] [money] NOT NULL,
	[CESS] [money] NOT NULL,
	[LRATE] [money] NULL,
	[cess2] [money] NOT NULL,
	[extrabed] [money] NOT NULL,
	[exbedGST] [money] NOT NULL,
	[food] [money] NOT NULL,
	[foodgst] [money] NOT NULL,
	[gstEXBED] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BILLHIST1]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BILLHIST1](
	[CNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[COMPANY] [int] NOT NULL,
	[SPLIT] [char](1) NOT NULL,
	[BNO] [numeric](18, 0) NOT NULL,
	[TXNDT] [datetime] NOT NULL,
	[ADVANCE] [money] NOT NULL,
	[SPLDISCOUNT] [money] NOT NULL,
	[foodbill] [money] NOT NULL,
	[CRNAME] [varchar](50) NOT NULL,
	[CRNUM] [varchar](50) NOT NULL,
	[CRTYPE] [varchar](50) NOT NULL,
	[GLACTNO] [numeric](18, 0) NOT NULL,
	[MOP] [int] NOT NULL,
	[GRNO] [numeric](18, 0) NOT NULL,
	[OLNM1] [char](10) NULL,
	[OLNM2] [char](10) NULL,
	[OLNM3] [char](10) NULL,
	[OLNM4] [char](10) NULL,
	[OLNM5] [char](10) NULL,
	[OLNM6] [char](10) NULL,
	[OLNM7] [char](10) NULL,
	[OLNM8] [char](10) NULL,
	[OLNM9] [char](10) NULL,
	[OLNM10] [char](10) NULL,
	[BRNO] [numeric](18, 0) NULL,
	[spldiscreason] [varchar](200) NULL,
	[spldiscauth] [varchar](50) NULL,
	[st] [decimal](18, 0) NULL,
	[gstin] [nvarchar](50) NOT NULL,
	[nogroupname] [tinyint] NOT NULL,
	[irnsuppress] [tinyint] NOT NULL,
	[narration] [varchar](500) NULL,
 CONSTRAINT [IX_BILLHIST1] UNIQUE NONCLUSTERED 
(
	[CNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[billhist2]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[billhist2](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[brno] [numeric](18, 0) NOT NULL,
	[rent] [numeric](18, 0) NOT NULL,
	[lt] [numeric](18, 0) NOT NULL,
	[otherchgs] [numeric](18, 0) NOT NULL,
	[discount] [numeric](18, 0) NOT NULL,
	[roomservice] [numeric](18, 0) NOT NULL,
	[tariff] [numeric](18, 0) NULL,
	[rno] [varchar](50) NULL,
	[eno] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BILLHISTIRN]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BILLHISTIRN](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[ACKDT] [datetime] NOT NULL,
	[ACKNO] [varchar](50) NOT NULL,
	[IRN] [varchar](200) NOT NULL,
	[INVOICE] [text] NOT NULL,
	[QRCODE] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[billmode]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[billmode](
	[mop] [numeric](18, 0) NOT NULL,
	[payment] [char](20) NOT NULL,
 CONSTRAINT [PK_billmode] PRIMARY KEY CLUSTERED 
(
	[mop] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BILLPOSITION]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BILLPOSITION](
	[CODE] [int] IDENTITY(1,1) NOT NULL,
	[COMPANY] [int] NOT NULL,
	[POSITION] [int] NOT NULL,
	[SERVICETYPE] [tinyint] NOT NULL,
	[OUTLET] [int] NOT NULL,
 CONSTRAINT [PK_BILLPOSITION] PRIMARY KEY NONCLUSTERED 
(
	[CODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[billprinto]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[billprinto](
	[TXNDT] [datetime] NULL,
	[RENT] [money] NULL,
	[DISCOUNT] [money] NULL,
	[ITEM1] [money] NULL,
	[ITEM2] [money] NULL,
	[OUTLET1] [int] NULL,
	[OUTLET2] [int] NULL,
	[ITEM3] [money] NULL,
	[OUTLET3] [int] NULL,
	[ITEM4] [money] NULL,
	[ITEM5] [money] NULL,
	[OUTLET4] [int] NULL,
	[OUTLET5] [int] NULL,
	[OUTLET6] [int] NULL,
	[ITEM6] [money] NULL,
	[ITEM7] [money] NULL,
	[OUTLET7] [int] NULL,
	[ITEM8] [money] NULL,
	[OUTLET8] [int] NULL,
	[ITEM9] [money] NULL,
	[OUTLET9] [int] NULL,
	[ITEM10] [money] NULL,
	[SC] [money] NULL,
	[OUTLET10] [int] NULL,
	[LT] [money] NULL,
	[TOTAL] [money] NULL,
	[CNO] [decimal](18, 0) NOT NULL,
	[SPLIT] [char](1) NOT NULL,
	[BNO] [decimal](18, 0) NOT NULL,
	[billdate] [datetime] NOT NULL,
	[ADVANCE] [money] NOT NULL,
	[CRNAME] [varchar](50) NOT NULL,
	[CRNUM] [varchar](50) NOT NULL,
	[CRTYPE] [varchar](50) NOT NULL,
	[MOP] [int] NOT NULL,
	[GNO] [decimal](18, 0) NULL,
	[ENO] [decimal](18, 0) NULL,
	[RNO] [int] NULL,
	[CO_DATE] [datetime] NULL,
	[CI_DATE] [datetime] NULL,
	[FOODPLAN] [tinyint] NULL,
	[drate] [money] NULL,
	[MALE] [int] NULL,
	[FEMALE] [int] NULL,
	[CHILD] [int] NULL,
	[ADDRESS] [char](5) NULL,
	[NAME] [char](50) NULL,
	[ADD2] [char](50) NULL,
	[ADD1] [char](50) NULL,
	[ADD3] [char](50) NULL,
	[CITY] [char](50) NULL,
	[STATE] [char](50) NULL,
	[PIN] [char](6) NULL,
	[PHONE] [char](50) NULL,
	[FAX] [char](50) NULL,
	[EMAIL] [char](50) NULL,
	[coname] [char](50) NULL,
	[coadd1] [char](50) NULL,
	[coadd2] [char](50) NULL,
	[cocity] [char](50) NULL,
	[cophone] [char](50) NULL,
	[coemail] [char](50) NULL,
	[website] [char](50) NULL,
	[info1] [char](50) NULL,
	[info2] [char](50) NULL,
	[COMPANY] [int] NULL,
	[GRNO] [decimal](18, 0) NOT NULL,
	[OLNM1] [char](10) NULL,
	[OLNM2] [char](10) NULL,
	[OLNM3] [char](10) NULL,
	[OLNM4] [char](10) NULL,
	[OLNM5] [char](10) NULL,
	[OLNM6] [char](10) NULL,
	[OLNM7] [char](10) NULL,
	[OLNM8] [char](10) NULL,
	[OLNM9] [char](10) NULL,
	[OLNM10] [char](10) NULL,
	[grpname] [char](30) NULL,
	[grpcounter] [tinyint] NULL,
	[SPLDISCOUNT] [money] NOT NULL,
	[foodbill] [money] NOT NULL,
	[userchkin] [varchar](50) NULL,
	[userchkout] [varchar](50) NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_billprinto] PRIMARY KEY NONCLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[billprintoc]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[billprintoc](
	[ctrlno] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[blockrooms]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[blockrooms](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[fromdate] [datetime] NOT NULL,
	[todate] [datetime] NOT NULL,
	[roomtype] [varchar](50) NOT NULL,
	[noofrooms] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[BRNO]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BRNO](
	[BRNO] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[cashbook]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[cashbook](
	[cname] [varchar](50) NULL,
	[uname] [varchar](50) NULL,
	[txndt] [datetime] NULL,
	[amount] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[CashBox]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CashBox](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[opgbal] [money] NOT NULL,
	[status] [char](1) NOT NULL,
	[enddate] [datetime] NULL,
 CONSTRAINT [PK_CashBox] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[cashboxhist]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[cashboxhist](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[cashboxno] [numeric](18, 0) NOT NULL,
	[amttyp] [char](1) NOT NULL,
	[amt] [money] NOT NULL,
	[partic] [varchar](200) NOT NULL,
	[txnno] [numeric](18, 0) NOT NULL,
	[computername] [varchar](50) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
 CONSTRAINT [PK_cashboxhist] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[cashboxuser]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[cashboxuser](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[computername] [varchar](50) NOT NULL,
	[status] [char](1) NOT NULL,
	[cashboxno] [numeric](18, 0) NOT NULL,
	[userno] [numeric](18, 0) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
 CONSTRAINT [PK_cashboxuser] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[CASHTYPE]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CASHTYPE](
	[CASHTYPE] [varchar](50) NOT NULL,
	[CTRLNO] [decimal](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[celcategory]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[celcategory](
	[cno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[fno] [numeric](18, 0) NOT NULL,
	[cname] [varchar](100) NOT NULL,
	[total] [numeric](18, 0) NOT NULL,
	[sold] [nchar](10) NOT NULL,
	[price] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[celmaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[celmaster](
	[fno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[fname] [varchar](100) NOT NULL,
	[fdate] [datetime] NOT NULL,
	[company] [numeric](18, 0) NOT NULL,
	[glac] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[celsession]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[celsession](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[refno] [numeric](18, 0) NOT NULL,
	[SESSIONID] [varchar](150) NOT NULL,
	[fno] [numeric](18, 0) NULL,
	[cno] [numeric](18, 0) NULL,
	[name] [varchar](100) NULL,
	[age] [numeric](18, 0) NULL,
	[add1] [varchar](100) NULL,
	[add2] [varchar](100) NULL,
	[add3] [varchar](100) NULL,
	[city] [varchar](100) NULL,
	[state] [varchar](100) NULL,
	[pin] [varchar](40) NULL,
	[phone] [varchar](100) NULL,
	[email] [varchar](100) NULL,
	[amt] [decimal](18, 2) NULL,
	[processstep] [tinyint] NOT NULL,
	[tctrlno] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[celsessionp]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[celsessionp](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[sessionid] [varchar](100) NOT NULL,
	[status] [varchar](200) NULL,
	[txndt] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[celterms]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[celterms](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[fno] [numeric](18, 0) NOT NULL,
	[condition] [varchar](200) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[celtickets]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[celtickets](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[fno] [numeric](18, 0) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[tno] [numeric](18, 0) NOT NULL,
	[name] [varchar](100) NOT NULL,
	[addr1] [varchar](100) NOT NULL,
	[addr2] [varchar](100) NOT NULL,
	[addr3] [varchar](100) NOT NULL,
	[city] [varchar](100) NOT NULL,
	[state] [varchar](100) NOT NULL,
	[pin] [varchar](50) NOT NULL,
	[phone] [varchar](100) NOT NULL,
	[email] [varchar](100) NOT NULL,
	[btype] [tinyint] NOT NULL,
	[mop] [tinyint] NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[dob] [datetime] NOT NULL,
	[amount] [decimal](18, 2) NOT NULL,
	[grno] [numeric](18, 0) NULL,
	[ID] [varchar](30) NOT NULL,
	[crnum] [varchar](100) NULL,
	[crname] [varchar](100) NULL,
	[crbank] [varchar](100) NULL,
	[sessionid] [varchar](100) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[CHALAN]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CHALAN](
	[OUTLET] [numeric](18, 0) NOT NULL,
	[CHCTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[CHLNO] [numeric](18, 0) NOT NULL,
	[CHLDATE] [datetime] NOT NULL,
	[STYPE] [tinyint] NOT NULL,
	[NAME] [varchar](50) NULL,
	[ADD1] [varchar](50) NULL,
	[ADD2] [varchar](50) NULL,
	[ADD3] [varchar](50) NULL,
	[CITY] [varchar](50) NULL,
	[STATE] [varchar](50) NULL,
	[PHONENO] [char](30) NOT NULL,
	[DRIVER] [char](30) NOT NULL,
	[SREADING] [numeric](18, 0) NOT NULL,
	[V_TYPE] [char](20) NOT NULL,
	[V_MAKE] [char](20) NOT NULL,
	[V_NUMBER] [char](20) NOT NULL,
	[TRAVELAGENT] [numeric](18, 0) NOT NULL,
	[BASICAMT] [money] NOT NULL,
	[PERKM] [money] NOT NULL,
	[PERHOUR] [money] NOT NULL,
	[BATA] [money] NOT NULL,
	[TTTYPE] [tinyint] NOT NULL,
	[BASICAMT_T] [money] NOT NULL,
	[PERKM_T] [money] NOT NULL,
	[PERHOUR_T] [money] NOT NULL,
	[BATA_T] [money] NOT NULL,
	[ADVANCE] [money] NOT NULL,
	[ADVANCE_T] [money] NOT NULL,
	[finalamt] [money] NOT NULL,
	[finalamt_T] [money] NOT NULL,
	[pamt] [money] NOT NULL,
	[pamt1] [money] NOT NULL,
	[stax] [money] NOT NULL,
	[totbata] [money] NOT NULL,
	[totbata1] [money] NOT NULL,
	[grno] [numeric](18, 0) NOT NULL,
	[grno_T] [numeric](18, 0) NOT NULL,
	[STATUS] [char](1) NOT NULL,
	[ereading] [numeric](18, 0) NOT NULL,
	[NOTRAVELAGENT] [tinyint] NOT NULL,
	[OGNO] [numeric](18, 0) NOT NULL,
	[maxkm] [numeric](18, 0) NOT NULL,
	[maxhours] [numeric](18, 0) NOT NULL,
	[maxkm_t] [numeric](18, 0) NOT NULL,
	[maxhours_t] [numeric](18, 0) NOT NULL,
	[mop] [tinyint] NOT NULL,
	[CC_NAME] [char](50) NOT NULL,
	[CC_NUM] [char](20) NOT NULL,
	[CC_BANK] [char](20) NOT NULL,
	[GLACTNUM] [numeric](18, 0) NOT NULL,
	[GNO] [numeric](18, 0) NOT NULL,
	[discount] [money] NOT NULL,
	[finalbasic] [money] NOT NULL,
	[finalbasic_t] [money] NOT NULL,
	[finalbata] [money] NOT NULL,
	[finalbata_t] [money] NOT NULL,
	[finaltax] [money] NOT NULL,
	[finaldate] [datetime] NULL,
	[split] [char](1) NOT NULL,
	[grno_co1] [numeric](18, 0) NOT NULL,
	[amt] [money] NOT NULL,
	[user1] [char](10) NULL,
	[user2] [char](10) NULL,
	[otherchgs] [money] NOT NULL,
	[minkm] [int] NOT NULL,
	[minkm_t] [int] NOT NULL,
	[destination] [varchar](200) NULL,
	[ino] [numeric](18, 0) NULL,
	[cancelled] [char](1) NOT NULL,
	[newcolumn] [varchar](200) NULL,
	[cess] [money] NOT NULL,
	[gstin] [nvarchar](15) NULL,
	[cabreadysms] [nchar](1) NOT NULL,
	[cabreadysmstime] [datetime] NULL,
	[DRIVERNO] [nvarchar](50) NULL,
	[EINVOICE] [char](1) NOT NULL,
	[pin] [char](6) NOT NULL,
	[gstinname] [varchar](100) NOT NULL,
	[email] [varchar](100) NOT NULL,
	[TXNCAT] [nchar](10) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[channelmanager]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[channelmanager](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[str1] [varbinary](8000) NOT NULL,
	[id] [varchar](100) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[CHART]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CHART](
	[CGP_ACTNO] [int] NOT NULL,
	[CGP_DESC] [char](50) NOT NULL,
	[FLAG] [int] NOT NULL,
	[TDNO] [int] NOT NULL,
	[ASSET] [char](1) NOT NULL,
	[ONAC] [char](1) NOT NULL,
	[GRP] [int] NOT NULL,
	[PERMIT] [char](1) NOT NULL,
 CONSTRAINT [IX_CHART] UNIQUE NONCLUSTERED 
(
	[CGP_ACTNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_CHART_1] UNIQUE NONCLUSTERED 
(
	[CGP_DESC] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[chqformat]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[chqformat](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[iname] [varchar](50) NOT NULL,
	[Item] [char](10) NOT NULL,
	[ileft] [numeric](18, 0) NOT NULL,
	[itop] [numeric](18, 0) NOT NULL,
	[iheight] [numeric](18, 0) NOT NULL,
	[orientation] [int] NOT NULL,
	[printvou] [int] NOT NULL,
	[e1width] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_chqformat] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[chqmatch]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[chqmatch](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[bankname] [varchar](50) NOT NULL,
	[chqmodel] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[cminvupdate]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[cminvupdate](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[staahcode] [varchar](50) NOT NULL,
	[nor] [numeric](18, 0) NOT NULL,
	[dated] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ColorForm]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ColorForm](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[BColor] [varchar](50) NOT NULL,
	[GColor] [varchar](50) NOT NULL,
	[FColor] [varchar](50) NOT NULL,
	[FCFixed] [varchar](50) NOT NULL,
	[BCFixed] [varchar](50) NOT NULL,
	[FrameColor] [varchar](50) NOT NULL,
	[FrameForeColor] [varchar](50) NOT NULL,
	[GFcolor] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[colors]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[colors](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[red] [int] NOT NULL,
	[green] [int] NOT NULL,
	[blue] [int] NOT NULL,
 CONSTRAINT [PK_color2] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ColorSet]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ColorSet](
	[Form_Name] [varchar](50) NOT NULL,
	[Object] [varchar](50) NOT NULL,
	[Color] [decimal](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[comlog]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[comlog](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[computer] [varchar](50) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[details] [varchar](200) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[txntype] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[commission]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[commission](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[CommnVNO] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[amt] [money] NOT NULL,
	[details] [varchar](100) NOT NULL,
	[paidby] [varchar](50) NOT NULL,
	[grno] [numeric](18, 0) NULL,
	[mop] [tinyint] NOT NULL,
	[glactno] [numeric](18, 0) NULL,
 CONSTRAINT [PK_commission] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[company]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[company](
	[COMPANY] [int] NOT NULL,
	[NAME] [char](50) NOT NULL,
	[add1] [char](50) NOT NULL,
	[add2] [char](50) NOT NULL,
	[city] [char](50) NOT NULL,
	[phone] [char](50) NULL,
	[email] [char](50) NULL,
	[website] [char](50) NULL,
	[info1] [char](50) NULL,
	[info2] [char](50) NULL,
	[ADVRNO] [numeric](18, 0) NOT NULL,
	[ADVRDT] [datetime] NOT NULL,
	[BNO] [numeric](18, 0) NOT NULL,
	[BDT] [datetime] NOT NULL,
	[BNO1] [numeric](18, 0) NOT NULL,
	[BDT1] [datetime] NOT NULL,
	[BNO2] [numeric](18, 0) NOT NULL,
	[BDT2] [datetime] NOT NULL,
	[encryption] [char](500) NOT NULL,
	[add3] [varchar](50) NULL,
	[country] [varchar](50) NULL,
	[logo] [varchar](200) NULL,
	[g_finalbillul] [varchar](200) NOT NULL,
	[link] [char](1) NOT NULL,
	[fax] [varchar](50) NOT NULL,
	[lic1] [varchar](100) NOT NULL,
	[lic2] [varchar](100) NOT NULL,
	[serialno] [numeric](18, 0) NOT NULL,
	[billprefix] [nvarchar](3) NOT NULL,
	[GSTIN] [nvarchar](50) NOT NULL,
	[COT] [varchar](10) NOT NULL,
	[STATE] [varchar](100) NOT NULL,
	[PIN] [varchar](10) NOT NULL,
	[GSTINNAME] [varchar](100) NOT NULL,
 CONSTRAINT [PK_COMPANY] PRIMARY KEY NONCLUSTERED 
(
	[COMPANY] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_COMPANY] UNIQUE NONCLUSTERED 
(
	[NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[companylogo]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[companylogo](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[company] [numeric](18, 0) NOT NULL,
	[logodata] [image] NULL,
	[footerdata] [image] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[COMPARTY]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[COMPARTY](
	[CODE] [numeric](10, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) NOT NULL,
 CONSTRAINT [PK_COMPARTY] PRIMARY KEY CLUSTERED 
(
	[CODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_COMPARTY] UNIQUE NONCLUSTERED 
(
	[name] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[computerol]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[computerol](
	[computer] [char](50) NULL,
	[outlet] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[comtest]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[comtest](
	[calldate] [datetime] NOT NULL,
	[details] [varchar](300) NULL,
	[id] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
 CONSTRAINT [comtest_pk] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Comtest1]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Comtest1](
	[epbx] [numeric](18, 0) NOT NULL,
	[system] [numeric](18, 0) NOT NULL,
	[sms] [tinyint] NOT NULL,
	[systemsms] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[comuser]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[comuser](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[computer] [varchar](50) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[logintime] [datetime] NOT NULL,
	[version_no] [char](20) NULL,
	[chktime] [datetime] NOT NULL,
	[control] [char](1) NOT NULL,
	[userno] [numeric](18, 0) NOT NULL,
	[CashBox] [char](1) NOT NULL,
	[inet] [tinyint] NOT NULL,
	[sessionid] [varchar](200) NOT NULL,
	[host_id] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[CONFIG]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CONFIG](
	[CODE1] [char](50) NOT NULL,
	[CODE2] [int] NOT NULL,
	[CODE3] [char](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[country]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[country](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[countryname] [varchar](50) NOT NULL,
	[countrycode] [char](10) NOT NULL,
	[ebscode] [char](3) NULL,
 CONSTRAINT [PK_country] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[country1]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[country1](
	[Col001] [varchar](255) NULL,
	[Col002] [varchar](255) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[COUPON]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[COUPON](
	[Ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Spl] [char](1) NOT NULL,
	[Gno] [numeric](18, 0) NOT NULL,
	[Txndt] [datetime] NOT NULL,
	[Times] [tinyint] NOT NULL,
	[Name] [varchar](50) NULL,
	[Pax] [tinyint] NULL,
	[Food] [tinyint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[crcardhold]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[crcardhold](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[holdtype] [tinyint] NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[crnum] [varchar](20) NOT NULL,
	[crname] [varchar](50) NOT NULL,
	[crbank] [varchar](50) NOT NULL,
	[amount] [money] NOT NULL,
	[duedt] [datetime] NOT NULL,
	[status] [char](1) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[statusmarkedby] [varchar](50) NULL,
	[refno] [varchar](50) NOT NULL,
 CONSTRAINT [PK_crcardhold] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[crcardtype]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[crcardtype](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[crbank] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[creative]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[creative](
	[ctrlno] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[extn] [char](6) NULL,
	[message] [char](1) NOT NULL,
	[alarm] [char](5) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[CRMHist]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CRMHist](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NULL,
	[usernm] [varchar](50) NULL,
	[details] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[CRMMaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CRMMaster](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) NULL,
	[phone] [varchar](50) NULL,
	[email] [varchar](50) NULL,
	[sdt] [datetime] NULL,
	[ltxndt] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[CRSINV]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CRSINV](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[status] [char](1) NOT NULL,
	[message] [varchar](500) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[CRSRates]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CRSRates](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[sdt] [varchar](20) NOT NULL,
	[edt] [varchar](20) NOT NULL,
	[roomtype] [varchar](50) NOT NULL,
	[renttype] [varchar](50) NOT NULL,
	[rent] [numeric](18, 2) NOT NULL,
	[renttypename] [varchar](100) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[currentkot]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[currentkot](
	[kotctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[OUTLET] [int] NOT NULL,
	[KOT] [numeric](18, 0) NOT NULL,
	[CODE] [numeric](18, 0) NOT NULL,
	[QTY] [numeric](18, 0) NOT NULL,
	[RATE] [money] NOT NULL,
	[STRATE] [money] NOT NULL,
	[TAX] [money] NOT NULL,
	[PEND_TYPE] [tinyint] NOT NULL,
	[BNO] [numeric](18, 0) NULL,
	[BILLTIME] [char](10) NULL,
	[WAITER] [int] NOT NULL,
	[DRATE] [money] NOT NULL,
	[DAMT] [money] NOT NULL,
	[SCRATE] [money] NOT NULL,
	[SCAMT] [money] NOT NULL,
	[ROAMT] [money] NOT NULL,
	[ratetype] [tinyint] NOT NULL,
	[sno] [numeric](18, 0) NOT NULL,
	[nett] [money] NULL,
	[txndt] [datetime] NOT NULL,
	[preference] [varchar](300) NULL,
	[servicetax] [money] NULL,
	[cess] [money] NULL,
	[ppcouponamt] [decimal](18, 2) NOT NULL,
	[st1] [money] NOT NULL,
	[cess1] [money] NOT NULL,
	[sc1] [money] NOT NULL,
	[sqno] [numeric](18, 0) NOT NULL,
	[cess2] [money] NOT NULL,
	[cess21] [money] NOT NULL,
	[packingchgs] [money] NOT NULL,
	[kotconstant] [numeric](18, 0) NOT NULL,
	[GSTIN] [varchar](50) NULL,
	[pend_code] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[currentkotbill]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[currentkotbill](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[bno] [numeric](18, 0) NOT NULL,
	[status] [char](1) NOT NULL,
	[dup] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[currentkotdeleted]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[currentkotdeleted](
	[kotctrlno] [int] NOT NULL,
	[OUTLET] [int] NOT NULL,
	[KOT] [numeric](18, 0) NOT NULL,
	[CODE] [numeric](18, 0) NOT NULL,
	[QTY] [numeric](18, 0) NOT NULL,
	[RATE] [money] NOT NULL,
	[STRATE] [money] NOT NULL,
	[TAX] [money] NOT NULL,
	[PEND_TYPE] [tinyint] NOT NULL,
	[BNO] [numeric](18, 0) NULL,
	[BILLTIME] [char](10) NULL,
	[WAITER] [int] NOT NULL,
	[DRATE] [money] NOT NULL,
	[DAMT] [money] NOT NULL,
	[SCRATE] [money] NOT NULL,
	[SCAMT] [money] NOT NULL,
	[ROAMT] [money] NOT NULL,
	[ratetype] [tinyint] NOT NULL,
	[sno] [numeric](18, 0) NOT NULL,
	[nett] [money] NULL,
	[txndt] [datetime] NOT NULL,
	[preference] [varchar](300) NULL,
	[servicetax] [money] NULL,
	[cess] [money] NULL,
	[ppcouponamt] [decimal](18, 2) NOT NULL,
	[st1] [money] NOT NULL,
	[cess1] [money] NOT NULL,
	[sc1] [money] NOT NULL,
	[sqno] [numeric](18, 0) NOT NULL,
	[cess2] [money] NOT NULL,
	[cess21] [money] NOT NULL,
	[packingchgs] [money] NOT NULL,
	[kotconstant] [numeric](18, 0) NOT NULL,
	[GSTIN] [varchar](50) NULL,
	[pend_code] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[currentkotk]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[currentkotk](
	[txndt] [datetime] NOT NULL,
	[kot] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[currentkotm]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[currentkotm](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[code] [numeric](18, 0) NOT NULL,
	[qty] [char](10) NOT NULL,
	[tno] [numeric](18, 0) NOT NULL,
	[wno] [numeric](18, 0) NOT NULL,
	[rate] [numeric](18, 0) NOT NULL,
	[kot] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[currentkotsqno]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[currentkotsqno](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[sqno] [numeric](18, 0) NOT NULL,
	[status] [char](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DELXXXTABLES]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DELXXXTABLES](
	[TXNDT] [date] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[designation]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[designation](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[designation] [varchar](50) NOT NULL,
 CONSTRAINT [PK_designation] PRIMARY KEY CLUSTERED 
(
	[designation] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[doorcust]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[doorcust](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [char](50) NOT NULL,
	[add1] [char](50) NOT NULL,
	[add2] [char](50) NOT NULL,
	[area] [char](50) NOT NULL,
	[phone] [char](50) NOT NULL,
	[discountrate] [money] NOT NULL,
	[ltxndt] [datetime] NULL,
	[marriageday] [datetime] NULL,
	[birthday] [datetime] NULL,
	[dobm] [tinyint] NOT NULL,
	[dobd] [tinyint] NOT NULL,
	[domm] [tinyint] NOT NULL,
	[domd] [tinyint] NOT NULL,
	[dobsmssent] [datetime] NOT NULL,
	[domsmssent] [datetime] NOT NULL,
	[dobemailsent] [datetime] NOT NULL,
	[domemailsent] [datetime] NOT NULL,
	[GSTIN] [char](15) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[doorcust_id]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[doorcust_id](
	[ID] [char](50) NOT NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
	[myctrlno] [numeric](9, 0) IDENTITY(1,1) NOT NULL,
 CONSTRAINT [PK_doorcust_id] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMBILLNOS]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMBILLNOS](
	[GNO] [decimal](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummy]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummy](
	[serviceno] [numeric](18, 0) NOT NULL,
	[userno] [numeric](18, 0) NOT NULL,
	[permission] [char](1) NOT NULL,
	[outlettype] [int] NULL,
	[outlet] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYBILL]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYBILL](
	[TXNDT] [datetime] NULL,
	[RENT] [money] NULL,
	[extrabed] [money] NULL,
	[EXBEDGST] [money] NULL,
	[food] [money] NULL,
	[foodgst] [money] NULL,
	[OtherChgs] [money] NULL,
	[DISCOUNT] [money] NULL,
	[ITEM1] [money] NULL,
	[ITEM2] [money] NULL,
	[ITEM3] [money] NULL,
	[ITEM4] [money] NULL,
	[ITEM5] [money] NULL,
	[ITEM6] [money] NULL,
	[ITEM7] [money] NULL,
	[ITEM8] [money] NULL,
	[ITEM9] [money] NULL,
	[ITEM10] [money] NULL,
	[LT] [money] NULL,
	[SC] [money] NULL,
	[ST] [money] NULL,
	[CESS] [money] NULL,
	[CESS2] [money] NULL,
	[TOTAL] [money] NULL,
	[BILLORDER] [int] NULL,
	[SECTION] [char](1) NULL,
	[OUTLET1] [int] NULL,
	[OUTLET2] [int] NULL,
	[OUTLET3] [int] NULL,
	[OUTLET4] [int] NULL,
	[OUTLET5] [int] NULL,
	[OUTLET6] [int] NULL,
	[OUTLET7] [int] NULL,
	[OUTLET8] [int] NULL,
	[OUTLET9] [int] NULL,
	[OUTLET10] [int] NULL,
	[ctrlno] [numeric](18, 0) NULL,
	[taxable] [money] NULL,
	[head] [numeric](18, 0) NULL,
	[rno] [numeric](18, 0) NULL,
	[lrate] [numeric](9, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYBILL1]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYBILL1](
	[rno] [numeric](18, 0) NULL,
	[gno] [numeric](18, 0) NULL,
	[gname] [varchar](50) NULL,
	[total] [money] NULL,
	[advance] [money] NULL,
	[rent] [money] NULL,
	[otherchgs] [money] NULL,
	[discount] [money] NULL,
	[lt] [money] NULL,
	[sc] [money] NULL,
	[service1] [money] NULL,
	[service2] [money] NULL,
	[service3] [money] NULL,
	[service4] [money] NULL,
	[service5] [money] NULL,
	[service6] [money] NULL,
	[service7] [money] NULL,
	[service8] [money] NULL,
	[service9] [money] NULL,
	[service10] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYBNQ1]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYBNQ1](
	[Details] [varchar](200) NOT NULL,
	[mode] [numeric](3, 0) NOT NULL,
	[gridno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYBS]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYBS](
	[cgp_actno] [numeric](18, 0) NULL,
	[cgp_desc] [varchar](50) NULL,
	[balance] [money] NULL,
	[previous] [money] NULL,
	[months] [money] NULL,
	[credits] [money] NULL,
	[debits] [money] NULL,
	[grp] [numeric](18, 0) NULL,
	[flag] [numeric](18, 0) NULL,
	[AL] [char](10) NULL,
	[grpname] [varchar](50) NULL,
	[flgname] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYCO]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYCO](
	[COMPANY] [int] NULL,
	[NAME] [char](50) NULL,
	[SUPP] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYCOUPON]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYCOUPON](
	[outlet] [numeric](18, 0) NULL,
	[couponno] [varchar](50) NULL,
	[amt] [decimal](18, 2) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DummyDisc]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DummyDisc](
	[Outlet] [numeric](18, 0) NOT NULL,
	[Discount] [numeric](18, 2) NULL,
	[couponamt] [numeric](18, 2) NULL,
 CONSTRAINT [PK_DummyDisc] PRIMARY KEY CLUSTERED 
(
	[Outlet] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummydt]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummydt](
	[dt] [datetime] NOT NULL,
	[tr] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummydt2]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummydt2](
	[dt] [datetime] NULL,
	[roomtype] [varchar](50) NULL,
	[tr] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummyg]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummyg](
	[CNO] [numeric](18, 0) NOT NULL,
	[GNO] [numeric](18, 0) NOT NULL,
	[ENO] [numeric](18, 0) NOT NULL,
	[RNO] [int] NOT NULL,
	[CI_DATE] [datetime] NOT NULL,
	[CO_DATE] [datetime] NULL,
	[GRNO] [int] NOT NULL,
	[FOODPLAN] [tinyint] NOT NULL,
	[RENT] [money] NOT NULL,
	[DISCOUNT] [money] NOT NULL,
	[SC] [money] NOT NULL,
	[MALE] [int] NOT NULL,
	[FEMALE] [int] NOT NULL,
	[CHILD] [int] NOT NULL,
	[CI_TIME] [char](7) NULL,
	[CO_TIME] [char](7) NULL,
	[grpname] [char](30) NOT NULL,
	[grpcounter] [tinyint] NOT NULL,
	[EXPECTEDDEP] [datetime] NULL,
	[BNO] [numeric](18, 0) NOT NULL,
	[userchkin] [varchar](50) NOT NULL,
	[userchkout] [varchar](50) NOT NULL,
	[reserve_ref] [numeric](18, 0) NULL,
	[reserve_adv] [money] NULL,
	[reserve_adv_cno] [numeric](18, 0) NULL,
	[LT] [char](1) NOT NULL,
	[Slave] [char](1) NULL,
	[Master] [numeric](18, 0) NULL,
	[company] [numeric](18, 0) NOT NULL,
	[FP_details] [varchar](100) NOT NULL,
	[OMale] [int] NOT NULL,
	[arrivedfrom] [varchar](50) NOT NULL,
	[destination] [varchar](50) NOT NULL,
	[qcheck] [char](1) NOT NULL,
	[QNAME] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYGCO]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYGCO](
	[GNO] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYGD]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYGD](
	[NAME] [varchar](50) NOT NULL,
	[FATHER] [varchar](50) NOT NULL,
	[SEX] [char](1) NOT NULL,
	[AGE] [tinyint] NOT NULL,
	[JOB] [varchar](30) NOT NULL,
	[rno] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummygdetails]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummygdetails](
	[gno] [numeric](18, 0) NULL,
	[rno] [numeric](18, 0) NULL,
	[company] [int] NULL,
	[split] [char](1) NULL,
	[item1] [money] NULL,
	[item2] [money] NULL,
	[item3] [money] NULL,
	[item4] [money] NULL,
	[item5] [money] NULL,
	[item6] [money] NULL,
	[item7] [money] NULL,
	[item8] [money] NULL,
	[item9] [money] NULL,
	[item10] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYGLTB]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYGLTB](
	[LGROUP] [char](30) NULL,
	[LFLAG] [char](30) NULL,
	[LDESC] [char](30) NULL,
	[LBALANCE] [money] NULL,
	[AGROUP] [char](30) NULL,
	[AFLAG] [char](30) NULL,
	[ADESC] [char](30) NULL,
	[ABALANCE] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYGRP]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYGRP](
	[rno] [numeric](18, 0) NOT NULL,
	[rent] [money] NOT NULL,
	[male] [tinyint] NOT NULL,
	[female] [tinyint] NOT NULL,
	[child] [tinyint] NOT NULL,
	[eno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummygst]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummygst](
	[aname] [varchar](100) NOT NULL,
	[amt] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummyit]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummyit](
	[ctrlno] [numeric](18, 0) NOT NULL,
	[putime] [char](5) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DummyKF]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DummyKF](
	[Bno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYKIT]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYKIT](
	[CODE] [numeric](18, 0) NOT NULL,
	[QTY] [numeric](18, 0) NOT NULL,
	[RATE] [money] NOT NULL,
	[STRATE] [money] NOT NULL,
	[AMOUNT] [money] NOT NULL,
	[TAX] [money] NOT NULL,
	[DISCOUNT] [money] NOT NULL,
	[KOT] [int] NOT NULL,
	[kotype] [int] NOT NULL,
	[kotcode] [varchar](50) NOT NULL,
	[preference] [varchar](200) NOT NULL,
	[st] [money] NOT NULL,
	[cess] [money] NOT NULL,
	[sc] [money] NOT NULL,
	[cess2] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummyledger]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummyledger](
	[txndt] [datetime] NULL,
	[partic] [varchar](100) NULL,
	[debit] [varchar](50) NULL,
	[credit] [varchar](50) NULL,
	[balance] [varchar](50) NULL,
	[grno] [numeric](18, 0) NULL,
	[txnno] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYLP]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYLP](
	[cgp_Actno] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummyMIS]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummyMIS](
	[ctrlno] [numeric](18, 0) NOT NULL,
	[company] [int] NOT NULL,
	[companyname] [varchar](50) NOT NULL,
	[billtype] [varchar](50) NOT NULL,
	[refno] [varchar](50) NOT NULL,
	[cash] [money] NOT NULL,
	[crcard] [money] NOT NULL,
	[ddch] [money] NOT NULL,
	[glac] [money] NOT NULL,
	[roomservice] [money] NOT NULL,
	[otherroomacbr] [money] NOT NULL,
	[complementary] [money] NOT NULL,
	[details] [varchar](150) NULL,
	[usernm] [varchar](50) NULL,
	[otarent] [money] NOT NULL,
 CONSTRAINT [PK_dummyMIS] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYOB]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYOB](
	[cgp_actno] [numeric](18, 0) NULL,
	[balance] [money] NULL,
	[amttyp] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYONAC]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYONAC](
	[FDRSNO] [numeric](18, 0) NULL,
	[AMT] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYPCC]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYPCC](
	[actnum] [numeric](18, 0) NOT NULL,
	[amount] [money] NOT NULL,
	[partic] [varchar](100) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYPH]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYPH](
	[DETAIL] [varchar](100) NOT NULL,
	[AMOUNT] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummypl]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummypl](
	[id] [numeric](18, 0) NULL,
	[head1] [varchar](100) NULL,
	[head2] [varchar](100) NULL,
	[title] [varchar](100) NULL,
	[amount] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYPP]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYPP](
	[NAME] [varchar](50) NOT NULL,
	[sex] [char](1) NOT NULL,
	[PP_NO] [varchar](50) NOT NULL,
	[PP_ISSUEDATE] [datetime] NOT NULL,
	[PP_ISSUEPLACE] [varchar](50) NOT NULL,
	[parentage] [varchar](50) NULL,
	[NATIONALITY] [varchar](50) NOT NULL,
	[rno] [decimal](18, 0) NULL,
	[DOA] [datetime] NOT NULL,
	[Port] [varchar](50) NOT NULL,
	[employed] [char](1) NOT NULL,
	[stayduration] [int] NOT NULL,
	[purpose] [varchar](50) NOT NULL,
	[regnno] [varchar](50) NULL,
	[regndate] [datetime] NULL,
	[regnoffice] [varchar](50) NULL,
	[vno] [varchar](100) NULL,
	[vip] [varchar](100) NULL,
	[vid] [datetime] NULL,
	[vvd] [datetime] NULL,
	[pped] [datetime] NULL,
	[lpsi] [varchar](100) NULL,
	[dob] [datetime] NULL,
	[place2p] [varchar](200) NULL,
	[country2p] [varchar](100) NULL,
	[phoneno] [varchar](100) NULL,
	[email] [varchar](100) NULL,
	[nationalitybybirth] [varchar](50) NULL,
	[surname] [varchar](50) NULL,
	[arrivedfromport] [varchar](50) NULL,
	[addressinindia] [varchar](250) NULL,
	[nativeaddress] [varchar](250) NULL,
	[vtype] [varchar](50) NULL,
	[VisaLifeTime] [tinyint] NOT NULL,
	[imagectrlno] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYPROFORMA]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYPROFORMA](
	[COMPANY] [numeric](18, 0) NULL,
	[BILLSECTION] [char](1) NULL,
	[CNAME] [varchar](50) NULL,
	[BILLTYPE] [varchar](50) NULL,
	[AMOUNT] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYPYMT]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYPYMT](
	[COMPANY] [int] NULL,
	[MOP] [int] NULL,
	[CRNAME] [varchar](100) NULL,
	[CRNUM] [varchar](20) NULL,
	[CRTYPE] [char](20) NULL,
	[GLACTNO] [int] NULL,
	[SECTION] [char](1) NULL,
	[SPLDISCOUNT] [money] NULL,
	[foodbill] [money] NULL,
	[spldiscreason] [varchar](200) NULL,
	[spldiscauth] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYRENT]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYRENT](
	[txndt] [datetime] NULL,
	[rent] [money] NULL,
	[otherchgs] [money] NULL,
	[discount] [money] NULL,
	[rno] [numeric](18, 0) NULL,
	[lt] [money] NULL,
	[sc] [money] NOT NULL,
	[st] [numeric](18, 2) NULL,
	[cess] [numeric](18, 2) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummyreport]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummyreport](
	[details] [varchar](200) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[dummyreserve]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[dummyreserve](
	[roomtype] [char](50) NULL,
	[noofrooms] [numeric](18, 0) NULL,
	[rentagreed] [money] NULL,
	[RENTAGREED2] [money] NULL,
	[RENTTYPE] [int] NOT NULL,
	[LTTYPE] [tinyint] NULL,
	[WINGNO] [tinyint] NULL,
	[DISCOUNT] [money] NULL,
	[SC] [money] NULL,
	[INSTRUCTIONS] [varchar](50) NULL,
	[RENT1] [money] NULL,
	[RENT2] [money] NULL,
	[FPTYPE] [int] NULL,
	[autobillamt] [money] NULL,
	[blocked] [varchar](5000) NULL,
	[channelexbed] [money] NULL,
	[EXTRABED] [money] NULL,
	[food] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYSALE]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYSALE](
	[CODE] [decimal](18, 0) NOT NULL,
	[QTY] [decimal](18, 0) NOT NULL,
	[RATE] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYSERVICE]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYSERVICE](
	[servicename] [varchar](100) NOT NULL,
	[serviceno] [numeric](18, 0) NOT NULL,
	[outlettype] [int] NULL,
	[outlet] [int] NULL,
	[permission] [char](1) NULL,
	[defaultlevel] [int] NULL,
	[preper] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYSP]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYSP](
	[sno] [numeric](18, 0) NOT NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
	[qty] [float] NOT NULL,
	[price] [numeric](18, 2) NOT NULL,
	[glactno] [numeric](18, 0) NOT NULL,
	[saletax] [numeric](18, 2) NULL,
	[strate] [numeric](18, 2) NULL,
	[drate] [numeric](18, 2) NULL,
	[damt] [numeric](18, 2) NULL,
	[hctrlno2] [numeric](18, 0) NULL,
	[CGSTRATE] [numeric](18, 2) NULL,
	[CGSTAMT] [numeric](18, 2) NULL,
	[SGSTRATE] [numeric](18, 2) NULL,
	[SGSTAMT] [numeric](18, 2) NULL,
	[IGSTRATE] [numeric](18, 2) NULL,
	[IGSTAMT] [numeric](18, 2) NULL,
	[cessrate] [numeric](18, 2) NULL,
	[cessamt] [numeric](18, 2) NULL,
	[oldctrlno] [numeric](18, 0) NULL,
	[oldqty] [float] NULL,
	[EXCISERATE] [numeric](18, 2) NULL,
	[EXCISEAMT] [numeric](18, 2) NULL,
	[TCSRATE] [numeric](18, 2) NULL,
	[TCSAMT] [numeric](18, 2) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYSPLIT]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYSPLIT](
	[OUTLET] [numeric](18, 0) NOT NULL,
	[CHTYPE] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYSQL]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYSQL](
	[SQL] [varchar](1000) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYSTK]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYSTK](
	[CTRLNO] [numeric](18, 0) NULL,
	[INAME] [varchar](100) NULL,
	[LUNAME] [varchar](50) NULL,
	[HUNAME] [varchar](50) NULL,
	[LUPERHU] [int] NULL,
	[RATE] [money] NULL,
	[STOCK] [numeric](18, 0) NULL,
	[LIDATE] [datetime] NULL,
	[LPDATE] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[DUMMYVCH]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DUMMYVCH](
	[COMPANY] [int] NULL,
	[ACTNUM] [int] NULL,
	[AMT] [money] NULL,
	[PARTIC] [varchar](500) NULL,
	[AMTTYP] [char](1) NULL,
	[TXNDT] [datetime] NULL,
	[TXNTYP] [char](1) NULL,
	[FDRSNO] [int] NULL,
	[payee] [varchar](100) NULL,
	[txnno2] [numeric](18, 0) NULL,
	[seller] [numeric](18, 0) NULL,
	[billno] [nvarchar](50) NULL,
	[billdate_CloseDate] [datetime] NULL,
	[chlno_RTXNNO] [numeric](18, 0) NULL,
	[taxtype] [tinyint] NULL,
	[TOTAMT_BALANCE] [numeric](18, 2) NULL,
	[PERCENTAGE] [numeric](18, 2) NULL,
	[ACTNO] [nvarchar](50) NULL,
	[GSTIN] [nvarchar](20) NULL,
	[SELLERNAME] [nvarchar](100) NULL,
	[cashpurchase] [tinyint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EDITASST]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EDITASST](
	[COMPUTERNAME] [varchar](50) NOT NULL,
	[TXNDT] [datetime] NOT NULL,
	[T1] [datetime] NOT NULL,
	[T2] [datetime] NOT NULL,
	[glname] [varchar](50) NOT NULL,
	[misprinter] [varchar](50) NOT NULL,
	[outlet] [tinyint] NOT NULL,
	[time1] [char](10) NULL,
	[time2] [char](10) NULL,
	[time3] [char](10) NULL,
	[time4] [char](10) NULL,
	[time5] [char](10) NULL,
	[coprinter] [tinyint] NOT NULL,
	[resdt1] [datetime] NOT NULL,
	[resdt2] [datetime] NOT NULL,
	[resdt3] [datetime] NOT NULL,
	[resdt4] [datetime] NOT NULL,
	[resdt5] [datetime] NOT NULL,
	[resdt6] [datetime] NOT NULL,
	[resdt7] [datetime] NOT NULL,
	[kotstep2] [int] NOT NULL,
	[kot2type] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[einvoiceaccess]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[einvoiceaccess](
	[access] [numeric](18, 0) NULL,
	[company] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[einvoiceheader]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[einvoiceheader](
	[ctrlno] [numeric](18, 0) NULL,
	[source] [varchar](50) NULL,
	[gstin] [varchar](50) NULL,
	[username] [varchar](50) NULL,
	[password] [varchar](50) NULL,
	[customerid] [varchar](50) NULL,
	[apiid] [varchar](50) NULL,
	[apisecret] [varchar](100) NULL,
	[encryption] [varchar](50) NULL,
	[format] [varchar](50) NULL,
	[type] [varchar](50) NULL,
	[cno] [int] NOT NULL,
	[company] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[emailreport]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[emailreport](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[addressee] [varchar](5000) NOT NULL,
	[message] [varchar](5000) NOT NULL,
	[status] [varchar](500) NOT NULL,
	[usernm] [varchar](20) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EPBX]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPBX](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[GNO] [numeric](18, 0) NULL,
	[S_EXTN] [char](8) NULL,
	[E_EXTN] [char](8) NULL,
	[DATE] [smalldatetime] NULL,
	[STATION] [nvarchar](2) NULL,
	[PHONE_NUM] [varchar](16) NULL,
	[FROM_TIME] [nvarchar](8) NOT NULL,
	[TO_TIME] [nvarchar](8) NULL,
	[AMOUNT] [money] NULL,
	[DURATION] [numeric](18, 0) NULL,
	[COUNTRY] [nvarchar](30) NULL,
	[CITY] [nvarchar](30) NULL,
	[IS_ISD] [nvarchar](1) NULL,
	[STATUS] [char](1) NULL,
	[PULSE] [float] NULL,
	[direction] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EPBXBarred]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPBXBarred](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[phone] [nchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EPBXData]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPBXData](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Details] [varchar](100) NOT NULL,
	[Txndt] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EPBXMODEL]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPBXMODEL](
	[CTRLNO] [decimal](18, 0) NOT NULL,
	[EPBXMODEL] [varchar](50) NOT NULL,
	[FULLNAME] [varchar](100) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EPBXStatus]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EPBXStatus](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[extn] [char](6) NOT NULL,
	[guestname] [char](18) NOT NULL,
	[occupancy] [char](10) NOT NULL,
	[clean] [char](10) NOT NULL,
	[alarm1] [char](6) NOT NULL,
	[alarm2] [char](6) NOT NULL,
	[alarm3] [char](16) NOT NULL,
	[callset] [char](1) NOT NULL,
	[message] [char](1) NOT NULL,
	[guestgroup] [char](2) NOT NULL,
	[dnd] [char](1) NOT NULL,
 CONSTRAINT [PK_EPBXStatus] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[epbxtest]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[epbxtest](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[description] [varchar](500) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[errortrap]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[errortrap](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txnno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NULL,
	[grnoortxnno] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[exbed]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[exbed](
	[gno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[amount] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[exbedco]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[exbedco](
	[outlet] [numeric](18, 0) NOT NULL,
	[narration] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[extension]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[extension](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[extn] [char](6) NULL,
	[name] [char](15) NOT NULL,
 CONSTRAINT [PK_extension] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[extnnumbers]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[extnnumbers](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[extn] [char](6) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[EXTRABED]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[EXTRABED](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[amt] [money] NOT NULL,
	[usernm] [nvarchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[FFHist]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[FFHist](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ICODE] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[status] [char](1) NOT NULL,
	[rdate] [datetime] NULL,
	[issuedto] [varchar](50) NOT NULL,
	[usernm] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[FFItems]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[FFItems](
	[ctrlno] [numeric](18, 0) NOT NULL,
	[ICODE] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[PDate] [datetime] NOT NULL,
	[STATUS] [char](1) NOT NULL,
	[Pvalue] [numeric](18, 2) NOT NULL,
	[DP] [numeric](18, 2) NOT NULL,
	[Depreciation] [numeric](18, 2) NOT NULL,
	[CValue] [numeric](18, 2) NOT NULL,
	[Usernm] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[FFMaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[FFMaster](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](150) NOT NULL,
	[stock] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[FINYEAR]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[FINYEAR](
	[COMPANY] [int] NOT NULL,
	[FY] [int] NOT NULL,
	[DATE] [datetime] NOT NULL,
	[DESCRIPTION] [char](30) NULL,
	[OnAcRcNo] [numeric](18, 0) NOT NULL,
	[Blocked] [char](1) NOT NULL,
	[BlockDate] [datetime] NULL,
	[AdvBFANo] [numeric](18, 0) NULL,
	[ADvBFADate] [datetime] NULL,
	[CommnVno] [numeric](18, 0) NOT NULL,
	[detached] [char](1) NOT NULL,
	[bno1] [numeric](18, 0) NOT NULL,
	[bno2] [numeric](18, 0) NOT NULL,
	[bno] [numeric](18, 0) NOT NULL,
	[PackageBNo] [numeric](18, 0) NOT NULL,
	[TA_ANo] [numeric](18, 0) NOT NULL,
	[ns_sno] [numeric](18, 0) NOT NULL,
	[commcno] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_FINYEAR] PRIMARY KEY NONCLUSTERED 
(
	[COMPANY] ASC,
	[FY] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[FoodTime]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[FoodTime](
	[foodtype] [tinyint] NOT NULL,
	[stime] [char](8) NOT NULL,
	[etime] [char](8) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GCOMPANY]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GCOMPANY](
	[COMNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NAME] [char](50) NOT NULL,
	[ADD1] [char](50) NOT NULL,
	[ADD2] [char](50) NOT NULL,
	[ADD3] [char](50) NOT NULL,
	[CITY] [char](20) NOT NULL,
	[STATE] [char](20) NOT NULL,
	[PIN] [char](10) NOT NULL,
	[CONTACT] [char](50) NOT NULL,
	[PHONE] [char](50) NOT NULL,
	[FAX] [char](50) NOT NULL,
	[EMAIL] [char](50) NOT NULL,
	[LASTVISIT] [datetime] NOT NULL,
	[HITCOUNT] [numeric](18, 0) NOT NULL,
	[PROFILE] [varchar](2000) NOT NULL,
	[RENTTYPE] [tinyint] NOT NULL,
	[LTTYPE] [tinyint] NOT NULL,
	[FPType] [tinyint] NOT NULL,
	[renttype1] [int] NOT NULL,
	[CRS] [char](1) NOT NULL,
	[pw] [nvarchar](50) NOT NULL,
	[gateway] [tinyint] NOT NULL,
	[onlineallowed] [tinyint] NOT NULL,
	[gstin] [nvarchar](50) NOT NULL,
	[stopservice] [tinyint] NOT NULL,
	[mktmgr] [decimal](18, 0) NOT NULL,
	[commratetable] [int] NOT NULL,
	[commgstratetable] [int] NOT NULL,
	[commtcsratetable] [int] NOT NULL,
	[commglactno] [numeric](18, 0) NOT NULL,
	[commeligibility] [int] NOT NULL,
	[commtdsratetable] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GCompanyFoodDiscount]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GCompanyFoodDiscount](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[comno] [numeric](18, 0) NOT NULL,
	[outlet] [int] NOT NULL,
	[fooddiscount] [numeric](5, 2) NOT NULL,
 CONSTRAINT [PK_GCompanyFoodDiscount] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[gcomSet]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[gcomSet](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Comno] [numeric](18, 0) NOT NULL,
	[wingno] [tinyint] NOT NULL,
	[fptype] [tinyint] NOT NULL,
	[discount] [money] NOT NULL,
	[sc] [money] NOT NULL,
	[rent1] [money] NOT NULL,
	[rent2] [money] NOT NULL,
	[renttype1] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GFFL]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GFFL](
	[gno] [decimal](18, 0) NOT NULL,
	[outlet] [decimal](18, 0) NOT NULL,
	[limit] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GFOODPLAN]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GFOODPLAN](
	[PLANTYPE] [tinyint] IDENTITY(1,1) NOT NULL,
	[NAME] [char](10) NOT NULL,
	[DESCRIPTION] [varchar](50) NOT NULL,
	[CHARGES] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[gimages]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[gimages](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[picdata] [image] NULL,
	[pictype] [tinyint] NOT NULL,
 CONSTRAINT [PK_gimages] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GLFLAG]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GLFLAG](
	[CODE] [int] NOT NULL,
	[NAME] [char](50) NOT NULL,
	[GROUP] [int] NOT NULL,
	[Acttype] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GLGROUP]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GLGROUP](
	[CODE] [int] NOT NULL,
	[NAME] [char](50) NOT NULL,
	[AL] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GLPRIMLD]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GLPRIMLD](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[COMPANY] [int] NOT NULL,
	[FY] [int] NOT NULL,
	[CGP_ACTNO] [numeric](18, 0) NOT NULL,
	[CGP_DESC] [varchar](50) NOT NULL,
	[ADD1] [varchar](50) NULL,
	[ADD2] [varchar](50) NULL,
	[CITY] [varchar](50) NULL,
	[PHONE] [varchar](50) NULL,
	[FLAG] [int] NOT NULL,
	[GRP] [int] NOT NULL,
	[BALANCE] [money] NOT NULL,
	[OPGBAL] [money] NOT NULL,
	[LTXNDT] [smalldatetime] NOT NULL,
	[TXNNO] [int] NOT NULL,
	[TDNO] [numeric](18, 0) NULL,
	[ASSET] [char](1) NOT NULL,
	[ONAC] [char](1) NOT NULL,
	[NEXTYEARAC] [numeric](18, 0) NULL,
	[NEXTYEARFY] [int] NULL,
	[DEBIT1] [money] NOT NULL,
	[CREDIT1] [money] NOT NULL,
	[DEBIT2] [money] NOT NULL,
	[CREDIT2] [money] NOT NULL,
	[DEBIT3] [money] NOT NULL,
	[CREDIT3] [money] NOT NULL,
	[DEBIT4] [money] NOT NULL,
	[CREDIT4] [money] NOT NULL,
	[DEBIT5] [money] NOT NULL,
	[CREDIT5] [money] NOT NULL,
	[DEBIT6] [money] NOT NULL,
	[CREDIT6] [money] NOT NULL,
	[DEBIT7] [money] NOT NULL,
	[CREDIT7] [money] NOT NULL,
	[DEBIT8] [money] NOT NULL,
	[CREDIT8] [money] NOT NULL,
	[DEBIT9] [money] NOT NULL,
	[CREDIT9] [money] NOT NULL,
	[DEBIT10] [money] NOT NULL,
	[CREDIT10] [money] NOT NULL,
	[DEBIT11] [money] NOT NULL,
	[CREDIT11] [money] NOT NULL,
	[DEBIT12] [money] NOT NULL,
	[CREDIT12] [money] NOT NULL,
	[Deletable] [char](1) NOT NULL,
	[subgrp] [int] NOT NULL,
	[PERMIT] [char](1) NOT NULL,
	[AllowCredit] [char](1) NOT NULL,
	[email] [varchar](50) NOT NULL,
	[status] [char](1) NOT NULL,
	[gstin] [nvarchar](50) NOT NULL,
	[usernm] [varchar](50) NULL,
	[doo] [datetime] NOT NULL,
	[pan] [varchar](50) NULL,
 CONSTRAINT [PK_GLPRIMLD] PRIMARY KEY NONCLUSTERED 
(
	[COMPANY] ASC,
	[FY] ASC,
	[CGP_ACTNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_GLPRIMLD] UNIQUE NONCLUSTERED 
(
	[CGP_DESC] ASC,
	[FY] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GLSUBGRP]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GLSUBGRP](
	[code] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Name] [varchar](50) NOT NULL,
 CONSTRAINT [PK_GLSUBGRP] PRIMARY KEY CLUSTERED 
(
	[code] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[gm_master]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[gm_master](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[usernm] [varchar](50) NOT NULL,
 CONSTRAINT [PK_gm_master] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GOCCUPANTS]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GOCCUPANTS](
	[GNO] [numeric](18, 0) NOT NULL,
	[NAME] [varchar](50) NOT NULL,
	[FATHER] [varchar](50) NOT NULL,
	[SEX] [char](1) NOT NULL,
	[AGE] [tinyint] NOT NULL,
	[JOB] [varchar](30) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GPASSPORT]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GPASSPORT](
	[GNO] [numeric](18, 0) NOT NULL,
	[NAME] [varchar](50) NOT NULL,
	[sex] [char](1) NULL,
	[PP_NO] [varchar](50) NOT NULL,
	[PP_ISSUEDATE] [datetime] NOT NULL,
	[PP_ISSUEPLACE] [varchar](50) NOT NULL,
	[parentage] [varchar](50) NULL,
	[NATIONALITY] [varchar](50) NOT NULL,
	[doa] [datetime] NOT NULL,
	[port] [varchar](50) NOT NULL,
	[employed] [char](1) NOT NULL,
	[stayduration] [numeric](18, 0) NOT NULL,
	[regnno] [varchar](50) NULL,
	[regndate] [datetime] NULL,
	[regnoffice] [varchar](50) NULL,
	[purpose] [varchar](50) NOT NULL,
	[cformno] [numeric](18, 0) NOT NULL,
	[edate] [datetime] NULL,
	[vno] [varchar](100) NULL,
	[vip] [varchar](100) NULL,
	[vid] [datetime] NULL,
	[vvd] [datetime] NULL,
	[pped] [datetime] NULL,
	[lpsi] [varchar](100) NULL,
	[dob] [datetime] NULL,
	[place2p] [varchar](200) NULL,
	[country2p] [varchar](100) NULL,
	[phoneno] [varchar](100) NULL,
	[email] [varchar](100) NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[nationalitybybirth] [varchar](50) NULL,
	[surname] [varchar](50) NULL,
	[arrivedfromport] [varchar](50) NULL,
	[addressinindia] [varchar](300) NULL,
	[nativeaddress] [varchar](300) NULL,
	[vtype] [varchar](50) NULL,
	[visalifetime] [tinyint] NOT NULL,
	[imagectrlno] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GRENT]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GRENT](
	[GNO] [numeric](18, 0) NOT NULL,
	[CI_DATE] [datetime] NOT NULL,
	[CO_DATE] [datetime] NOT NULL,
	[RENT] [money] NOT NULL,
	[MALE] [int] NOT NULL,
	[FEMALE] [int] NOT NULL,
	[RNO] [numeric](18, 0) NOT NULL,
	[DISCOUNT] [money] NOT NULL,
	[NettRent] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GROOM]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GROOM](
	[GNO] [numeric](18, 0) NOT NULL,
	[CI_DATE] [datetime] NOT NULL,
	[CO_DATE] [datetime] NULL,
	[RNO] [int] NOT NULL,
	[rent] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GroupConnection]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GroupConnection](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[groupservername] [nvarchar](50) NOT NULL,
	[groupdatabasename] [nvarchar](50) NOT NULL,
	[groupusername] [nvarchar](50) NOT NULL,
	[grouppassword] [nvarchar](50) NOT NULL,
 CONSTRAINT [PK_GroupConnection] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
 CONSTRAINT [IX_GroupConnection] UNIQUE NONCLUSTERED 
(
	[groupdatabasename] ASC,
	[groupservername] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GROUPLINKER]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GROUPLINKER](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[hno] [int] NOT NULL,
	[linkid] [numeric](18, 0) NOT NULL,
	[company] [numeric](18, 0) NOT NULL,
	[glactno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GSPLIT]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GSPLIT](
	[GNO] [numeric](18, 0) NOT NULL,
	[CHTYPE] [tinyint] NOT NULL,
	[OUTLET] [int] NOT NULL,
	[SPLIT] [char](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GSTACtnum]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GSTACtnum](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](100) NOT NULL,
	[actnum] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GUEST]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GUEST](
	[CNO] [numeric](18, 0) NULL,
	[GNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ENO] [numeric](18, 0) NOT NULL,
	[RNO] [int] NOT NULL,
	[CI_DATE] [datetime] NOT NULL,
	[CO_DATE] [datetime] NULL,
	[GRNO] [int] NOT NULL,
	[FOODPLAN] [tinyint] NOT NULL,
	[RENT] [money] NOT NULL,
	[DISCOUNT] [money] NOT NULL,
	[SC] [money] NOT NULL,
	[MALE] [int] NOT NULL,
	[FEMALE] [int] NOT NULL,
	[CHILD] [int] NOT NULL,
	[CI_TIME] [char](7) NULL,
	[CO_TIME] [char](7) NULL,
	[grpname] [char](30) NOT NULL,
	[grpcounter] [tinyint] NOT NULL,
	[EXPECTEDDEP] [datetime] NULL,
	[BNO] [numeric](18, 0) NOT NULL,
	[userchkin] [varchar](50) NOT NULL,
	[userchkout] [varchar](50) NOT NULL,
	[reserve_ref] [numeric](18, 0) NULL,
	[reserve_adv] [money] NULL,
	[reserve_adv_cno] [numeric](18, 0) NULL,
	[LT] [char](1) NOT NULL,
	[Slave] [char](1) NULL,
	[Master] [numeric](18, 0) NULL,
	[company] [numeric](18, 0) NOT NULL,
	[FP_details] [varchar](100) NOT NULL,
	[OMale] [int] NOT NULL,
	[arrivedfrom] [varchar](50) NOT NULL,
	[destination] [varchar](50) NOT NULL,
	[qcheck] [char](1) NOT NULL,
	[QNAME] [varchar](50) NOT NULL,
	[BRNO] [numeric](18, 0) NULL,
	[opentoall] [char](1) NOT NULL,
	[AUTOBILL] [char](1) NOT NULL,
	[AUTOAMT] [money] NOT NULL,
	[autoitem] [numeric](18, 0) NOT NULL,
	[autoqty] [numeric](18, 0) NOT NULL,
	[cistatus] [char](1) NOT NULL,
	[wustatus] [char](1) NOT NULL,
	[wutimeset] [char](5) NOT NULL,
	[Name] [varchar](50) NOT NULL,
	[Add1] [varchar](50) NOT NULL,
	[Add2] [varchar](50) NOT NULL,
	[Add3] [varchar](50) NOT NULL,
	[City] [varchar](50) NOT NULL,
	[State] [varchar](50) NOT NULL,
	[Phone] [varchar](50) NOT NULL,
	[fax] [varchar](50) NOT NULL,
	[email] [varchar](500) NULL,
	[Address] [varchar](5) NOT NULL,
	[nationality] [varchar](50) NOT NULL,
	[PIN] [varchar](50) NOT NULL,
	[VoucherNo] [varchar](50) NOT NULL,
	[IDtype] [varchar](50) NULL,
	[IDNo] [varchar](50) NULL,
	[CarNo] [varchar](50) NULL,
	[smssent] [char](1) NULL,
	[SMSTIME] [varchar](20) NULL,
	[tnxemailsent] [char](1) NOT NULL,
	[emailtime] [datetime] NOT NULL,
	[cardsissued] [tinyint] NOT NULL,
	[FoodCoupon] [tinyint] NOT NULL,
	[GI] [decimal](18, 0) NOT NULL,
	[AllInclusive] [char](1) NOT NULL,
	[RentType1] [int] NOT NULL,
	[LTTYpe] [int] NOT NULL,
	[NettRent] [money] NOT NULL,
	[mktmgr] [numeric](18, 0) NOT NULL,
	[NettRentExcludingST] [tinyint] NOT NULL,
	[stopextra] [tinyint] NOT NULL,
	[st] [tinyint] NOT NULL,
	[noshow] [char](1) NOT NULL,
	[channel] [varchar](100) NOT NULL,
	[ischannel] [tinyint] NOT NULL,
	[channelamt] [money] NOT NULL,
	[staahid] [varchar](100) NOT NULL,
	[channelexbed] [money] NOT NULL,
	[channelexbedok] [tinyint] NOT NULL,
	[dobm] [tinyint] NULL,
	[dobd] [tinyint] NULL,
	[domm] [tinyint] NULL,
	[domd] [nchar](10) NULL,
	[dobsmssent] [datetime] NOT NULL,
	[domsmssent] [datetime] NOT NULL,
	[dobemailsent] [datetime] NOT NULL,
	[domemailsent] [datetime] NOT NULL,
	[ExtraBedCharges] [money] NOT NULL,
	[inetsmssent] [tinyint] NOT NULL,
	[inetemailsent] [tinyint] NOT NULL,
	[porting] [char](1) NOT NULL,
	[gstin] [nvarchar](50) NOT NULL,
	[food] [money] NOT NULL,
	[extrabed] [money] NOT NULL,
	[repup] [tinyint] NOT NULL,
	[stopservice] [tinyint] NOT NULL,
	[gstinsplit] [nvarchar](15) NOT NULL,
	[otacommctrlno] [numeric](18, 0) NOT NULL,
	[einvoice] [char](1) NOT NULL,
	[TXNCAT] [nchar](10) NOT NULL,
	[whatsapp] [nchar](1) NOT NULL,
	[whatsappCI] [nchar](1) NOT NULL,
 CONSTRAINT [PK_GUEST] PRIMARY KEY NONCLUSTERED 
(
	[GNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Guest_AutoBill]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Guest_AutoBill](
	[CTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[GNO] [numeric](18, 0) NULL,
	[txndt] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Guest_memo]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Guest_memo](
	[details] [varchar](100) NOT NULL,
	[ctrlno_ref] [numeric](18, 0) NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GUEST1]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GUEST1](
	[CNO] [numeric](18, 0) NULL,
	[GNO] [numeric](18, 0) NOT NULL,
	[ENO] [numeric](18, 0) NOT NULL,
	[RNO] [int] NOT NULL,
	[CI_DATE] [datetime] NOT NULL,
	[CO_DATE] [datetime] NULL,
	[GRNO] [int] NOT NULL,
	[FOODPLAN] [tinyint] NOT NULL,
	[RENT] [money] NOT NULL,
	[DISCOUNT] [money] NOT NULL,
	[SC] [money] NOT NULL,
	[MALE] [int] NOT NULL,
	[FEMALE] [int] NOT NULL,
	[CHILD] [int] NOT NULL,
	[CI_TIME] [char](7) NULL,
	[CO_TIME] [char](7) NULL,
	[grpname] [char](30) NOT NULL,
	[grpcounter] [tinyint] NOT NULL,
	[EXPECTEDDEP] [datetime] NULL,
	[BNO] [numeric](18, 0) NOT NULL,
	[userchkin] [varchar](50) NOT NULL,
	[userchkout] [varchar](50) NOT NULL,
	[reserve_ref] [numeric](18, 0) NULL,
	[reserve_adv] [money] NULL,
	[reserve_adv_cno] [numeric](18, 0) NULL,
	[LT] [char](1) NOT NULL,
	[Slave] [char](1) NULL,
	[Master] [numeric](18, 0) NULL,
	[company] [numeric](18, 0) NOT NULL,
	[FP_details] [varchar](100) NOT NULL,
	[OMale] [int] NOT NULL,
	[arrivedfrom] [varchar](50) NOT NULL,
	[destination] [varchar](50) NOT NULL,
	[qcheck] [char](1) NOT NULL,
	[QNAME] [varchar](50) NOT NULL,
	[BRNO] [numeric](18, 0) NULL,
	[opentoall] [char](1) NOT NULL,
	[AUTOBILL] [char](1) NOT NULL,
	[AUTOAMT] [money] NOT NULL,
	[autoitem] [numeric](18, 0) NOT NULL,
	[autoqty] [numeric](18, 0) NOT NULL,
	[cistatus] [char](1) NOT NULL,
	[wustatus] [char](1) NOT NULL,
	[wutimeset] [char](5) NOT NULL,
	[Name] [varchar](50) NULL,
	[Add1] [varchar](50) NULL,
	[Add2] [varchar](50) NULL,
	[Add3] [varchar](50) NULL,
	[City] [varchar](50) NULL,
	[State] [varchar](50) NULL,
	[Phone] [varchar](50) NULL,
	[fax] [varchar](50) NULL,
	[email] [varchar](100) NULL,
	[Address] [varchar](5) NULL,
	[nationality] [varchar](50) NULL,
	[PIN] [char](6) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[guest2]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[guest2](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Address] [varchar](10) NOT NULL,
	[name] [varchar](50) NULL,
	[add1] [varchar](50) NULL,
	[add2] [varchar](50) NULL,
	[add3] [varchar](50) NULL,
	[city] [varchar](50) NULL,
	[cod] [varchar](50) NULL,
	[cid] [varchar](50) NULL,
	[billno] [varchar](50) NULL,
	[eno] [varchar](50) NULL,
	[rno] [varchar](50) NULL,
	[male] [int] NULL,
	[female] [int] NULL,
	[child] [int] NULL,
	[mop] [varchar](50) NULL,
	[advance] [money] NULL,
	[spldiscount] [money] NOT NULL,
	[billdate] [datetime] NULL,
	[header1] [varchar](50) NULL,
	[header2] [varchar](50) NULL,
	[header3] [varchar](50) NULL,
	[header4] [varchar](50) NULL,
	[header5] [varchar](50) NULL,
	[header6] [varchar](50) NULL,
	[header7] [varchar](50) NULL,
	[header8] [varchar](50) NULL,
	[header9] [varchar](50) NULL,
	[header10] [varchar](50) NULL,
	[addltext] [varchar](200) NULL,
	[usernm] [varchar](50) NULL,
	[clientco] [varchar](100) NULL,
	[gstin] [varchar](50) NOT NULL,
	[HEADERLT] [nvarchar](50) NOT NULL,
	[HEADERSC] [nvarchar](50) NOT NULL,
	[HEADERST] [nvarchar](50) NOT NULL,
	[HEADERCESS] [nvarchar](50) NOT NULL,
	[fpname] [nvarchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GUESTAD]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GUESTAD](
	[CNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ADDRESS] [char](5) NOT NULL,
	[NAME] [varchar](50) NOT NULL,
	[ADD1] [varchar](50) NOT NULL,
	[ADD2] [varchar](50) NOT NULL,
	[ADD3] [varchar](50) NOT NULL,
	[CITY] [varchar](50) NOT NULL,
	[STATE] [varchar](50) NOT NULL,
	[PIN] [varchar](50) NOT NULL,
	[PHONE] [varchar](50) NOT NULL,
	[FAX] [varchar](50) NOT NULL,
	[EMAIL] [varchar](500) NULL,
	[COMPANY] [numeric](18, 0) NOT NULL,
	[LIKES] [varchar](500) NOT NULL,
	[LASTVISIT] [datetime] NOT NULL,
	[RENT] [money] NOT NULL,
	[DISCOUNT] [money] NOT NULL,
	[SC] [money] NOT NULL,
	[Nationality] [varchar](50) NULL,
	[uniquenetid] [varchar](300) NOT NULL,
	[Password] [varchar](20) NULL,
	[IDtype] [varchar](50) NULL,
	[IDNo] [varchar](50) NULL,
	[CarNo] [varchar](50) NULL,
	[renttype1] [numeric](18, 0) NOT NULL,
	[dobm] [tinyint] NULL,
	[dobd] [tinyint] NULL,
	[domm] [tinyint] NULL,
	[domd] [tinyint] NULL,
	[gstin] [nvarchar](50) NOT NULL,
 CONSTRAINT [PK_GUESTAD] PRIMARY KEY NONCLUSTERED 
(
	[CNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_GUESTAD] UNIQUE NONCLUSTERED 
(
	[NAME] ASC,
	[ADD1] ASC,
	[ADD3] ASC,
	[CITY] ASC,
	[ADD2] ASC,
	[uniquenetid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GuestCard]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GuestCard](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[details] [varchar](200) NOT NULL,
 CONSTRAINT [PK_GuestCard] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GuestFP]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GuestFP](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[bmpdata] [image] NOT NULL,
	[Captureusernm] [varchar](50) NULL,
	[CompareUserNm] [varbinary](50) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GuestIPW]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GuestIPW](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[pw] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[GuestSet]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GuestSet](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[roomtype] [tinyint] NOT NULL,
	[rent1] [money] NOT NULL,
	[rent2] [money] NOT NULL,
	[renttype] [tinyint] NOT NULL,
	[lttype] [tinyint] NOT NULL,
	[discount] [money] NOT NULL,
	[sc] [money] NOT NULL,
	[fptype] [tinyint] NOT NULL,
	[lastvisit] [datetime] NOT NULL,
	[renttype1] [int] NOT NULL,
 CONSTRAINT [PK_GuestSet] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[happyhours]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[happyhours](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[sdt] [varchar](11) NOT NULL,
	[edt] [varchar](11) NOT NULL,
	[drate] [money] NOT NULL,
	[stime] [varchar](8) NOT NULL,
	[etime] [varchar](8) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[HKHist]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[HKHist](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[rep_type] [tinyint] NOT NULL,
	[rep_venue] [tinyint] NOT NULL,
	[rep_rno] [numeric](3, 0) NULL,
	[rep_venuename] [char](20) NULL,
	[rep_descpdf] [varchar](50) NULL,
	[rep_desc] [varchar](200) NULL,
	[rep_doc] [datetime] NOT NULL,
	[rep_by] [varchar](50) NULL,
	[rep_user] [varchar](20) NULL,
	[rep_finishedby] [varchar](50) NULL,
	[rep_finishuser] [varchar](20) NULL,
	[rep_mechanic] [varchar](50) NULL,
	[rep_remarks] [varchar](100) NULL,
	[rep_finishtime] [datetime] NULL,
	[rep_status] [char](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[HKJobs]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[HKJobs](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[job_ID] [numeric](18, 0) NOT NULL,
	[job_Description] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[HKMaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[HKMaster](
	[Id] [tinyint] IDENTITY(1,1) NOT NULL,
	[typename] [char](20) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[hkoutlet]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[hkoutlet](
	[outlet] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) NOT NULL,
	[storeincharge] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[HmsFolder]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[HmsFolder](
	[SourceFile] [varchar](50) NOT NULL,
	[version_no] [char](20) NOT NULL,
	[temp] [varchar](3000) NULL,
	[counter] [numeric](18, 0) NOT NULL,
	[hitcounter] [numeric](18, 0) NOT NULL,
	[usd] [money] NOT NULL,
	[dotnetfile] [varchar](300) NULL,
	[cashaccount] [int] NOT NULL,
	[timer] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[HOUSEKEEPER]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[HOUSEKEEPER](
	[CTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NAME] [varchar](50) NOT NULL,
	[ECODE] [char](4) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[IN_Terms]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[IN_Terms](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[details] [varchar](100) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[InetAccess]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[InetAccess](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[ip] [char](15) NOT NULL,
	[sessionid] [varchar](50) NOT NULL,
	[etime] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[inetreserve]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[inetreserve](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[inetrefno] [numeric](18, 0) NOT NULL,
	[roomtype] [char](50) NULL,
	[noofrooms] [numeric](18, 0) NULL,
	[rentagreed] [money] NULL,
	[RENTAGREED2] [money] NULL,
	[RENTTYPE] [tinyint] NULL,
	[LTTYPE] [tinyint] NULL,
	[WINGNO] [tinyint] NULL,
	[DISCOUNT] [money] NULL,
	[SC] [money] NULL,
	[INSTRUCTIONS] [varchar](50) NULL,
	[RENT1] [money] NULL,
	[RENT2] [money] NULL,
	[FPTYPE] [int] NULL,
	[autobillamt] [money] NULL,
	[blocked] [varchar](5000) NULL,
	[description] [varchar](50) NULL,
	[channelexbed] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[inetterms]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[inetterms](
	[ctrlno] [decimal](18, 0) NOT NULL,
	[s1] [char](10) NULL,
	[s2] [char](10) NULL,
	[description] [varchar](200) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[inettrchgs]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[inettrchgs](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[pickup] [numeric](18, 0) NOT NULL,
	[puvehicle] [numeric](18, 0) NOT NULL,
	[charges] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[infosent]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[infosent](
	[n] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[smssent] [char](1) NULL,
	[smstime] [datetime] NULL,
	[message] [varchar](1000) NULL,
	[Monthly] [int] NOT NULL,
	[Weekly] [int] NOT NULL,
	[monthlyrr] [tinyint] NOT NULL,
	[weeklyrr] [tinyint] NOT NULL,
	[hotel] [tinyint] NOT NULL,
	[resto] [tinyint] NOT NULL,
	[whatsappsent] [nchar](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[JSONTOPOST]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[JSONTOPOST](
	[CTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[JSONTOPOST] [text] NOT NULL,
	[CNO] [numeric](18, 0) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[keycardmodel]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[keycardmodel](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KITCLASS]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KITCLASS](
	[code] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Name] [varchar](50) NOT NULL,
	[Rcode] [numeric](18, 0) NULL,
 CONSTRAINT [PK_KITCLASS] PRIMARY KEY NONCLUSTERED 
(
	[code] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_KITCLASS] UNIQUE NONCLUSTERED 
(
	[Rcode] ASC,
	[Name] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KITCLASS_2]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KITCLASS_2](
	[CODE] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NAME] [varchar](50) NOT NULL,
	[RCODE] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_KITCLASS_2] PRIMARY KEY NONCLUSTERED 
(
	[CODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_KITCLASS_2] UNIQUE NONCLUSTERED 
(
	[RCODE] ASC,
	[NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KITGROUP]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KITGROUP](
	[CODE] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NAME] [char](50) NOT NULL,
	[RCODE] [numeric](18, 0) NOT NULL,
	[prnname] [varchar](100) NULL,
 CONSTRAINT [PK_KITGROUP] PRIMARY KEY NONCLUSTERED 
(
	[CODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[kitgrpsno]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[kitgrpsno](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[grp] [int] NOT NULL,
	[txndt] [datetime] NOT NULL,
	[Sno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KITGUEST]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KITGUEST](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) NULL,
	[email] [varchar](500) NULL,
	[phone] [varchar](50) NULL,
	[ltxndt] [datetime] NULL,
	[add1] [varchar](50) NULL,
	[add2] [varchar](50) NULL,
	[add3] [varchar](50) NULL,
	[city] [varchar](50) NULL,
	[country] [varchar](50) NULL,
	[txndt] [datetime] NOT NULL,
	[repup] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KITHIST]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KITHIST](
	[CTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[BNO] [numeric](18, 0) NOT NULL,
	[KOT] [numeric](18, 0) NOT NULL,
	[CODE] [numeric](18, 0) NOT NULL,
	[NAME] [varchar](50) NULL,
	[QTY] [money] NOT NULL,
	[RATE] [money] NOT NULL,
	[STRATE] [money] NOT NULL,
	[TAX] [money] NOT NULL,
	[DISCOUNT] [money] NOT NULL,
	[preference] [varchar](200) NOT NULL,
	[ST] [money] NOT NULL,
	[CESS] [money] NOT NULL,
	[SC] [money] NOT NULL,
	[cess2] [money] NOT NULL,
 CONSTRAINT [PK_KITHIST] PRIMARY KEY NONCLUSTERED 
(
	[CTRLNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KITHIST1]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KITHIST1](
	[BNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DRATE] [money] NOT NULL,
	[TXNDT] [datetime] NOT NULL,
	[OUTLET] [int] NOT NULL,
	[GNO] [numeric](18, 0) NOT NULL,
	[RNO] [int] NOT NULL,
	[PMODE] [int] NOT NULL,
	[SNO] [numeric](18, 0) NOT NULL,
	[SPLIT] [char](1) NOT NULL,
	[SELFDEAL] [char](1) NOT NULL,
	[WNO] [int] NOT NULL,
	[ROAMT] [numeric](18, 2) NOT NULL,
	[RATETYPE] [int] NOT NULL,
	[SCAMT] [money] NOT NULL,
	[SCRATE] [money] NOT NULL,
	[STSET] [tinyint] NOT NULL,
	[SCSET] [tinyint] NOT NULL,
	[CRNAME] [varchar](50) NOT NULL,
	[CRNUM] [varchar](20) NOT NULL,
	[CRTYPE] [varchar](20) NOT NULL,
	[LUX] [char](1) NOT NULL,
	[usernm] [char](10) NOT NULL,
	[txntime] [char](5) NOT NULL,
	[FinalAmt] [money] NOT NULL,
	[PAX] [numeric](18, 0) NULL,
	[Ptype] [tinyint] NULL,
	[autoposting] [char](1) NOT NULL,
	[strbno] [varchar](50) NOT NULL,
	[ndiscount] [numeric](18, 2) NOT NULL,
	[smsddr] [char](1) NULL,
	[smsddrtime] [varchar](20) NULL,
	[ServiceTax] [money] NOT NULL,
	[CESS] [money] NOT NULL,
	[KOTGUESTCTRLNO] [numeric](18, 0) NULL,
	[smsguest] [char](1) NULL,
	[smsguesttime] [datetime] NULL,
	[ppcouponamt] [money] NULL,
	[vatonst] [tinyint] NOT NULL,
	[vatonsc] [tinyint] NOT NULL,
	[guestname] [varchar](50) NULL,
	[packingchgs] [money] NOT NULL,
	[partpayment] [money] NOT NULL,
	[pmode1] [tinyint] NOT NULL,
	[crname1] [varchar](50) NOT NULL,
	[crnum1] [varchar](20) NOT NULL,
	[crbank1] [varchar](20) NOT NULL,
	[gno1] [numeric](18, 0) NOT NULL,
	[gstin] [nvarchar](50) NOT NULL,
	[ndiscgst] [numeric](18, 2) NOT NULL,
	[tno] [varchar](50) NULL,
	[einvoice] [char](1) NOT NULL,
	[gstinname] [varchar](100) NOT NULL,
	[name] [varchar](100) NOT NULL,
	[add1] [varchar](100) NOT NULL,
	[add2] [varchar](100) NOT NULL,
	[city] [varchar](100) NOT NULL,
	[state] [varchar](100) NOT NULL,
	[pin] [varchar](50) NULL,
	[phone] [varchar](50) NULL,
	[email] [varchar](100) NOT NULL,
	[TXNCAT] [nchar](10) NOT NULL,
 CONSTRAINT [PK_KITHIST1] PRIMARY KEY NONCLUSTERED 
(
	[BNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[kithistIRN]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[kithistIRN](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[ACKDT] [datetime] NOT NULL,
	[ACKNO] [varchar](50) NOT NULL,
	[IRN] [varchar](200) NOT NULL,
	[INVOICE] [text] NOT NULL,
	[QRCODE] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KITMAST]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KITMAST](
	[outlet] [int] NOT NULL,
	[CODE] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[RATE] [money] NULL,
	[TAX] [money] NULL,
	[NOTAXCATEGORY] [tinyint] NOT NULL,
	[RATE1] [money] NULL,
	[RATE2] [money] NULL,
	[STATUS] [char](1) NOT NULL,
	[ICODE] [decimal](18, 0) NULL,
 CONSTRAINT [IX_KITMAST] UNIQUE NONCLUSTERED 
(
	[outlet] ASC,
	[ICODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KITMAST1]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KITMAST1](
	[OUTLET] [int] NOT NULL,
	[CODE] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NAME] [char](50) NOT NULL,
	[UNIT] [char](10) NOT NULL,
	[STOCK] [float] NOT NULL,
 CONSTRAINT [PK_KITMAST1] PRIMARY KEY NONCLUSTERED 
(
	[CODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KITMAST2]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KITMAST2](
	[ICODE] [decimal](18, 0) NOT NULL,
	[SCODE] [decimal](18, 0) NOT NULL,
	[QTY] [float] NOT NULL,
	[otype] [tinyint] NOT NULL,
	[outlet] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[kitprime]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[kitprime](
	[name] [nvarchar](30) NOT NULL,
	[grp] [numeric](18, 0) NOT NULL,
	[rcode] [numeric](18, 0) NOT NULL,
	[icode] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[class] [numeric](18, 0) NOT NULL,
	[subclass] [numeric](18, 0) NOT NULL,
	[NoRate] [char](1) NOT NULL,
	[preference] [varchar](200) NOT NULL,
	[Unit] [varchar](50) NOT NULL,
	[shcode] [numeric](18, 0) NOT NULL,
	[shcodeud] [nvarchar](20) NOT NULL,
	[hsn] [nvarchar](50) NOT NULL,
	[taxorgst] [tinyint] NOT NULL,
 CONSTRAINT [PK_kitprime] PRIMARY KEY NONCLUSTERED 
(
	[icode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_kitprime] UNIQUE NONCLUSTERED 
(
	[rcode] ASC,
	[name] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[KOTCatelog]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[KOTCatelog](
	[computer] [varchar](50) NULL,
	[outlet] [decimal](18, 0) NULL,
	[MOP] [tinyint] NOT NULL,
	[Value] [tinyint] NOT NULL,
	[WControl] [tinyint] NOT NULL,
	[DControl] [tinyint] NOT NULL,
	[CodeControl] [tinyint] NOT NULL,
	[codecontrol1] [tinyint] NULL,
	[COutlet] [numeric](18, 0) NULL,
	[CForm] [varchar](100) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[kotconstant]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[kotconstant](
	[ctrlno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[kottable]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[kottable](
	[CTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[TNO] [nchar](10) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[lic]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[lic](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[company] [numeric](18, 0) NOT NULL,
	[sdt] [datetime] NOT NULL,
	[edt] [datetime] NOT NULL,
	[lic1] [varchar](100) NOT NULL,
	[lic2] [varchar](100) NOT NULL,
	[lic3] [varchar](100) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[linker]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[linker](
	[company] [int] NULL,
	[linkid] [numeric](18, 0) NULL,
	[actnum] [numeric](18, 0) NULL,
	[fy] [numeric](18, 0) NULL,
	[balance] [money] NULL,
	[tdno] [numeric](18, 0) NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
 CONSTRAINT [pk_linker] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
 CONSTRAINT [ix_linker] UNIQUE NONCLUSTERED 
(
	[fy] ASC,
	[actnum] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[LTMASTER]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[LTMASTER](
	[SDT] [datetime] NOT NULL,
	[EDT] [datetime] NOT NULL,
	[TNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ltname] [nvarchar](100) NOT NULL,
	[ltSHname] [nvarchar](10) NOT NULL,
	[glactno] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_LTMASTER] PRIMARY KEY NONCLUSTERED 
(
	[TNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[LTONTARIFF]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[LTONTARIFF](
	[SDT] [datetime] NOT NULL,
	[EDT] [datetime] NOT NULL,
	[ltontariff] [char](1) NOT NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ltrateontariff] [char](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[LTTABLE]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[LTTABLE](
	[TNO] [numeric](18, 0) NOT NULL,
	[SAMT] [numeric](18, 2) NULL,
	[EAMT] [numeric](18, 2) NOT NULL,
	[FAMT] [numeric](18, 2) NOT NULL,
	[LRATE] [numeric](18, 2) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[massdel]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[massdel](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NULL,
	[amt] [numeric](18, 2) NOT NULL,
	[rent] [numeric](18, 2) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[matrixtest]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[matrixtest](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[status] [varchar](5) NULL,
	[chgtime] [varchar](20) NULL,
 CONSTRAINT [PK_matrixtest] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[menusearch]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[menusearch](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](200) NOT NULL,
	[optno] [numeric](18, 0) NULL,
	[menutype] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[misset]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[misset](
	[settings] [smallint] NOT NULL,
	[cnt] [tinyint] NOT NULL,
 CONSTRAINT [PK_misset] PRIMARY KEY NONCLUSTERED 
(
	[cnt] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[MIZASTOCK]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MIZASTOCK](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[otype] [tinyint] NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[icode] [numeric](18, 0) NOT NULL,
	[stock] [float] NOT NULL,
	[ltxndt] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[MizStock]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MizStock](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Txndt] [datetime] NOT NULL,
	[Icode] [numeric](18, 0) NOT NULL,
	[Opening] [float] NOT NULL,
	[Received] [float] NOT NULL,
	[Consumed] [float] NOT NULL,
	[Closing] [float] NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[mktmgr]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[mktmgr](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](100) NOT NULL,
	[doj] [datetime] NOT NULL,
	[status] [char](1) NOT NULL,
	[CRS] [char](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[msgcount]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[msgcount](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[count] [int] NOT NULL,
	[countsent] [int] NOT NULL,
	[scnt] [int] NOT NULL,
	[rcnt] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[MYBILLS]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MYBILLS](
	[BNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[TXNDT] [datetime] NOT NULL,
	[PFROM] [datetime] NOT NULL,
	[PTO] [datetime] NOT NULL,
	[AMOUNT] [money] NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[btype] [tinyint] NOT NULL,
	[Description] [char](100) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[MYCUST]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MYCUST](
	[CNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NAME] [char](50) NOT NULL,
	[ADD1] [char](50) NOT NULL,
	[ADD2] [char](50) NOT NULL,
	[CITY] [char](50) NOT NULL,
	[TYPE] [tinyint] NOT NULL,
	[amount] [money] NOT NULL,
 CONSTRAINT [IX_MYCUST] UNIQUE NONCLUSTERED 
(
	[NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[nationality]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[nationality](
	[ctrlno] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) NOT NULL,
 CONSTRAINT [PK_nationality] PRIMARY KEY CLUSTERED 
(
	[name] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NecMBMaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NecMBMaster](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ECode] [int] NOT NULL,
	[ICODE] [numeric](18, 0) NOT NULL,
	[IName] [varchar](50) NOT NULL,
 CONSTRAINT [PK_NecMBMaster] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[necmboutlet]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[necmboutlet](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[items] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[necmbrprint]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[necmbrprint](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[bno] [numeric](18, 0) NOT NULL,
	[status] [char](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[NECMiniBar]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[NECMiniBar](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[extn] [char](4) NOT NULL,
	[message] [varchar](50) NOT NULL,
	[status] [char](1) NOT NULL,
	[acctd] [char](1) NOT NULL,
 CONSTRAINT [PK_NECMiniBar] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Occupancy]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Occupancy](
	[c1] [char](10) NULL,
	[c2] [char](10) NULL,
	[c3] [char](10) NULL,
	[c4] [char](10) NULL,
	[c5] [char](10) NULL,
	[c6] [char](10) NULL,
	[c7] [char](10) NULL,
	[c8] [char](10) NULL,
	[c9] [char](10) NULL,
	[c10] [char](10) NULL,
	[c11] [char](10) NULL,
	[c12] [char](10) NULL,
	[c13] [char](10) NULL,
	[c14] [char](10) NULL,
	[c15] [char](10) NULL,
	[c16] [char](10) NULL,
	[c17] [char](10) NULL,
	[c18] [char](10) NULL,
	[c19] [char](10) NULL,
	[c20] [char](10) NULL,
	[ctrlno] [decimal](18, 0) IDENTITY(1,1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[OL24]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[OL24](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[amount] [numeric](18, 2) NOT NULL,
	[SeqNo] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
 CONSTRAINT [PK_OL24] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[OL24ROOM]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[OL24ROOM](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[rno] [numeric](18, 0) NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[status] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[olstkadj]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[olstkadj](
	[ctrlno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[amttyp] [char](1) NOT NULL,
	[qty] [float] NOT NULL,
	[usernm] [char](10) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[olstock]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[olstock](
	[ctrlno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[opgbal] [float] NOT NULL,
	[receipt] [float] NOT NULL,
	[issue] [float] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[olstore]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[olstore](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[otype] [int] NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[iname] [varchar](50) NOT NULL,
	[luperhu] [float] NOT NULL,
	[luname] [char](10) NOT NULL,
	[huname] [char](10) NOT NULL,
	[stock] [float] NOT NULL,
	[lpdate] [datetime] NOT NULL,
	[lidate] [datetime] NOT NULL,
	[rate] [money] NOT NULL,
	[indent] [char](1) NOT NULL,
 CONSTRAINT [PK_olstore] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_olstore] UNIQUE NONCLUSTERED 
(
	[otype] ASC,
	[outlet] ASC,
	[iname] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[OnAcRc]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[OnAcRc](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Company] [tinyint] NOT NULL,
	[FY] [numeric](18, 0) NOT NULL,
	[Txndt] [datetime] NOT NULL,
	[OnAcRcNo] [numeric](18, 0) NOT NULL,
	[MOP] [tinyint] NOT NULL,
	[CrName] [varchar](50) NULL,
	[Crnum] [varchar](50) NULL,
	[CrBank] [varchar](50) NULL,
	[GRNo] [numeric](18, 0) NOT NULL,
	[Amount] [money] NOT NULL,
	[UserName] [varchar](50) NULL,
	[TxnGlNo] [numeric](18, 0) NULL,
	[Details] [varchar](400) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[OTAAccounts]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[OTAAccounts](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](200) NOT NULL,
	[glactno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[OTACommission]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[OTACommission](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[voucherno] [nvarchar](100) NOT NULL,
	[entrydate] [datetime] NOT NULL,
	[commission] [decimal](18, 2) NOT NULL,
	[GST] [decimal](18, 2) NOT NULL,
	[TCS] [decimal](18, 2) NOT NULL,
	[commrate] [decimal](5, 2) NOT NULL,
	[gstrate] [decimal](5, 2) NOT NULL,
	[tcsrate] [decimal](5, 2) NOT NULL,
	[status] [char](1) NOT NULL,
	[txndt] [datetime] NULL,
	[grno] [numeric](18, 0) NULL,
	[usernm] [varchar](50) NOT NULL,
	[cno] [numeric](18, 0) NULL,
	[tdsrate] [numeric](18, 2) NOT NULL,
	[tdsamt] [numeric](18, 2) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[OUTLET]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[OUTLET](
	[CHANNEL] [int] NOT NULL,
	[CODE] [int] IDENTITY(1,1) NOT NULL,
	[NAME] [char](50) NOT NULL,
	[ACTNUM] [numeric](18, 0) NOT NULL,
	[CURDATE] [datetime] NOT NULL,
	[KOTDATE] [datetime] NOT NULL,
	[KOTNO] [numeric](18, 0) NOT NULL,
	[BILLDATE] [datetime] NOT NULL,
	[ST_ACTNUM] [numeric](18, 0) NOT NULL,
	[DC_ACTNUM] [numeric](18, 0) NOT NULL,
	[RO_ACTNUM] [numeric](18, 0) NOT NULL,
	[GRNO] [int] NOT NULL,
	[SELFDEAL] [char](1) NOT NULL,
	[HNO_MYBOOK] [numeric](18, 0) NOT NULL,
	[hno_htlbook] [numeric](18, 0) NULL,
	[GRNO_TRF] [int] NOT NULL,
	[SC_ACTNUM] [numeric](18, 0) NOT NULL,
	[STSET] [tinyint] NOT NULL,
	[SCSET] [tinyint] NOT NULL,
	[CO1GRNO] [int] NOT NULL,
	[LUX] [char](1) NOT NULL,
	[SC] [char](1) NOT NULL,
	[FREEFOODVOUCHING] [char](10) NULL,
	[AUTOKOT] [char](1) NOT NULL,
	[SALETAXNO] [char](50) NOT NULL,
	[G_STAXINCL] [char](1) NOT NULL,
	[G_cutter] [tinyint] NOT NULL,
	[Duplicate] [tinyint] NOT NULL,
	[ScRate] [money] NOT NULL,
	[RoundOff] [char](1) NOT NULL,
	[sc_table] [tinyint] NOT NULL,
	[sc_room] [tinyint] NOT NULL,
	[sc_door] [tinyint] NOT NULL,
	[ServiceTax] [char](1) NOT NULL,
	[bno] [numeric](18, 0) NOT NULL,
	[qtyfraction] [tinyint] NOT NULL,
	[guestdetails] [tinyint] NOT NULL,
	[STTABLENO] [int] NOT NULL,
	[VATONST] [tinyint] NOT NULL,
	[coname] [tinyint] NOT NULL,
	[chname] [tinyint] NOT NULL,
	[olname] [tinyint] NOT NULL,
	[infoline] [tinyint] NOT NULL,
	[infolinedetail] [varchar](100) NOT NULL,
	[onepercent] [tinyint] NOT NULL,
	[forstamp] [tinyint] NOT NULL,
	[greetingline] [nvarchar](200) NOT NULL,
	[powercaptain] [tinyint] NOT NULL,
	[NoKOTAddress] [tinyint] NOT NULL,
	[servicetaxacno] [numeric](18, 0) NOT NULL,
	[cessacno] [numeric](18, 0) NOT NULL,
	[billprefix] [nvarchar](3) NOT NULL,
	[sac] [varchar](15) NOT NULL,
	[showsc] [tinyint] NOT NULL,
	[vatname] [varchar](20) NOT NULL,
	[newcolumn] [varchar](20) NOT NULL,
	[FSSAI] [varchar](20) NULL,
 CONSTRAINT [PK_OUTLET] PRIMARY KEY NONCLUSTERED 
(
	[CODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_OUTLET] UNIQUE NONCLUSTERED 
(
	[CHANNEL] ASC,
	[NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[outletcomputersetting]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[outletcomputersetting](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[code] [numeric](18, 0) NOT NULL,
	[computer] [varchar](50) NOT NULL,
	[duplicate] [int] NOT NULL,
	[g_cutter] [tinyint] NOT NULL,
	[qtyfraction] [tinyint] NOT NULL,
	[guestdetails] [tinyint] NOT NULL,
	[directtokitchen] [tinyint] NOT NULL,
	[KOTTimes] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[outletlogo]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[outletlogo](
	[outlet] [numeric](18, 0) NOT NULL,
	[logo] [image] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PassPorts]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PassPorts](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[name] [varchar](100) NOT NULL,
	[filename] [varchar](100) NOT NULL,
 CONSTRAINT [PK_PassPorts] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_PassPorts] UNIQUE NONCLUSTERED 
(
	[filename] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PHHELPER]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PHHELPER](
	[OUTLET] [int] NOT NULL,
	[SDT] [datetime] NOT NULL,
	[EDT] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PHHIST]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PHHIST](
	[CNO] [numeric](18, 0) NOT NULL,
	[PARTIC] [char](50) NOT NULL,
	[AMOUNT] [money] NOT NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PHONE]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PHONE](
	[OUTLET] [int] NOT NULL,
	[TXNDT] [datetime] NOT NULL,
	[PMODE] [tinyint] NOT NULL,
	[GNO] [numeric](18, 0) NOT NULL,
	[CNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[DRATE] [money] NOT NULL,
	[CD_NUM] [char](19) NOT NULL,
	[CD_NAME] [char](50) NOT NULL,
	[CD_TYPE] [char](20) NOT NULL,
	[SNO] [numeric](18, 0) NOT NULL,
	[DAMT] [money] NOT NULL,
	[SPLIT] [char](1) NOT NULL,
	[SELFDEAL] [char](1) NOT NULL,
	[RNO] [int] NOT NULL,
	[CRNAME] [varchar](50) NOT NULL,
	[CRNUM] [varchar](20) NOT NULL,
	[CRTYPE] [varchar](20) NOT NULL,
	[LUX] [char](1) NOT NULL,
	[txntime] [char](5) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[SCAMT] [money] NOT NULL,
	[SCRate] [money] NOT NULL,
	[stamt] [money] NOT NULL,
	[strate] [money] NOT NULL,
	[finalamt] [money] NOT NULL,
	[gstin] [nvarchar](50) NOT NULL,
	[einvoice] [char](1) NOT NULL,
	[gstinname] [varchar](100) NOT NULL,
	[name] [varchar](100) NOT NULL,
	[add1] [varchar](100) NOT NULL,
	[add2] [varchar](100) NOT NULL,
	[city] [varchar](100) NOT NULL,
	[state] [varchar](100) NOT NULL,
	[pin] [varchar](6) NOT NULL,
	[phone] [varchar](100) NULL,
	[email] [varchar](100) NOT NULL,
	[TXNCAT] [nchar](10) NOT NULL,
 CONSTRAINT [PK_PHONE] PRIMARY KEY NONCLUSTERED 
(
	[CNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[phoneIRN]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[phoneIRN](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[ACKDT] [datetime] NOT NULL,
	[ACKNO] [varchar](50) NOT NULL,
	[IRN] [varchar](200) NOT NULL,
	[INVOICE] [text] NOT NULL,
	[QRCODE] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PHOUTLET]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PHOUTLET](
	[OUTLET] [int] IDENTITY(1,1) NOT NULL,
	[NAME] [char](50) NOT NULL,
	[SHNAME] [char](10) NOT NULL,
	[COMPANY] [int] NOT NULL,
	[GL_ACTNUM] [numeric](18, 0) NOT NULL,
	[DC_ACTNUM] [numeric](18, 0) NOT NULL,
	[SNO] [numeric](18, 0) NOT NULL,
	[BILLDATE] [datetime] NOT NULL,
	[GRNO] [numeric](18, 0) NOT NULL,
	[GRNO_TRF] [numeric](18, 0) NOT NULL,
	[SELFDEAL] [char](1) NOT NULL,
	[HNO_MYBOOK] [numeric](18, 0) NOT NULL,
	[HNO_HTLBOOK] [numeric](18, 0) NOT NULL,
	[CO1GRNO] [char](10) NOT NULL,
	[LUX] [char](1) NOT NULL,
	[SC] [char](1) NOT NULL,
	[BILLPOSITION1] [int] NOT NULL,
	[BILLPOSITION2] [int] NULL,
	[freefoodvouching] [char](1) NULL,
	[SCRate] [money] NOT NULL,
	[STRate] [money] NOT NULL,
	[STName] [varchar](50) NOT NULL,
	[ST_Actnum] [numeric](18, 0) NOT NULL,
	[sttableno] [int] NOT NULL,
	[billprefix] [nvarchar](3) NOT NULL,
	[sac] [varchar](15) NOT NULL,
	[running] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[pickup]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[pickup](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[description] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PowerBrain]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PowerBrain](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[status] [char](1) NOT NULL,
	[smstime] [datetime] NOT NULL,
	[smssent] [char](1) NOT NULL,
	[Alert] [char](1) NOT NULL,
	[IMAGES] [char](1) NOT NULL,
	[STOREIMAGES] [char](1) NOT NULL,
	[IMAGESTXNDT] [datetime] NOT NULL,
	[STOREIMAGESTXNDT] [datetime] NOT NULL,
	[Icheck] [char](1) NOT NULL,
	[ichecktxndt] [datetime] NOT NULL,
 CONSTRAINT [PK_PowerBrain] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PrePaidCouponMaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PrePaidCouponMaster](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[status] [char](1) NOT NULL,
	[name] [varchar](100) NOT NULL,
	[glactno] [numeric](18, 0) NULL,
	[startdate] [datetime] NOT NULL,
	[CouponType] [int] NOT NULL,
	[PostPaidMode] [tinyint] NULL,
	[PostPaidMaxLimit] [decimal](18, 0) NULL,
	[usernm] [varchar](50) NULL,
	[add1] [varchar](50) NULL,
	[add2] [varchar](50) NULL,
	[city] [varchar](50) NULL,
	[phone] [varchar](50) NULL,
	[contactperson] [varchar](50) NULL,
	[email] [varchar](100) NULL,
	[company] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PrePaidCoupons]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PrePaidCoupons](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[series] [char](10) NULL,
	[sdt] [datetime] NULL,
	[edt] [datetime] NULL,
	[FromNo] [numeric](18, 0) NULL,
	[ToNo] [numeric](18, 0) NULL,
	[denomination] [numeric](18, 2) NULL,
	[discount] [numeric](18, 2) NULL,
	[finalamount] [numeric](18, 2) NULL,
	[usernm] [varchar](50) NULL,
	[mop] [int] NULL,
	[crname] [varchar](50) NULL,
	[crnum] [varchar](50) NULL,
	[crbank] [varchar](50) NULL,
	[glactno] [numeric](18, 0) NULL,
	[grno] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PrePaidHist]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PrePaidHist](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[bno] [numeric](18, 0) NOT NULL,
	[couponno] [varchar](50) NOT NULL,
	[amt] [decimal](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[production]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[production](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[chlno] [numeric](18, 0) NOT NULL,
	[txndt] [numeric](18, 0) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[icode] [numeric](18, 0) NOT NULL,
	[qty] [numeric](18, 0) NOT NULL,
	[usernm] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PSAcYear]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PSAcYear](
	[sno] [numeric](18, 0) NOT NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[acno] [numeric](18, 0) NOT NULL,
	[boy] [datetime] NOT NULL,
	[eoy] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PSClass]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PSClass](
	[sno] [numeric](18, 0) NOT NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[classname] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PSSchool]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PSSchool](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[sno] [numeric](18, 0) NOT NULL,
	[name] [varchar](200) NOT NULL,
	[add1] [varchar](100) NOT NULL,
	[add2] [varchar](100) NOT NULL,
	[add3] [varchar](100) NOT NULL,
	[city] [varchar](100) NOT NULL,
	[state] [varchar](100) NOT NULL,
	[email] [varchar](200) NOT NULL,
	[website] [varchar](200) NULL,
	[phone] [varchar](200) NOT NULL,
	[contactno] [varchar](200) NOT NULL,
	[contactperson] [varchar](200) NOT NULL,
	[schooltype] [tinyint] NOT NULL,
	[boay] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PSSection]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PSSection](
	[sno] [numeric](18, 0) NOT NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[acno] [numeric](18, 0) NOT NULL,
	[class] [varchar](50) NOT NULL,
	[section] [char](5) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PSStudent]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PSStudent](
	[sno] [numeric](18, 0) NOT NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](100) NOT NULL,
	[add1] [varchar](100) NOT NULL,
	[add2] [varchar](100) NOT NULL,
	[add3] [varchar](100) NOT NULL,
	[city] [varchar](100) NOT NULL,
	[state] [varchar](100) NOT NULL,
	[phone] [varchar](100) NOT NULL,
	[father] [varchar](100) NOT NULL,
	[mother] [varchar](100) NOT NULL,
	[guardian] [varchar](100) NOT NULL,
	[caretaker] [tinyint] NOT NULL,
	[fatherphone] [varchar](100) NOT NULL,
	[motherphone] [varchar](100) NOT NULL,
	[guardianphone] [varchar](100) NOT NULL,
	[email] [varchar](200) NOT NULL,
	[dob] [datetime] NOT NULL,
	[doj] [datetime] NOT NULL,
	[dotc] [datetime] NULL,
	[identitymark1] [varchar](200) NULL,
	[identitymark2] [varchar](200) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[pu]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[pu](
	[Col001] [varchar](255) NULL,
	[Col002] [varchar](255) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Purpose]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Purpose](
	[ctrlno] [decimal](18, 0) NOT NULL,
	[name] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[putime]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[putime](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[putime] [char](5) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[puvehicle]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[puvehicle](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[description] [char](20) NOT NULL,
	[Charges] [money] NOT NULL,
	[vname] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[QRCODE]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[QRCODE](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[type] [tinyint] NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[data] [text] NOT NULL,
 CONSTRAINT [PK_QRCODE] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[regentvisitor]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[regentvisitor](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ipadd] [varchar](50) NOT NULL,
	[txndt] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Rent]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Rent](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[RentType] [numeric](18, 0) NOT NULL,
	[sdt] [datetime] NOT NULL,
	[edt] [datetime] NOT NULL,
 CONSTRAINT [PK_Rent] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[rentaccount]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[rentaccount](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[lrate] [money] NOT NULL,
	[actnum] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_rentaccount] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[rentmaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[rentmaster](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[rtypectrlno] [numeric](18, 0) NOT NULL,
	[rno] [numeric](18, 2) NOT NULL,
	[rent1] [numeric](18, 2) NOT NULL,
	[rent2] [numeric](18, 2) NOT NULL,
	[renti1] [numeric](18, 2) NOT NULL,
	[renti2] [numeric](18, 2) NOT NULL,
 CONSTRAINT [PK_rentmaster] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RentPeriod]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RentPeriod](
	[CTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[sdt] [datetime] NULL,
	[edt] [datetime] NULL,
	[RType] [numeric](18, 0) NULL,
 CONSTRAINT [PK_RentPeriod] PRIMARY KEY CLUSTERED 
(
	[CTRLNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RentType]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RentType](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Name] [varchar](50) NOT NULL,
	[staahcode] [varchar](50) NOT NULL,
 CONSTRAINT [PK_RentType] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[resavenuelog]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[resavenuelog](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[bookingid] [varchar](100) NOT NULL,
	[status] [varchar](20) NOT NULL,
	[outerxml] [text] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[resrateidtable]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[resrateidtable](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](50) NOT NULL,
	[rentid] [nvarchar](50) NOT NULL,
	[roomtype] [nvarchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RESTCO]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RESTCO](
	[CHANNEL] [int] IDENTITY(1,1) NOT NULL,
	[NAME] [char](50) NOT NULL,
	[SHNAME] [char](10) NOT NULL,
	[COMPANY] [int] NOT NULL,
	[billposition1] [int] NOT NULL,
	[billposition2] [int] NOT NULL,
	[htl_receivable] [numeric](18, 0) NOT NULL,
	[self_receivable] [numeric](18, 0) NOT NULL,
	[line1] [varchar](50) NOT NULL,
	[line2] [varchar](50) NOT NULL,
	[info] [char](1) NULL,
 CONSTRAINT [PK_RESTCO] PRIMARY KEY NONCLUSTERED 
(
	[CHANNEL] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_RESTCO] UNIQUE NONCLUSTERED 
(
	[COMPANY] ASC,
	[NAME] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[restpmode]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[restpmode](
	[pmode] [int] NOT NULL,
	[name] [char](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Results]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Results](
	[CNO] [decimal](18, 0) NOT NULL,
	[ADDRESS] [char](5) NOT NULL,
	[NAME] [char](50) NOT NULL,
	[ADD1] [char](50) NOT NULL,
	[ADD2] [char](50) NOT NULL,
	[ADD3] [char](50) NOT NULL,
	[CITY] [char](50) NOT NULL,
	[STATE] [char](50) NOT NULL,
	[PIN] [char](6) NOT NULL,
	[PHONE] [char](50) NOT NULL,
	[FAX] [char](50) NOT NULL,
	[EMAIL] [char](50) NOT NULL,
	[COMPANY] [decimal](18, 0) NOT NULL,
	[LIKES] [varchar](500) NOT NULL,
	[LASTVISIT] [datetime] NOT NULL,
	[RENT] [money] NOT NULL,
	[DISCOUNT] [money] NOT NULL,
	[SC] [money] NOT NULL,
	[Nationality] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ROOM]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ROOM](
	[RNO] [int] NOT NULL,
	[GNO] [numeric](18, 0) NOT NULL,
	[RENT1] [money] NOT NULL,
	[RENT2] [money] NOT NULL,
	[ROOMTYPE] [char](50) NOT NULL,
	[GRPNAME] [char](30) NOT NULL,
	[CI] [char](1) NOT NULL,
	[WU] [char](1) NOT NULL,
	[TIME] [char](5) NOT NULL,
	[STD] [char](1) NOT NULL,
	[EXTN] [char](6) NULL,
	[CHECKOUT] [char](1) NOT NULL,
	[HOSTID] [char](18) NOT NULL,
	[STATUS] [char](1) NOT NULL,
	[statusdate] [datetime] NULL,
	[CALLRATE] [money] NOT NULL,
	[INSTANT] [char](1) NOT NULL,
	[CAPACITY] [int] NOT NULL,
	[EXBED] [money] NOT NULL,
	[EVERYEX] [int] NOT NULL,
	[CTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[RentRate21] [money] NOT NULL,
	[RentRate22] [money] NOT NULL,
	[RoomWing] [int] NOT NULL,
	[Sendstatus] [char](1) NOT NULL,
	[qcheck] [char](1) NOT NULL,
	[CISTATUS] [char](1) NOT NULL,
	[WUTIMESET] [char](5) NOT NULL,
	[WUSTATUS] [char](1) NOT NULL,
	[DATAEXCHANGE] [char](1) NOT NULL,
	[roomstatus] [char](50) NULL,
	[statusupto] [datetime] NULL,
	[SL] [char](1) NOT NULL,
	[SLNO] [char](10) NOT NULL,
	[OL24CI] [char](1) NOT NULL,
	[OL24GNO] [numeric](18, 0) NOT NULL,
	[OL24PW] [char](4) NULL,
	[OL24SMS] [char](1) NULL,
	[OL24Count] [int] NOT NULL,
	[HKSMS] [char](1) NOT NULL,
	[CISMSSent] [tinyint] NOT NULL,
	[CISMSTime] [datetime] NULL,
	[roomsection] [tinyint] NOT NULL,
	[rnoa] [char](10) NOT NULL,
	[drent] [money] NOT NULL,
	[dset] [tinyint] NOT NULL,
	[kavachadd] [tinyint] NOT NULL,
	[OL24NAME] [varchar](100) NOT NULL,
 CONSTRAINT [PK_ROOM] PRIMARY KEY NONCLUSTERED 
(
	[RNO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[roomac]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[roomac](
	[txndt] [datetime] NOT NULL,
	[usernm] [char](20) NULL,
	[narration] [varchar](2000) NOT NULL,
	[txntype] [numeric](3, 0) NOT NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
	[gno] [numeric](18, 0) NULL,
	[computer] [varchar](50) NULL,
	[username] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RoomClean]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RoomClean](
	[Ctrlno] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[RNo] [decimal](18, 0) NOT NULL,
	[Description] [varchar](50) NOT NULL,
	[ST_Datetime] [datetime] NOT NULL,
	[HouseKeeperID] [decimal](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[RoomDues]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[RoomDues](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[amount] [money] NOT NULL,
	[usernm] [varchar](20) NOT NULL,
	[company] [numeric](18, 0) NULL,
	[txndt] [datetime] NULL,
	[split] [char](1) NOT NULL,
 CONSTRAINT [PK_RoomDues] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_RoomDues] UNIQUE NONCLUSTERED 
(
	[cno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[roomsection]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[roomsection](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](100) NULL,
	[add1] [nvarchar](100) NULL,
	[add2] [nvarchar](100) NULL,
	[add3] [nvarchar](100) NULL,
	[city] [nvarchar](100) NULL,
	[pin] [nvarchar](20) NULL,
	[state] [nvarchar](100) NULL,
	[country] [nvarchar](100) NULL,
	[phone] [nvarchar](100) NULL,
	[email] [nvarchar](200) NULL,
	[website] [nvarchar](100) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ROOMTYPE]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ROOMTYPE](
	[ROOMTYPE] [int] IDENTITY(1,1) NOT NULL,
	[ROOMDESC] [char](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ServiceAGRNO]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ServiceAGRNO](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[grnocash] [numeric](18, 0) NOT NULL,
	[grnors] [numeric](18, 0) NOT NULL,
	[grnogl] [numeric](18, 0) NOT NULL,
	[grnocc] [numeric](18, 0) NOT NULL,
	[grnobr] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_ServiceAGRNO] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ServiceASNO]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ServiceASNO](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[fy] [numeric](18, 0) NOT NULL,
	[sno] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_ServiceASNO] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ServiceBGRNO]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ServiceBGRNO](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[grnocash] [numeric](18, 0) NOT NULL,
	[grnors] [numeric](18, 0) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[grnogl] [numeric](18, 0) NOT NULL,
	[grnocc] [numeric](18, 0) NOT NULL,
	[grnobr] [nchar](10) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[servicecbill]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[servicecbill](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[usernm] [nvarchar](30) NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
	[status] [nchar](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[servicechist]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[servicechist](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[bctrlno] [numeric](18, 0) NOT NULL,
	[name] [varchar](100) NOT NULL,
	[rate] [money] NOT NULL,
	[qty] [numeric](18, 0) NOT NULL,
	[status] [char](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[servicecitems]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[servicecitems](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Name] [varchar](100) NOT NULL,
	[Rate] [money] NOT NULL,
 CONSTRAINT [PK_ServiceCItems] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ServiceNumbers]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ServiceNumbers](
	[servicename] [char](100) NOT NULL,
	[serviceno] [numeric](18, 0) NOT NULL,
	[defaultpermittedto] [int] NOT NULL,
	[cno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[outlettype] [int] NULL,
	[ORDERNO] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[servicenumbersdefault]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[servicenumbersdefault](
	[serviceno] [decimal](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[servicepermission]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[servicepermission](
	[serviceno] [numeric](18, 0) NOT NULL,
	[userno] [numeric](18, 0) NOT NULL,
	[permission] [char](1) NOT NULL,
	[outlettype] [int] NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[preper] [char](1) NULL,
	[userno1] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[servicepermissiond]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[servicepermissiond](
	[serviceno] [numeric](18, 0) NOT NULL,
	[userno] [numeric](18, 0) NOT NULL,
	[permission] [char](1) NOT NULL,
	[outlettype] [int] NULL,
	[outlet] [numeric](18, 0) NULL,
	[preper] [char](1) NULL,
	[userno1] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sessions]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sessions](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[emailid] [varchar](100) NOT NULL,
	[gname] [varchar](50) NOT NULL,
	[paymentid] [varchar](100) NULL,
	[auth] [varchar](50) NULL,
	[ref] [varchar](100) NULL,
	[tranid] [varchar](100) NULL,
	[trackid] [varchar](100) NULL,
	[udf1] [varchar](50) NULL,
	[txndt] [datetime] NULL,
	[updated] [numeric](3, 0) NOT NULL,
	[mailsent] [numeric](3, 0) NOT NULL,
	[doa] [varchar](50) NULL,
	[dod] [varchar](50) NULL,
	[name] [varchar](100) NULL,
	[add1] [varchar](100) NULL,
	[add2] [varchar](100) NULL,
	[add3] [varchar](100) NULL,
	[city] [varchar](100) NULL,
	[country] [varchar](100) NULL,
	[phoneno] [varchar](50) NULL,
	[email] [varchar](100) NULL,
	[mamt] [money] NULL,
	[pu_instruction] [varchar](500) NULL,
	[pu_time] [varchar](50) NULL,
	[pu_rqd] [tinyint] NULL,
	[pu_from] [varchar](50) NULL,
	[pu_flight] [varchar](50) NULL,
	[bookedby] [varchar](400) NOT NULL,
	[doc_name] [varchar](50) NULL,
	[doc_no] [varchar](50) NULL,
	[udf2] [varchar](50) NULL,
	[udf3] [varchar](50) NULL,
	[udf4] [varchar](50) NULL,
	[reservationno] [numeric](18, 0) NOT NULL,
	[days] [int] NULL,
	[rent] [money] NULL,
	[lt] [money] NULL,
	[sc] [money] NULL,
	[tchgs] [money] NULL,
	[pu_vehicle] [varchar](50) NULL,
	[udf5] [varchar](200) NULL,
	[status] [varchar](200) NULL,
	[st] [money] NULL,
	[comno] [numeric](18, 0) NULL,
	[mktmgr] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[setprinter]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[setprinter](
	[computername] [char](50) NOT NULL,
	[printername] [char](100) NOT NULL,
	[printernumber] [int] NOT NULL,
	[PrinterType] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SETTING]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SETTING](
	[G_HOTELNAME] [char](50) NOT NULL,
	[G_AUTOKOT] [tinyint] NOT NULL,
	[G_KIT_DISC] [tinyint] NOT NULL,
	[G_KIT_SC] [tinyint] NOT NULL,
	[G_AUTO_RENT] [tinyint] NOT NULL,
	[G_DISC_ALLOW] [tinyint] NOT NULL,
	[G_GUESTDETAILS] [tinyint] NOT NULL,
	[G_BNO_GENERATION] [tinyint] NOT NULL,
	[G_RUNNINGDATE] [datetime] NOT NULL,
	[G_VISUALDRIVE] [varchar](100) NULL,
	[G_OCCCOLS] [int] NOT NULL,
	[PaperType] [int] NOT NULL,
	[g_epbx] [char](30) NOT NULL,
	[G_ROUNDOFF] [char](1) NOT NULL,
	[G_BILLPRINTER] [tinyint] NULL,
	[G_EPBXMODEL] [char](30) NOT NULL,
	[G_STRICTLT] [char](1) NOT NULL,
	[G_EXBED] [tinyint] NOT NULL,
	[G_AUTOCUTTER] [tinyint] NOT NULL,
	[G_STOREOUTLET] [tinyint] NOT NULL,
	[G_TTMaster] [tinyint] NOT NULL,
	[G_FreeLimit] [tinyint] NOT NULL,
	[G_Cashier] [varchar](50) NOT NULL,
	[G_ltontariff] [char](1) NOT NULL,
	[foodbillnarration] [varchar](50) NOT NULL,
	[G_Bill_LH] [char](1) NOT NULL,
	[G_Occupancy] [char](1) NOT NULL,
	[G_OccRH] [numeric](18, 0) NOT NULL,
	[G_OccRw] [numeric](18, 0) NOT NULL,
	[G_OccWings] [int] NOT NULL,
	[G_OccNew] [int] NOT NULL,
	[G_PASSPORT_COMPEL] [int] NOT NULL,
	[G_QUICK] [int] NOT NULL,
	[G_PickupComp] [varchar](50) NOT NULL,
	[G_wakeUpComputer] [varchar](100) NULL,
	[G_CloseImmediate] [tinyint] NOT NULL,
	[G_BillTime] [tinyint] NOT NULL,
	[G_EpbxMenu] [tinyint] NOT NULL,
	[g_finalbillul] [varchar](132) NOT NULL,
	[g_numbering] [char](1) NOT NULL,
	[G_billConsolidation] [char](1) NOT NULL,
	[G_Preprintedfinal] [char](1) NOT NULL,
	[G_NewModelBill] [char](1) NOT NULL,
	[G_CallRate] [money] NOT NULL,
	[G_PulseRate] [money] NOT NULL,
	[G_PhoneTax] [money] NOT NULL,
	[G_HotelPhoneHandlingChgs] [money] NOT NULL,
	[G_AutoBillOutlet] [int] NOT NULL,
	[g_sc_default] [char](1) NOT NULL,
	[g_sc_rate] [int] NOT NULL,
	[g_couponprinter] [tinyint] NOT NULL,
	[G_AutoBillShow] [char](1) NOT NULL,
	[g_kotfinaltime] [int] NOT NULL,
	[g_ltinclusive] [char](1) NOT NULL,
	[AutoBillOutlet] [int] NOT NULL,
	[G_SC_LTRules] [tinyint] NOT NULL,
	[G_SC_Afterdisc] [tinyint] NOT NULL,
	[G_CIT_Excuse] [int] NOT NULL,
	[G_COT_Excuse] [int] NOT NULL,
	[G_AutoSplDisc] [int] NOT NULL,
	[G_SCEnabled] [int] NOT NULL,
	[G_TentComputer] [varchar](100) NULL,
	[G_EPBXWatcher] [varchar](50) NOT NULL,
	[G_Juri] [varchar](40) NOT NULL,
	[G_DISC_LTRULES] [tinyint] NOT NULL,
	[currency1] [varchar](50) NOT NULL,
	[currency2] [varchar](50) NOT NULL,
	[resadvprinter] [tinyint] NOT NULL,
	[shortcurrency] [varchar](10) NOT NULL,
	[scforall] [tinyint] NOT NULL,
	[G_FinalBillBackColor] [tinyint] NOT NULL,
	[G_STDRATE] [money] NOT NULL,
	[G_ISDRATE] [money] NOT NULL,
	[G_FIXSTD] [char](1) NOT NULL,
	[G_ISDPULSE] [int] NOT NULL,
	[G_STDPULSE] [int] NOT NULL,
	[G_COPRinter] [int] NOT NULL,
	[G_AdvPRinter] [int] NOT NULL,
	[G_AutoBillCode] [numeric](18, 0) NULL,
	[G_tt_printer] [int] NOT NULL,
	[G_Commnprinter] [int] NOT NULL,
	[G_Logo] [tinyint] NOT NULL,
	[G_HalfDayPermit] [tinyint] NOT NULL,
	[G_MisEno] [tinyint] NOT NULL,
	[G_Cform_Printer] [tinyint] NOT NULL,
	[G_PrintAtKitchen] [tinyint] NOT NULL,
	[G_vouPrinter] [tinyint] NOT NULL,
	[G_ChqPrinter] [varchar](100) NOT NULL,
	[G_Kit_End_Lines] [int] NOT NULL,
	[G_Voucher_Eject] [int] NOT NULL,
	[G_PWControl] [tinyint] NOT NULL,
	[G_PWDays] [int] NOT NULL,
	[G_DOSChqPrinter] [tinyint] NOT NULL,
	[G_Guest_Card] [tinyint] NOT NULL,
	[G_ShowAllAc] [tinyint] NOT NULL,
	[G_SafeLock] [tinyint] NOT NULL,
	[G_DefaultNationality] [varchar](50) NOT NULL,
	[D_color] [float] NOT NULL,
	[G_LTonSc] [tinyint] NOT NULL,
	[G_CashBox] [tinyint] NOT NULL,
	[G_IdleTime] [numeric](18, 0) NOT NULL,
	[G_AutoLogoutTime] [int] NOT NULL,
	[allowcredit] [int] NOT NULL,
	[G_FinAccount] [int] NOT NULL,
	[G_ConRent] [tinyint] NOT NULL,
	[g_bnq_printer] [tinyint] NOT NULL,
	[g_autoguestad] [tinyint] NOT NULL,
	[g_autoguestset] [tinyint] NOT NULL,
	[G_DonChangeReservationRent] [tinyint] NOT NULL,
	[G_GPDesignationwise] [tinyint] NOT NULL,
	[G_ScNettRent] [tinyint] NOT NULL,
	[G_PDAWatcher] [varchar](50) NOT NULL,
	[G_IndicateServiceNo] [tinyint] NOT NULL,
	[G_KOT_GUESTSign] [tinyint] NOT NULL,
	[G_Footer2] [tinyint] NOT NULL,
	[G_DisableSplDiscount] [tinyint] NOT NULL,
	[G_KitRoff] [tinyint] NOT NULL,
	[G_Storeminus] [tinyint] NOT NULL,
	[G_KOTMerge] [tinyint] NOT NULL,
	[BnoisEno] [int] NOT NULL,
	[G_BillHeaderHeight] [numeric](18, 0) NOT NULL,
	[G_ShRooms] [int] NOT NULL,
	[G_taxsystem] [tinyint] NOT NULL,
	[G_BackupComputer] [varchar](50) NOT NULL,
	[G_OnAcPrintType] [tinyint] NOT NULL,
	[G_12Noon] [tinyint] NOT NULL,
	[G_12NoonStr] [varchar](20) NOT NULL,
	[G_MakeMyRoomComputer] [varchar](50) NOT NULL,
	[G_SCVAT] [tinyint] NOT NULL,
	[CardChargeOutlet] [numeric](18, 0) NOT NULL,
	[CardChargeAmt] [money] NOT NULL,
	[G_CashEntries] [tinyint] NOT NULL,
	[G_FirstHalfCutOffTime] [numeric](10, 0) NOT NULL,
	[G_SecondHalfCutOffTime] [numeric](10, 0) NOT NULL,
	[G_FoodCouponType] [tinyint] NOT NULL,
	[G_AlphaSet] [tinyint] NOT NULL,
	[G_Auto24Hour] [tinyint] NOT NULL,
	[G_Auto24Start] [numeric](10, 0) NOT NULL,
	[G_Auto24End] [numeric](10, 0) NOT NULL,
	[g_expshow] [tinyint] NOT NULL,
	[G_HeaderInAllPages] [tinyint] NOT NULL,
	[G_SupressRoomTypesInBills] [tinyint] NOT NULL,
	[G_BillFormat2] [tinyint] NOT NULL,
	[G_BillA5] [tinyint] NOT NULL,
	[G_HeadOtherchgs] [char](10) NOT NULL,
	[G_TitleOtherChgs] [varchar](50) NOT NULL,
	[G_FinStart] [tinyint] NOT NULL,
	[G_LTName] [varchar](50) NOT NULL,
	[G_LTNameSH] [varchar](50) NOT NULL,
	[G_LTExemptionVisible] [int] NOT NULL,
	[INetOutlet] [int] NOT NULL,
	[G_Early] [tinyint] NOT NULL,
	[G_12_24_Freeze] [int] NOT NULL,
	[G_12_24_Index] [int] NOT NULL,
	[g_emailoption] [tinyint] NOT NULL,
	[g_pemail] [varchar](100) NOT NULL,
	[g_pemailpw] [varchar](100) NOT NULL,
	[g_pemailport] [varchar](5) NOT NULL,
	[g_pemailsmtp] [varchar](100) NOT NULL,
	[G_STONSC] [int] NOT NULL,
	[NOOLD] [tinyint] NOT NULL,
	[CODUE] [varchar](50) NOT NULL,
	[KOTFontName] [varchar](50) NOT NULL,
	[KOTFontSize] [int] NOT NULL,
	[G_BlockRooms] [tinyint] NOT NULL,
	[G_TimeControledQCheck] [tinyint] NOT NULL,
	[G_ProformaTitle] [tinyint] NOT NULL,
	[G_FoodPlanToPrintInBill] [tinyint] NOT NULL,
	[SMSWATCHER] [varchar](200) NOT NULL,
	[NetWidth] [numeric](18, 0) NOT NULL,
	[NetHeight] [numeric](18, 0) NOT NULL,
	[g_guestsignature] [int] NOT NULL,
	[g_BillPrefix] [char](3) NOT NULL,
	[G_ConfirmKOTPrint] [tinyint] NOT NULL,
	[g_hotelmaster] [tinyint] NOT NULL,
	[g_hotelratedisplay] [tinyint] NOT NULL,
	[storeimagedatabase] [varchar](50) NOT NULL,
	[FBFName] [varchar](100) NOT NULL,
	[FBFSize] [numeric](18, 2) NOT NULL,
	[FBFItalic] [tinyint] NOT NULL,
	[FBFBold] [tinyint] NOT NULL,
	[FBFColor] [varchar](20) NOT NULL,
	[G_PhotoOnBill] [tinyint] NOT NULL,
	[SecretMail] [varchar](50) NOT NULL,
	[G_BillFormat] [tinyint] NOT NULL,
	[gencrypt] [tinyint] NOT NULL,
	[manualcode] [tinyint] NOT NULL,
	[g_postingdate] [tinyint] NOT NULL,
	[g_fpcheck] [tinyint] NOT NULL,
	[liquor] [varchar](50) NOT NULL,
	[g_shanti] [int] NOT NULL,
	[dmppreprint1space] [int] NOT NULL,
	[dmppreprint2space] [int] NOT NULL,
	[dmppreprint3space] [int] NOT NULL,
	[keycard] [varchar](50) NOT NULL,
	[onetimeperiod] [int] NOT NULL,
	[g_inbuiltsms] [int] NOT NULL,
	[advancename] [varchar](50) NOT NULL,
	[enoisgno] [int] NOT NULL,
	[LTSETTING] [int] NOT NULL,
	[EXBEDSPLIT] [int] NOT NULL,
	[newbillformat3] [int] NOT NULL,
	[paperheight] [int] NOT NULL,
	[g_redalert] [money] NOT NULL,
	[g_ethernetprint] [int] NOT NULL,
	[G_GSTBILLFORMAT] [int] NOT NULL,
	[gBuzzerIP] [varchar](15) NOT NULL,
	[sttableno_noshow] [tinyint] NOT NULL,
	[gststate] [varchar](50) NOT NULL,
	[mbrprinter] [varchar](50) NOT NULL,
	[g_emailphone] [tinyint] NOT NULL,
	[gstpaidbills] [varchar](50) NOT NULL,
	[roomsection] [tinyint] NOT NULL,
	[showrent] [tinyint] NOT NULL,
	[billyear] [tinyint] NOT NULL,
	[AUTOBUNDLEEXBED] [tinyint] NOT NULL,
	[KOTSettlementBill] [tinyint] NOT NULL,
	[SSLEnable] [tinyint] NOT NULL,
	[duelettertext] [varchar](8000) NOT NULL,
	[g_travelchalansize] [tinyint] NOT NULL,
	[VATONEXCISE] [tinyint] NOT NULL,
	[VATONTCS] [tinyint] NOT NULL,
	[TCSONVAT] [tinyint] NOT NULL,
	[TCSONEXCISE] [tinyint] NOT NULL,
	[G_UC] [tinyint] NOT NULL,
	[EXBEDWatcher] [varchar](100) NOT NULL,
	[stop_roundoff_autobilling] [tinyint] NOT NULL,
	[cloud] [tinyint] NOT NULL,
	[doubleyear] [tinyint] NOT NULL,
	[G_Fullrent] [tinyint] NOT NULL,
	[G_AUTHORITYFORPURCHASEORDER] [int] NOT NULL,
	[G_OCCLINE] [int] NOT NULL,
	[G_deletetemptablescomputer] [varchar](100) NOT NULL,
	[g_advance] [varchar](100) NOT NULL,
	[G_Advance_With_Chkin] [tinyint] NOT NULL,
	[shiftrent] [tinyint] NOT NULL,
	[banqdifferent] [tinyint] NOT NULL,
	[nohallcharges] [tinyint] NOT NULL,
	[PRINTDELETED] [tinyint] NOT NULL,
	[BHAORAO] [tinyint] NOT NULL,
	[MSME] [varchar](100) NOT NULL,
	[duplicateprint] [tinyint] NOT NULL,
	[servicechgs] [varchar](50) NOT NULL,
	[ReserveEmail] [tinyint] NOT NULL,
	[GSTCHECK] [tinyint] NOT NULL,
	[extrarentgracetime] [numeric](18, 0) NOT NULL,
	[manualgno] [numeric](18, 0) NOT NULL,
	[gnomanualsetting] [int] NOT NULL,
	[glchecker] [varchar](50) NOT NULL,
	[g_foodline] [varchar](50) NOT NULL,
	[checkvalidation] [tinyint] NOT NULL,
	[g_x1space] [int] NOT NULL,
	[G_BillConsolidationSplit] [char](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SettingCatelog]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SettingCatelog](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[formname] [varchar](50) NOT NULL,
	[computername] [varchar](50) NOT NULL,
	[controlno] [int] NULL,
	[controlvalue] [int] NULL,
	[PrinterName] [varchar](200) NULL,
	[colorset] [int] NULL,
	[ccontrolvalue] [varchar](200) NULL,
	[controlvaue2] [numeric](18, 0) NULL,
	[controlvalue2] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SHANTIPALACE]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SHANTIPALACE](
	[CTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[G_SHANTISTART1] [numeric](18, 0) NOT NULL,
	[G_SHANTISTART2] [numeric](18, 0) NOT NULL,
	[G_SHANTISTART3] [numeric](18, 0) NOT NULL,
	[G_SHANTIW1] [numeric](18, 0) NOT NULL,
	[G_SHANTIW2] [numeric](18, 0) NOT NULL,
	[G_SHANTIW3] [numeric](18, 0) NOT NULL,
	[G_SHANTIW4] [numeric](18, 0) NOT NULL,
	[G_SHANTIW5] [numeric](18, 0) NOT NULL,
	[G_SHANTIW6] [numeric](18, 0) NOT NULL,
	[G_SHANTIW7] [numeric](18, 0) NOT NULL,
	[G_SHANTIQTY] [numeric](18, 0) NOT NULL,
	[G_SHANTIRATE] [numeric](18, 0) NOT NULL,
	[G_SHANTIAMT] [numeric](18, 0) NOT NULL,
	[G_FONT7] [int] NOT NULL,
	[G_FONT8] [int] NOT NULL,
	[G_FONT9] [int] NOT NULL,
	[G_SHANTISTART4] [int] NOT NULL,
	[G_FONT10] [int] NOT NULL,
	[G_SHANTIW8] [int] NOT NULL,
	[COMPUTERNAME] [varchar](100) NOT NULL,
	[DESCRIPTION] [varchar](200) NOT NULL,
	[g_shanti] [tinyint] NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[smscashbal]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[smscashbal](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NULL,
	[timer] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[smslink]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[smslink](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[typename] [varchar](50) NOT NULL,
	[strvar] [varchar](5000) NOT NULL,
	[TEMPLATEID] [varchar](50) NOT NULL,
 CONSTRAINT [PK_smslink] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[smsreminder]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[smsreminder](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[txntype] [char](1) NOT NULL,
	[sentdate] [datetime] NOT NULL,
	[phone] [varchar](32) NOT NULL,
	[matter] [varchar](160) NOT NULL,
	[status] [char](1) NOT NULL,
 CONSTRAINT [PK_smsreminder] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[smsreport]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[smsreport](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[addressee] [varchar](5000) NOT NULL,
	[message] [varchar](5000) NOT NULL,
	[status] [varchar](500) NOT NULL,
	[usernm] [varchar](20) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[smssername]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[smssername](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[smsusername] [varchar](50) NULL,
	[smspassword] [varchar](50) NULL,
	[smssenderid] [varchar](50) NULL,
	[smsheadernumber] [varchar](50) NULL,
	[smsflash] [char](5) NULL,
	[smsinfophones] [varchar](500) NULL,
	[connectiontype] [char](10) NULL,
	[emailid] [varchar](100) NULL,
	[emailpw] [varchar](100) NULL,
	[smtpserver] [varchar](50) NULL,
	[G_Result] [varchar](50) NULL,
	[G_PreFix] [varchar](50) NULL,
	[BackupMsgphones] [varchar](500) NULL,
	[backupmsgboth] [char](1) NULL,
	[smscashdur] [char](2) NULL,
	[smscashinfo] [char](1) NULL,
	[smscashphones] [varchar](500) NULL,
	[MonthlySales] [int] NOT NULL,
	[RestaurantOnly] [tinyint] NOT NULL,
	[RentRevenue] [tinyint] NOT NULL,
	[ol24] [tinyint] NOT NULL,
	[feedback] [tinyint] NOT NULL,
	[hksmsphones] [varchar](50) NOT NULL,
	[hksms] [tinyint] NOT NULL,
	[CISMS] [tinyint] NOT NULL,
	[CISMSphones] [varchar](44) NOT NULL,
	[cabready] [tinyint] NOT NULL,
	[smsinfoperiodwise] [tinyint] NOT NULL,
	[smsinfophonesw] [varchar](500) NOT NULL,
	[smsinfophonesm] [varchar](500) NOT NULL,
	[complimentary] [int] NOT NULL,
	[STOPMAIL] [int] NOT NULL,
 CONSTRAINT [PK_smssername] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[speset]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[speset](
	[port] [numeric](18, 0) NULL,
	[baud] [char](10) NULL,
	[parity] [char](1) NULL,
	[data] [char](1) NULL,
	[stop bit] [char](1) NULL,
	[MatrixStart] [numeric](18, 0) NULL,
	[MatrixEnd] [numeric](18, 0) NULL,
	[MatrixTimer1] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptbpayablebycompany]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptbpayablebycompany](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[hotelname] [nchar](100) NOT NULL,
	[glactno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptbph]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptbph](
	[calltype] [tinyint] NOT NULL,
	[outlet] [tinyint] NOT NULL,
	[settings2] [varchar](500) NULL,
	[settings] [varchar](500) NULL,
	[newcolumn] [varchar](500) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptbrooms]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptbrooms](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[myctrlno] [numeric](18, 0) NOT NULL,
	[rno] [int] NOT NULL,
	[status1] [char](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptbrs]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptbrs](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[bookingdate] [datetime] NOT NULL,
	[arrivaldate] [datetime] NOT NULL,
	[departuredate] [datetime] NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[status] [char](1) NOT NULL,
	[COMPANY] [numeric](18, 0) NULL,
	[instructions] [varchar](200) NULL,
	[advancerecd] [money] NOT NULL,
	[advanceadjd] [money] NOT NULL,
	[cancelledon] [datetime] NULL,
	[refundamount] [money] NOT NULL,
	[refundmop] [int] NULL,
	[refundglactno] [int] NULL,
	[refundgrno] [numeric](18, 0) NULL,
	[cancelledby] [varchar](50) NULL,
	[cancellusernm] [varchar](50) NULL,
	[cancellreason] [varchar](100) NULL,
	[noshowcharges] [money] NULL,
	[noshowmop] [int] NULL,
	[noshowcrnum] [varchar](50) NULL,
	[noshowcrname] [varchar](50) NULL,
	[noshowcrtype] [varchar](50) NULL,
	[noshowglactno] [numeric](18, 0) NULL,
	[noshowtxndt] [datetime] NULL,
	[noshowgrno] [numeric](18, 0) NULL,
	[noshowusernm] [varchar](50) NULL,
	[bookedby] [varchar](400) NOT NULL,
	[pickup] [datetime] NULL,
	[pickupinstrn] [varchar](100) NULL,
	[pickupreqd] [int] NOT NULL,
	[pickupstation] [varchar](50) NULL,
	[pickupfltno] [varchar](50) NULL,
	[pickuptaxino] [varchar](50) NULL,
	[pickupsenttime] [datetime] NULL,
	[PickupDriver] [varchar](50) NULL,
	[net] [char](1) NOT NULL,
	[tentative] [char](1) NOT NULL,
	[tent_upto] [datetime] NOT NULL,
	[tent_user] [varchar](50) NULL,
	[name] [varchar](50) NULL,
	[add1] [varchar](50) NULL,
	[add2] [varchar](50) NULL,
	[add3] [varchar](50) NULL,
	[city] [varchar](50) NULL,
	[state] [varchar](50) NULL,
	[phone] [varchar](50) NULL,
	[email] [varchar](200) NOT NULL,
	[address] [varchar](50) NULL,
	[PIN] [varchar](50) NULL,
	[fax] [varchar](50) NOT NULL,
	[Autobillamt] [money] NOT NULL,
	[memorandum] [varchar](200) NOT NULL,
	[smssent] [char](1) NULL,
	[smssent1] [char](1) NULL,
	[SMSTIME] [varchar](20) NULL,
	[SMS1TIME] [varchar](20) NULL,
	[emailtime] [datetime] NOT NULL,
	[EMAILSENT] [char](1) NOT NULL,
	[pickupsms] [char](1) NULL,
	[pickupsmstime] [varchar](20) NULL,
	[renttype1] [numeric](18, 0) NOT NULL,
	[mktmgr] [numeric](18, 0) NOT NULL,
	[channel] [varchar](100) NOT NULL,
	[ischannel] [tinyint] NOT NULL,
	[channelamt] [money] NOT NULL,
	[staahid] [varchar](100) NOT NULL,
	[dobm] [tinyint] NOT NULL,
	[dobd] [tinyint] NOT NULL,
	[domm] [tinyint] NOT NULL,
	[domd] [tinyint] NOT NULL,
	[dobsmssent] [datetime] NOT NULL,
	[domsmssent] [datetime] NOT NULL,
	[dobemailsent] [datetime] NOT NULL,
	[domemailsent] [datetime] NOT NULL,
	[ExtraBeds] [tinyint] NOT NULL,
	[ExtraBedCharges] [money] NOT NULL,
	[ExtraBedAlloted] [tinyint] NOT NULL,
	[GSTIN] [nvarchar](50) NOT NULL,
	[commrate] [numeric](18, 2) NOT NULL,
	[commgstrate] [numeric](18, 2) NOT NULL,
	[commtcsrate] [numeric](18, 2) NOT NULL,
	[commission] [numeric](18, 2) NOT NULL,
	[commgst] [numeric](18, 2) NOT NULL,
	[commtcs] [numeric](18, 2) NOT NULL,
	[otacommctrlno] [numeric](18, 0) NOT NULL,
	[commtdsrate] [numeric](18, 2) NOT NULL,
	[commtds] [numeric](18, 2) NOT NULL,
	[staahstatus] [varchar](100) NOT NULL,
	[whatsapp] [nchar](1) NOT NULL,
 CONSTRAINT [PK_sptbrs] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptbrs_ad]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptbrs_ad](
	[myctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[amount] [money] NOT NULL,
	[grno] [numeric](18, 0) NOT NULL,
	[mop] [int] NOT NULL,
	[crnum] [char](20) NULL,
	[crname] [varchar](50) NULL,
	[crtype] [varchar](50) NULL,
	[glactno] [numeric](18, 0) NULL,
	[usernm] [varchar](50) NOT NULL,
	[amttyp] [char](1) NOT NULL,
	[receiptno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptbrs_can]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptbrs_can](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[mctrlno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[cancelrooms] [int] NOT NULL,
	[reason] [char](200) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
 CONSTRAINT [PK_sptbrs_can] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptbrs_inet]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptbrs_inet](
	[MyCtrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[CtrlNo] [numeric](18, 0) NOT NULL,
	[Doc_Name] [varchar](50) NOT NULL,
	[Doc_No] [varchar](50) NOT NULL,
	[PaymentID] [varchar](100) NOT NULL,
	[TrackId] [varchar](100) NOT NULL,
	[udf1] [varchar](20) NOT NULL,
	[udf2] [varchar](20) NOT NULL,
	[udf3] [varchar](20) NOT NULL,
	[udf4] [varchar](20) NOT NULL,
	[amt] [money] NOT NULL,
	[cancelled] [char](1) NOT NULL,
	[cancelledon] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptbrs_noshow]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptbrs_noshow](
	[myctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
	[rsmyctrlno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[reason] [varchar](200) NOT NULL,
	[amount] [money] NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[grno] [numeric](18, 0) NOT NULL,
	[MOP] [tinyint] NULL,
	[mopdetails] [varchar](200) NULL,
	[gst] [money] NOT NULL,
	[noshow] [money] NOT NULL,
	[sno] [money] NOT NULL,
	[einvoice] [nchar](1) NOT NULL,
	[txncat] [nchar](10) NOT NULL,
 CONSTRAINT [PK_sptbrs_noshow] PRIMARY KEY CLUSTERED 
(
	[myctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptbrs_rn]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptbrs_rn](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[mctrlno] [numeric](18, 0) NOT NULL,
	[type] [int] NOT NULL,
	[txndt] [datetime] NOT NULL,
	[amount] [money] NOT NULL,
	[mop] [int] NOT NULL,
	[crnum] [varchar](50) NULL,
	[crname] [varchar](50) NULL,
	[crbank] [varchar](50) NULL,
	[glactno] [numeric](18, 0) NULL,
	[usernm] [varchar](50) NOT NULL,
	[grno] [numeric](18, 0) NOT NULL,
	[Ctrlno1] [numeric](18, 0) NULL,
	[MyCtrlno] [numeric](18, 0) NULL,
	[pctrlno] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_sptbrs_rn] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptbrs1]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptbrs1](
	[myctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
	[roomtype] [varchar](50) NOT NULL,
	[noofrooms] [int] NOT NULL,
	[arrivedrooms] [int] NOT NULL,
	[rentagreed] [money] NOT NULL,
	[instructions] [varchar](100) NULL,
	[cancelledrooms] [int] NOT NULL,
	[discount] [money] NOT NULL,
	[sc] [money] NOT NULL,
	[rent1] [money] NOT NULL,
	[rent2] [money] NOT NULL,
	[wingno] [tinyint] NOT NULL,
	[renttype] [int] NOT NULL,
	[lttype] [tinyint] NOT NULL,
	[fptype] [tinyint] NOT NULL,
	[autobillamt] [money] NOT NULL,
	[channelexbed] [money] NOT NULL,
	[channelexbedok] [tinyint] NOT NULL,
	[food] [money] NOT NULL,
	[extrabed] [money] NOT NULL,
	[dummyrentype] [varchar](100) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptbrsirn]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptbrsirn](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[ackdt] [datetime] NOT NULL,
	[ackno] [nchar](50) NOT NULL,
	[irn] [nchar](200) NOT NULL,
	[qrcode] [text] NOT NULL,
	[invoice] [text] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sptv]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sptv](
	[ctrlno] [numeric](18, 0) NOT NULL,
	[c1] [varchar](50) NOT NULL,
	[c2] [varchar](50) NOT NULL,
	[c3] [varchar](50) NOT NULL,
	[pno] [smallint] NULL,
	[C4] [varchar](50) NOT NULL,
	[outlet] [int] NOT NULL,
	[dept] [int] NOT NULL,
	[IMAGE] [int] NOT NULL,
	[IMAGE1] [int] NOT NULL,
 CONSTRAINT [PK_sptv] PRIMARY KEY NONCLUSTERED 
(
	[c3] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sqlcode]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sqlcode](
	[sql] [varchar](8000) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SQNO]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SQNO](
	[sqno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[st_connect_ol]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[st_connect_ol](
	[ctrlno] [numeric](18, 0) NOT NULL,
	[oltype] [numeric](18, 0) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[olctrlno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[staahchannel]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[staahchannel](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[staahname] [varchar](200) NOT NULL,
	[glactno] [numeric](18, 0) NOT NULL,
	[discount] [numeric](18, 2) NOT NULL,
	[company] [numeric](18, 0) NOT NULL,
	[upfront] [int] NOT NULL,
	[commissionac] [numeric](18, 0) NOT NULL,
	[NettRate] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[staahINV]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[staahINV](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[status] [char](1) NOT NULL,
	[message] [varchar](500) NOT NULL,
	[edt] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[staahinvstop]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[staahinvstop](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[status] [char](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[staahRates]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[staahRates](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[sdt] [varchar](20) NOT NULL,
	[edt] [varchar](20) NOT NULL,
	[roomtype] [varchar](50) NOT NULL,
	[renttype] [varchar](50) NOT NULL,
	[rent] [numeric](18, 2) NOT NULL,
	[rent2] [numeric](18, 2) NOT NULL,
	[addl] [numeric](18, 2) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STAAHRESRENTTABLE]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STAAHRESRENTTABLE](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[renttype] [nchar](10) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[RENT1] [money] NOT NULL,
	[rent2] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[staahxml]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[staahxml](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[bookingid] [varchar](50) NULL,
	[xml] [varchar](8000) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[states]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[states](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](100) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[stchlno]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[stchlno](
	[storeno] [numeric](18, 0) NOT NULL,
	[chlndt] [datetime] NOT NULL,
	[dchlno] [numeric](18, 0) NOT NULL,
	[pchlno] [numeric](18, 0) NOT NULL,
	[Adjcr] [numeric](18, 0) NOT NULL,
	[Adjdr] [numeric](18, 0) NOT NULL,
	[pono] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STDISD3]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STDISD3](
	[SNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[CODE] [char](12) NULL,
	[RATE1] [char](10) NULL,
	[RATE2] [char](10) NULL,
	[RATE3] [char](10) NULL,
	[RATE4] [char](10) NULL,
	[RATE5] [char](10) NULL,
	[STATION] [varchar](50) NULL,
	[COUNTRY] [varchar](50) NULL,
	[ISD] [varchar](500) NULL,
	[EUROPE] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STMaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STMaster](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[sdt] [datetime] NULL,
	[edt] [datetime] NULL,
	[st] [decimal](18, 0) NULL,
	[surcharge] [decimal](18, 0) NULL,
 CONSTRAINT [PK_STMaster] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[stmasterpbacc]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[stmasterpbacc](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[sdt] [datetime] NULL,
	[edt] [datetime] NULL,
	[samt] [money] NULL,
	[eamt] [money] NULL,
	[lamt] [money] NULL,
	[rate] [money] NULL,
	[discount] [money] NULL,
	[cess] [money] NULL,
	[sttableno] [numeric](18, 0) NOT NULL,
	[cessonwhat] [tinyint] NOT NULL,
	[cessname] [varchar](20) NOT NULL,
	[cess2] [money] NOT NULL,
	[cessonwhat2] [tinyint] NOT NULL,
	[cessname2] [varchar](10) NOT NULL,
	[taxname] [nvarchar](100) NOT NULL,
	[taxshname] [nvarchar](10) NOT NULL,
	[taxacno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Stock_channel]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Stock_channel](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[icode] [numeric](18, 0) NOT NULL,
	[opgbal] [numeric](18, 0) NOT NULL,
	[production] [numeric](18, 0) NOT NULL,
	[sales] [numeric](18, 0) NOT NULL,
	[closingstock] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[store]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[store](
	[storeno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[company] [int] NOT NULL,
	[storename] [varchar](50) NOT NULL,
	[CashAccount] [tinyint] NOT NULL,
	[fa_posting] [char](1) NOT NULL,
	[Freeze] [datetime] NULL,
	[CGSTACNO] [numeric](18, 0) NOT NULL,
	[SGSTACNO] [numeric](18, 0) NOT NULL,
	[IGSTACNO] [numeric](18, 0) NOT NULL,
	[cessacno] [numeric](18, 0) NOT NULL,
	[EXCISEACNO] [numeric](18, 0) NOT NULL,
	[TCSACNO] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_store] PRIMARY KEY CLUSTERED 
(
	[storeno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_store] UNIQUE NONCLUSTERED 
(
	[storename] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[storebills]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[storebills](
	[bctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[storeno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[amttyp] [char](1) NOT NULL,
	[chlno] [numeric](18, 0) NOT NULL,
	[usernm] [char](10) NOT NULL,
	[invoiceno] [varchar](50) NOT NULL,
	[supplier] [numeric](18, 0) NOT NULL,
	[grno] [numeric](18, 0) NOT NULL,
	[saletax] [money] NOT NULL,
	[txntyp] [int] NULL,
	[otherchgs] [money] NOT NULL,
	[discount] [money] NOT NULL,
	[stmode] [tinyint] NOT NULL,
	[issuedtocode] [numeric](18, 0) NOT NULL,
	[issuedtotype] [numeric](18, 0) NOT NULL,
	[CashType] [varchar](50) NOT NULL,
	[Adjust] [char](1) NOT NULL,
	[Reissue] [char](1) NOT NULL,
	[supplier_actno] [numeric](18, 0) NOT NULL,
	[registered] [char](1) NULL,
	[sellername] [nvarchar](50) NULL,
	[GSTIN] [nvarchar](15) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[storedept]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[storedept](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[Name] [varchar](50) NOT NULL,
	[storeno] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_storedept] PRIMARY KEY NONCLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_storedept] UNIQUE NONCLUSTERED 
(
	[Name] ASC,
	[storeno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[storehist]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[storehist](
	[hctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[bctrlno] [numeric](18, 0) NOT NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
	[amttyp] [char](1) NOT NULL,
	[qty] [numeric](18, 0) NOT NULL,
	[rate] [money] NOT NULL,
	[chlno] [numeric](18, 0) NOT NULL,
	[balance] [float] NULL,
	[price] [money] NOT NULL,
	[saletax] [money] NOT NULL,
	[adjust] [char](1) NOT NULL,
	[forupdt] [char](1) NOT NULL,
	[strate] [money] NOT NULL,
	[drate] [money] NOT NULL,
	[damt] [money] NOT NULL,
	[txndt] [datetime] NOT NULL,
	[hctrlno2] [numeric](18, 0) NOT NULL,
	[cgstrate] [money] NOT NULL,
	[cgstamt] [money] NOT NULL,
	[sgstrate] [money] NOT NULL,
	[sgstamt] [money] NOT NULL,
	[igstrate] [money] NOT NULL,
	[igstamt] [money] NOT NULL,
	[cessrate] [money] NOT NULL,
	[cessamt] [money] NOT NULL,
	[EXCISERATE] [money] NOT NULL,
	[EXCISEAMT] [money] NOT NULL,
	[TCSRATE] [money] NOT NULL,
	[TCSAMT] [money] NOT NULL,
	[qty1] [numeric](18, 0) NOT NULL,
 CONSTRAINT [ix_storehist] UNIQUE NONCLUSTERED 
(
	[hctrlno2] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
 CONSTRAINT [ix_storehistHCTRLNO2] UNIQUE NONCLUSTERED 
(
	[hctrlno2] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[storeitems]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[storeitems](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[storeno] [numeric](18, 0) NOT NULL,
	[storedept] [numeric](18, 0) NOT NULL,
	[iname] [varchar](50) NOT NULL,
	[luperhu] [float] NOT NULL,
	[luname] [char](10) NOT NULL,
	[huname] [char](10) NOT NULL,
	[stock] [float] NOT NULL,
	[lpdate] [datetime] NOT NULL,
	[lidate] [datetime] NOT NULL,
	[rate] [money] NOT NULL,
	[ratedate] [datetime] NOT NULL,
	[indent] [char](1) NOT NULL,
	[glactno] [numeric](18, 0) NOT NULL,
	[actodt] [datetime] NOT NULL,
	[opgstock] [float] NOT NULL,
	[ltxndt] [datetime] NOT NULL,
	[lstock] [float] NOT NULL,
	[strate] [money] NOT NULL,
	[forupdt] [char](1) NOT NULL,
	[loc] [varchar](50) NULL,
	[hsn] [nvarchar](50) NOT NULL,
	[ITCEligible] [char](1) NOT NULL,
 CONSTRAINT [PK_storeitems] PRIMARY KEY NONCLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY],
 CONSTRAINT [IX_storeitems] UNIQUE NONCLUSTERED 
(
	[storeno] ASC,
	[iname] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[storeoutlets]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[storeoutlets](
	[code] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) NOT NULL,
 CONSTRAINT [PK_store-outlets] PRIMARY KEY NONCLUSTERED 
(
	[code] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[storepohist]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[storepohist](
	[hctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[bctrlno] [numeric](18, 0) NOT NULL,
	[ctrlno] [numeric](18, 0) NOT NULL,
	[HSN] [varchar](50) NULL,
	[qty] [numeric](18, 0) NOT NULL,
	[rate] [money] NOT NULL,
	[pono] [numeric](18, 0) NOT NULL,
	[price] [money] NOT NULL,
	[saletax] [money] NOT NULL,
	[strate] [money] NOT NULL,
	[cgstrate] [money] NOT NULL,
	[cgstamt] [money] NOT NULL,
	[drate] [money] NOT NULL,
	[damt] [money] NOT NULL,
	[txndt] [datetime] NOT NULL,
	[sgstrate] [money] NOT NULL,
	[sgstamt] [money] NOT NULL,
	[igstrate] [money] NOT NULL,
	[igstamt] [money] NOT NULL,
	[cessrate] [money] NOT NULL,
	[cessamt] [money] NOT NULL,
	[EXCISERATE] [money] NOT NULL,
	[EXCISEAMT] [money] NOT NULL,
	[TCSRATE] [money] NOT NULL,
	[TCSAMT] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[StorePrimary]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[StorePrimary](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[fy] [numeric](18, 0) NOT NULL,
	[ictrlno] [numeric](18, 0) NOT NULL,
	[opgbal] [decimal](18, 0) NOT NULL,
	[balance] [decimal](18, 0) NOT NULL,
 CONSTRAINT [PK_StorePrimary] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[storepurchaseorder]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[storepurchaseorder](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[storeno] [int] NULL,
	[pono] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[status] [nchar](1) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[seller] [numeric](18, 0) NOT NULL,
	[saletax] [money] NOT NULL,
	[otherchgs] [money] NOT NULL,
	[discount] [money] NOT NULL,
	[approved] [char](1) NOT NULL,
	[approvedby] [varchar](50) NOT NULL,
 CONSTRAINT [PK_Invoice] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
 CONSTRAINT [IX_Invoice] UNIQUE NONCLUSTERED 
(
	[pono] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STTABLE]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STTABLE](
	[CTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[SDT] [datetime] NULL,
	[EDT] [datetime] NULL,
	[SAMT] [decimal](18, 0) NULL,
	[EAMT] [decimal](18, 0) NULL,
	[LAMT] [decimal](18, 0) NULL,
	[RATE] [numeric](18, 2) NULL,
	[DISCOUNT] [numeric](18, 2) NULL,
	[OnTariff] [char](3) NULL,
	[CESS] [numeric](18, 2) NULL,
	[STTABLENO] [int] NOT NULL,
	[CessOnWhat] [tinyint] NOT NULL,
	[CessName] [varchar](10) NOT NULL,
	[cess2] [money] NOT NULL,
	[cessonwhat2] [tinyint] NOT NULL,
	[cessname2] [varchar](10) NOT NULL,
	[taxname] [nvarchar](100) NOT NULL,
	[taxshname] [nvarchar](10) NOT NULL,
	[taxacno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[STTABLER]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[STTABLER](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[SDT] [datetime] NULL,
	[EDT] [datetime] NULL,
	[SAMT] [decimal](18, 0) NULL,
	[EAMT] [decimal](18, 0) NULL,
	[LAMT] [decimal](18, 0) NULL,
	[RATE] [numeric](18, 2) NULL,
	[DISCOUNT] [numeric](18, 2) NULL,
	[CESS] [numeric](18, 2) NULL,
	[STTABLENO] [int] NOT NULL,
	[cessonwhat] [tinyint] NOT NULL,
	[cessname] [varchar](10) NOT NULL,
	[cess2] [money] NOT NULL,
	[cessonwhat2] [tinyint] NOT NULL,
	[cessname2] [varchar](10) NOT NULL,
	[taxname] [nvarchar](100) NOT NULL,
	[taxshname] [nvarchar](10) NOT NULL,
	[taxacno] [numeric](18, 0) NOT NULL,
	[invoicename] [nvarchar](50) NOT NULL,
	[pkgchgsname] [nvarchar](50) NOT NULL,
	[pkgchgsdefaultamt] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[sttablerNAME]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[sttablerNAME](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[sttableno] [numeric](18, 0) NOT NULL,
	[servicename] [varchar](100) NOT NULL,
	[company] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SUPPGLAC]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SUPPGLAC](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[supplier] [numeric](18, 0) NOT NULL,
	[fy] [numeric](18, 0) NOT NULL,
	[glactno] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[suppliers]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[suppliers](
	[sid] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [varchar](50) NOT NULL,
	[add1] [varchar](50) NOT NULL,
	[add2] [varchar](50) NOT NULL,
	[city] [varchar](50) NOT NULL,
	[phone] [varchar](50) NOT NULL,
	[fax] [varchar](50) NOT NULL,
	[saltaxno] [varchar](50) NOT NULL,
	[ltxndt] [datetime] NOT NULL,
	[STMode] [tinyint] NOT NULL,
	[company] [numeric](18, 0) NOT NULL,
	[GSTIN] [nvarchar](50) NOT NULL,
	[registered] [char](1) NOT NULL,
 CONSTRAINT [PK_suppliers] PRIMARY KEY NONCLUSTERED 
(
	[sid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[suppliersac]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[suppliersac](
	[sid] [numeric](18, 0) NOT NULL,
	[company] [numeric](18, 0) NOT NULL,
	[glactno] [numeric](18, 0) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[systems]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[systems](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cname] [nchar](100) NOT NULL,
	[ltxndt] [datetime] NOT NULL,
	[online] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[systemsdate]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[systemsdate](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[txndt] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Advance]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Advance](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ictrlno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[ano] [numeric](18, 0) NOT NULL,
	[amt] [money] NOT NULL,
	[usernm] [varchar](20) NOT NULL,
	[status] [char](1) NOT NULL,
	[mop] [int] NOT NULL,
	[crname] [varchar](50) NULL,
	[crnum] [varchar](50) NULL,
	[crbank] [varchar](50) NULL,
	[glac] [numeric](18, 0) NULL,
	[gno] [numeric](18, 0) NULL,
	[grno] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_cancel]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_cancel](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[tttype] [tinyint] NOT NULL,
	[chctrlno] [numeric](18, 0) NOT NULL,
	[cancelledon] [datetime] NOT NULL,
	[cancelledby] [varchar](50) NOT NULL,
	[cancellationchgspaidgrno] [numeric](18, 0) NOT NULL,
	[cancellationchgsrecdgrno] [numeric](18, 0) NOT NULL,
	[cancellationchgspaidmop] [tinyint] NOT NULL,
	[cancellationchgspaidcrname] [varchar](50) NULL,
	[cancellationchgspaidcrnum] [varchar](50) NULL,
	[cancellationchgspaidcrbank] [varchar](50) NULL,
	[cancellationchgsrecdmop] [tinyint] NOT NULL,
	[cancellationchgsrecdcrname] [varchar](50) NULL,
	[cancellationchgsrecdcrnum] [varchar](50) NULL,
	[cancellationchgsrecdcrbank] [varchar](50) NULL,
	[cancellationchgsrecddate] [datetime] NULL,
	[cancellationchgspaiddate] [datetime] NULL,
	[cancellationchgspaidamount] [money] NULL,
	[cancellationchgsrecdamount] [money] NULL,
	[cancellationchgspaidby] [varchar](50) NULL,
	[cancellationchgsrecdby] [varchar](50) NULL,
	[cancellationchgspaid] [char](1) NULL,
	[cancellationchgsrecd] [char](1) NULL,
	[cancellationpurchasereturnac] [numeric](18, 0) NULL,
	[cancellationpurchasereturngrno] [numeric](18, 0) NULL,
	[cancellationpurchasereturnmop] [tinyint] NULL,
	[cancellationpurchasereturncrname] [varchar](50) NULL,
	[cancellationpurchasereturncrnum] [varchar](50) NULL,
	[cancellationpurchasereturncrbank] [varchar](50) NULL,
	[cancellationsalesreturnac] [numeric](18, 0) NULL,
	[cancellationsalesreturngrno] [numeric](18, 0) NULL,
	[cancellationsalesreturnmop] [tinyint] NULL,
	[cancellationsalesreturncrname] [varchar](50) NULL,
	[cancellationsalesreturncrnum] [varchar](50) NULL,
	[cancellationsalesreturncrbank] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Category]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Category](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[category] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Chalan]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Chalan](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[chlno] [numeric](18, 0) NOT NULL,
	[outlet] [tinyint] NOT NULL,
	[chldate] [datetime] NOT NULL,
	[stype] [tinyint] NOT NULL,
	[name] [nvarchar](50) NOT NULL,
	[add1] [nvarchar](50) NOT NULL,
	[add2] [nvarchar](50) NOT NULL,
	[add3] [nvarchar](50) NOT NULL,
	[city] [nvarchar](50) NOT NULL,
	[phone] [nvarchar](50) NOT NULL,
	[email] [nvarchar](50) NOT NULL,
	[htl_sdt] [datetime] NULL,
	[htl_edt] [datetime] NULL,
	[htl_nights] [int] NULL,
	[htl_nor] [int] NULL,
	[htl_hotelno] [numeric](18, 0) NULL,
	[htl_roomtype] [int] NULL,
	[htl_foodplan] [int] NULL,
	[htl_male] [int] NULL,
	[htl_female] [int] NULL,
	[htl_child] [int] NULL,
	[htl_terms] [nvarchar](2000) NULL,
	[htl_guestrate] [money] NULL,
	[htl_hotelrate] [money] NULL,
	[htl_ctype] [tinyint] NULL,
	[ino] [numeric](18, 0) NULL,
	[ogno] [numeric](18, 0) NULL,
	[finalamt] [money] NULL,
	[finalamt_t] [money] NULL,
	[finaldate] [datetime] NULL,
	[finalbasic] [money] NULL,
	[otherchgs] [money] NULL,
	[otherchgsdesc] [nvarchar](2000) NULL,
	[finaltax] [money] NULL,
	[discount] [money] NULL,
	[status] [char](1) NOT NULL,
	[user1] [nvarchar](20) NULL,
	[user2] [nvarchar](20) NULL,
	[grno1] [numeric](18, 0) NULL,
	[grno2] [numeric](18, 0) NULL,
	[grno3] [numeric](18, 0) NULL,
	[mailsent] [char](1) NOT NULL,
	[mop] [tinyint] NULL,
	[gno] [numeric](18, 0) NULL,
	[crnum] [nvarchar](50) NULL,
	[crname] [nvarchar](50) NULL,
	[crbank] [nvarchar](50) NULL,
	[advance] [money] NOT NULL,
	[advance_t] [money] NOT NULL,
	[split] [char](1) NULL,
	[remark] [varchar](2000) NULL,
	[glac] [numeric](18, 0) NULL,
	[notravelagent] [tinyint] NOT NULL,
	[travelagent] [numeric](18, 0) NOT NULL,
	[cancelled] [char](1) NOT NULL,
	[cess] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_City]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_City](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cityname] [varchar](50) NOT NULL,
	[pincode] [char](6) NOT NULL,
	[state] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Hotel]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Hotel](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[toutlet] [numeric](18, 0) NULL,
	[citycode] [numeric](18, 0) NOT NULL,
	[hotelname] [varchar](100) NOT NULL,
	[categorycode] [numeric](18, 0) NOT NULL,
	[contactperson] [varchar](100) NOT NULL,
	[mobileno] [varchar](100) NOT NULL,
	[landline] [varchar](100) NOT NULL,
	[addr1] [varchar](50) NOT NULL,
	[addr2] [varchar](50) NOT NULL,
	[addr3] [varchar](50) NULL,
	[city] [varchar](50) NOT NULL,
	[pin] [varchar](10) NOT NULL,
	[email] [varchar](100) NULL,
	[landmark] [text] NULL,
	[chkintime] [char](5) NOT NULL,
	[glac] [numeric](18, 0) NOT NULL,
	[notravelagent] [tinyint] NOT NULL,
	[travelagent] [numeric](18, 0) NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Itinerary]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Itinerary](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[outlet] [int] NOT NULL,
	[txndt] [datetime] NOT NULL,
	[address] [char](10) NOT NULL,
	[name] [nvarchar](50) NOT NULL,
	[add1] [nvarchar](50) NOT NULL,
	[add2] [nvarchar](50) NOT NULL,
	[add3] [nvarchar](50) NOT NULL,
	[city] [nvarchar](50) NOT NULL,
	[state] [nvarchar](50) NOT NULL,
	[pin] [nvarchar](50) NOT NULL,
	[phone] [nvarchar](50) NOT NULL,
	[email] [nvarchar](100) NOT NULL,
	[amount] [numeric](18, 2) NOT NULL,
	[advance] [numeric](18, 2) NOT NULL,
	[sdt] [datetime] NOT NULL,
	[edt] [datetime] NOT NULL,
	[contactperson] [nvarchar](50) NOT NULL,
	[tc] [nvarchar](2000) NOT NULL,
	[status] [char](1) NOT NULL,
	[TaxInclusive] [int] NOT NULL,
	[servicetax] [money] NOT NULL,
	[spldiscount] [money] NOT NULL,
	[otherchgs] [money] NOT NULL,
	[billdate] [datetime] NULL,
	[billed] [char](1) NOT NULL,
	[packageamount] [money] NOT NULL,
	[grno] [numeric](18, 0) NULL,
	[mop] [int] NULL,
	[crname] [varchar](50) NULL,
	[crnum] [varchar](50) NULL,
	[crbank] [varchar](50) NULL,
	[glac] [numeric](18, 0) NULL,
	[gno] [numeric](18, 0) NULL,
	[grno1] [numeric](18, 0) NULL,
	[bno] [numeric](18, 0) NULL,
	[male] [numeric](18, 0) NULL,
	[female] [numeric](18, 0) NULL,
	[child] [numeric](18, 0) NULL,
	[usernm] [varchar](50) NULL,
	[cess] [money] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_ITList]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_ITList](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ictrlno] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[typeID] [tinyint] NOT NULL,
	[city] [varchar](50) NOT NULL,
	[details] [varchar](500) NOT NULL,
	[usernm] [varchar](50) NOT NULL,
	[status] [char](1) NOT NULL,
	[cno] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_ITType]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_ITType](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[description] [varchar](50) NOT NULL,
	[id] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_PaxDetails]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_PaxDetails](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[ino] [numeric](18, 0) NOT NULL,
	[name] [varchar](100) NOT NULL,
	[age] [int] NOT NULL,
	[passportno] [varchar](50) NOT NULL,
	[idproof] [varchar](50) NOT NULL,
	[idproofno] [varchar](50) NOT NULL,
	[visadetails] [varchar](100) NOT NULL,
	[sex] [char](1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_RatePeriod]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_RatePeriod](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[hotelno] [numeric](18, 0) NOT NULL,
	[sdt] [datetime] NOT NULL,
	[edt] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_RentPeriod]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_RentPeriod](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[tableno] [numeric](18, 0) NOT NULL,
	[roomtype] [numeric](18, 0) NOT NULL,
	[foodplan] [tinyint] NOT NULL,
	[ratesingle] [money] NOT NULL,
	[ratedouble] [money] NOT NULL,
	[extrabed] [money] NOT NULL,
	[ratesingle1] [money] NULL,
	[ratedouble1] [money] NULL,
	[extrabed1] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_RoomType]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_RoomType](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[hotelno] [numeric](18, 0) NOT NULL,
	[roomtype] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_ServiceTaxSetting]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_ServiceTaxSetting](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[outlet] [int] NOT NULL,
	[servicetype] [tinyint] NULL,
	[sttableno] [int] NOT NULL,
	[method] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TDCars]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TDCars](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](50) NOT NULL,
	[number] [nvarchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TDCHART]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TDCHART](
	[COMPANY] [int] NOT NULL,
	[TDNO] [int] NOT NULL,
	[NAME] [char](50) NOT NULL,
	[ONACBAL] [money] NOT NULL,
	[ASSET] [char](1) NOT NULL,
	[OPGDATE] [datetime] NOT NULL,
	[ONAC] [char](1) NOT NULL,
	[ACNO] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TDDrivers]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TDDrivers](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](50) NOT NULL,
	[number] [nvarchar](43) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TDSSection]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TDSSection](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[TDSSECDescription] [nchar](50) NOT NULL,
	[TDSSEC] [nchar](20) NOT NULL,
 CONSTRAINT [PK_TDSSection] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TELEDIR]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TELEDIR](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[NAME] [varchar](50) NOT NULL,
	[ADD1] [varchar](50) NULL,
	[ADD2] [varchar](50) NULL,
	[CITY] [varchar](50) NULL,
	[PHONE1] [varchar](50) NULL,
	[PHONE2] [varchar](50) NULL,
	[EMAIL] [varchar](500) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TempTables]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TempTables](
	[Computer] [varchar](50) NOT NULL,
	[TName] [varchar](50) NOT NULL,
	[dob] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TKTmaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TKTmaster](
	[TKTctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[TKTname] [char](30) NOT NULL,
	[TKTtaxrate] [money] NOT NULL,
	[OnDifference] [char](1) NOT NULL,
	[STTType] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TNAME]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TNAME](
	[NAME] [sysname] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[toutlet]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[toutlet](
	[outlet] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[name] [char](50) NOT NULL,
	[shname] [char](10) NOT NULL,
	[company] [numeric](18, 0) NOT NULL,
	[CHLNO] [numeric](18, 0) NOT NULL,
	[CHLDATE] [datetime] NOT NULL,
	[TCHLNO] [numeric](18, 0) NOT NULL,
	[TCHLDATE] [datetime] NOT NULL,
	[OCHLNO] [numeric](18, 0) NOT NULL,
	[OCHLDATE] [datetime] NOT NULL,
	[AUTONO1] [tinyint] NOT NULL,
	[AUTONO2] [tinyint] NOT NULL,
	[AUTONO3] [tinyint] NOT NULL,
	[PURCHASE1] [numeric](18, 0) NOT NULL,
	[SALES1] [numeric](18, 0) NOT NULL,
	[purchase2] [numeric](18, 0) NOT NULL,
	[sales2] [numeric](18, 0) NOT NULL,
	[purchase3] [numeric](18, 0) NOT NULL,
	[sales3] [numeric](18, 0) NOT NULL,
	[advancerecd] [numeric](18, 0) NOT NULL,
	[advancepaid] [numeric](18, 0) NOT NULL,
	[staxrate] [money] NOT NULL,
	[selfdeal] [char](1) NOT NULL,
	[billposition1] [tinyint] NULL,
	[billposition2] [tinyint] NULL,
	[hno_mybook] [numeric](18, 0) NOT NULL,
	[hno_htlbook] [numeric](18, 0) NOT NULL,
	[htl_purchase] [numeric](18, 0) NOT NULL,
	[htl_sales] [numeric](18, 0) NOT NULL,
	[htl_receivable] [numeric](18, 0) NOT NULL,
	[lux] [char](1) NOT NULL,
	[ano] [numeric](18, 0) NOT NULL,
	[adate] [datetime] NOT NULL,
	[ano_t] [numeric](18, 0) NOT NULL,
	[adate_t] [datetime] NOT NULL,
	[my_receivable] [numeric](18, 0) NOT NULL,
	[otherchgsac] [numeric](18, 0) NOT NULL,
	[bataac] [numeric](18, 0) NOT NULL,
	[ServiceTaxAC] [numeric](18, 0) NOT NULL,
	[discount4] [numeric](18, 2) NOT NULL,
	[otherchgs4] [numeric](18, 2) NOT NULL,
	[sales4] [numeric](18, 2) NOT NULL,
	[purchase5] [numeric](18, 0) NOT NULL,
	[sales5] [numeric](18, 0) NOT NULL,
	[purchase6] [numeric](18, 0) NOT NULL,
	[sales6] [numeric](18, 0) NOT NULL,
	[salesreturn2] [numeric](18, 0) NOT NULL,
	[purchasereturn2] [numeric](18, 0) NOT NULL,
	[salesreturn3] [numeric](18, 0) NOT NULL,
	[purchasereturn3] [numeric](18, 0) NOT NULL,
	[salesreturn5] [numeric](18, 0) NOT NULL,
	[purchasereturn5] [numeric](18, 0) NOT NULL,
	[salesreturn6] [numeric](18, 0) NOT NULL,
	[purchasereturn6] [numeric](18, 0) NOT NULL,
	[servicetaxreturnac] [numeric](18, 0) NOT NULL,
	[cancellationchgspaidac] [numeric](18, 0) NOT NULL,
	[cancellationchgsrecdac] [numeric](18, 0) NOT NULL,
	[billprefix] [nchar](3) NOT NULL,
	[sac] [varchar](15) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[toutlet1]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[toutlet1](
	[ctrlno] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[outlet] [decimal](18, 0) NOT NULL,
	[fy] [decimal](18, 0) NOT NULL,
	[chlno] [decimal](18, 0) NOT NULL,
	[ctype] [tinyint] NOT NULL,
 CONSTRAINT [PK_toutlet1] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[trackid]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[trackid](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[reservationid] [varchar](50) NOT NULL,
	[txndt] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TRAVELAGENT]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TRAVELAGENT](
	[OUTLET] [numeric](18, 0) NOT NULL,
	[code] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[NAME] [char](30) NOT NULL,
	[GLACTNO] [numeric](18, 0) NOT NULL,
	[opgdate] [datetime] NOT NULL,
	[fy] [numeric](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[travelIRN]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[travelIRN](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[cno] [numeric](18, 0) NOT NULL,
	[ACKDT] [datetime] NOT NULL,
	[ACKNO] [varchar](50) NOT NULL,
	[IRN] [varchar](200) NOT NULL,
	[INVOICE] [text] NOT NULL,
	[QRCODE] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ttadvance]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ttadvance](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[chctrlno] [numeric](18, 0) NOT NULL,
	[ano] [numeric](18, 0) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[amount] [money] NOT NULL,
	[atype] [char](1) NOT NULL,
	[usernm] [char](20) NOT NULL,
	[tmstmp] [char](8) NOT NULL,
	[mop] [tinyint] NOT NULL,
	[crcardnum] [char](20) NOT NULL,
	[crcardname] [char](30) NOT NULL,
	[crcardbank] [char](10) NOT NULL,
	[glactnum] [numeric](18, 0) NOT NULL,
	[grno] [numeric](18, 0) NOT NULL,
	[tttype] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TTdescription]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TTdescription](
	[name] [char](50) NULL,
	[amont] [money] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TTMaster]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TTMaster](
	[Code] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[TACode] [decimal](18, 0) NOT NULL,
	[Description] [varchar](50) NOT NULL,
	[SType] [tinyint] NOT NULL,
	[Basic] [money] NOT NULL,
	[Basic_t] [money] NOT NULL,
	[PerKm] [money] NOT NULL,
	[PerKm_T] [money] NOT NULL,
	[PerHour] [money] NOT NULL,
	[PerHour_t] [money] NOT NULL,
	[MaxHrs] [int] NOT NULL,
	[MaxKm] [int] NOT NULL,
	[MaxHrs_t] [int] NOT NULL,
	[MaxKm_t] [int] NOT NULL,
	[Bata] [money] NOT NULL,
	[Bata_t] [money] NOT NULL,
	[minkm] [int] NOT NULL,
	[minkm_t] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TTMaster_NT]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TTMaster_NT](
	[Code] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[TACode] [decimal](18, 0) NOT NULL,
	[Description] [varchar](50) NOT NULL,
	[SType] [tinyint] NOT NULL,
	[Basic] [money] NOT NULL,
	[Basic_t] [money] NOT NULL,
	[PerKm] [money] NOT NULL,
	[PerKm_T] [money] NOT NULL,
	[PerHour] [money] NOT NULL,
	[PerHour_t] [money] NOT NULL,
	[MaxHrs] [int] NOT NULL,
	[MaxKm] [int] NOT NULL,
	[MaxHrs_t] [int] NOT NULL,
	[MaxKm_t] [int] NOT NULL,
	[Bata] [money] NOT NULL,
	[Bata_t] [money] NOT NULL,
	[minkm] [int] NOT NULL,
	[minkm_t] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ttstaxrate]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ttstaxrate](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[outlet] [int] NOT NULL,
	[sdt] [datetime] NOT NULL,
	[edt] [datetime] NOT NULL,
	[staxrate] [money] NOT NULL,
	[method] [tinyint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TXNNO2]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TXNNO2](
	[TXNDT] [smalldatetime] NOT NULL,
	[GRNO] [int] NOT NULL,
	[company] [int] NOT NULL,
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[otype] [int] NOT NULL,
 CONSTRAINT [PK_TXNNO2] PRIMARY KEY NONCLUSTERED 
(
	[TXNDT] ASC,
	[GRNO] ASC,
	[company] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[VATTABLER]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[VATTABLER](
	[CTRLNO] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[OUTLET] [numeric](18, 0) NOT NULL,
	[SDT] [datetime] NOT NULL,
	[EDT] [datetime] NOT NULL,
	[VAT] [tinyint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[vchdeleted]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[vchdeleted](
	[COMPANY] [int] NOT NULL,
	[FY] [int] NOT NULL,
	[ACTNUM] [numeric](18, 0) NOT NULL,
	[TXNNO] [numeric](10, 0) NOT NULL,
	[TXNDT] [datetime] NOT NULL,
	[AMTTYP] [char](1) NOT NULL,
	[PARTIC] [varchar](500) NULL,
	[AMT] [money] NOT NULL,
	[USER] [char](10) NULL,
	[BALANCE] [money] NOT NULL,
	[RECON] [char](1) NOT NULL,
	[GRNO] [numeric](10, 0) NOT NULL,
	[FDRSNO] [numeric](10, 0) NULL,
	[CHANNELCODE] [char](1) NOT NULL,
	[REFNO] [numeric](18, 0) NOT NULL,
	[tmstmp] [char](8) NOT NULL,
	[LTXNDT] [datetime] NULL,
	[markedfordeletion] [char](1) NOT NULL,
	[payee] [varchar](100) NULL,
	[mvchno] [numeric](18, 0) NULL,
	[txnno2] [numeric](18, 0) NOT NULL,
	[txntype] [char](5) NULL,
	[recondate] [datetime] NOT NULL,
	[EXApproved] [tinyint] NOT NULL,
	[EXDate] [datetime] NULL,
	[EXby] [varchar](20) NULL,
	[sessionid] [varchar](200) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[seller] [numeric](18, 0) NULL,
	[billno] [nvarchar](50) NULL,
	[billdate_CloseDate] [datetime] NULL,
	[chlno_RTXNNO] [numeric](18, 0) NULL,
	[taxtype] [tinyint] NULL,
	[TOTAMT_BALANCE] [numeric](18, 2) NULL,
	[PERCENTAGE] [numeric](18, 2) NULL,
	[ACTNO] [nvarchar](50) NULL,
	[GSTIN] [nvarchar](20) NULL,
	[SELLERNAME] [nvarchar](100) NULL,
	[cashpurchase] [tinyint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[vmake]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[vmake](
	[name] [char](10) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[VOUCHERS]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[VOUCHERS](
	[COMPANY] [int] NOT NULL,
	[FY] [int] NOT NULL,
	[ACTNUM] [numeric](18, 0) NOT NULL,
	[TXNNO] [numeric](10, 0) IDENTITY(1,1) NOT NULL,
	[TXNDT] [datetime] NOT NULL,
	[AMTTYP] [char](1) NOT NULL,
	[PARTIC] [varchar](500) NULL,
	[AMT] [money] NOT NULL,
	[USER] [char](10) NULL,
	[BALANCE] [money] NOT NULL,
	[RECON] [char](1) NOT NULL,
	[GRNO] [numeric](10, 0) NOT NULL,
	[FDRSNO] [numeric](10, 0) NOT NULL,
	[CHANNELCODE] [char](1) NOT NULL,
	[REFNO] [numeric](18, 0) NOT NULL,
	[tmstmp] [char](8) NOT NULL,
	[ltxndt] [datetime] NOT NULL,
	[markedfordeletion] [char](1) NOT NULL,
	[payee] [varchar](100) NOT NULL,
	[mvchno] [numeric](18, 0) NULL,
	[TXNNO2] [numeric](18, 0) NOT NULL,
	[txntype] [char](5) NOT NULL,
	[recondate] [datetime] NOT NULL,
	[EXApproved] [tinyint] NOT NULL,
	[EXDate] [datetime] NULL,
	[EXby] [varchar](20) NULL,
	[sessionid] [varchar](200) NOT NULL,
	[outlet] [numeric](18, 0) NOT NULL,
	[seller] [numeric](18, 0) NULL,
	[billno] [nvarchar](50) NULL,
	[billdate_CloseDate] [datetime] NULL,
	[chlno_RTXNNO] [numeric](18, 0) NULL,
	[taxtype] [tinyint] NULL,
	[TOTAMT_BALANCE] [numeric](18, 2) NULL,
	[PERCENTAGE] [numeric](18, 2) NULL,
	[ACTNO] [nvarchar](50) NULL,
	[GSTIN] [nvarchar](20) NULL,
	[SELLERNAME] [nvarchar](100) NULL,
	[cashpurchase] [tinyint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[vouhist]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[vouhist](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[COMPANY] [int] NULL,
	[FY] [int] NULL,
	[ACTNUM] [numeric](18, 0) NULL,
	[TXNNO] [numeric](10, 0) NULL,
	[TXNDT] [datetime] NULL,
	[AMTTYP] [char](1) NULL,
	[PARTIC] [varchar](500) NULL,
	[AMT] [money] NULL,
	[USER] [char](10) NULL,
	[BALANCE] [money] NULL,
	[RECON] [char](1) NULL,
	[GRNO] [numeric](10, 0) NULL,
	[FDRSNO] [numeric](10, 0) NULL,
	[CHANNELCODE] [char](1) NULL,
	[REFNO] [numeric](18, 0) NULL,
	[tmstmp] [char](8) NULL,
	[ltxndt] [datetime] NULL,
	[markedfordeletion] [char](1) NULL,
	[payee] [varchar](100) NULL,
	[mvchno] [numeric](18, 0) NULL,
	[TXNNO2] [numeric](18, 0) NULL,
	[txntype] [char](5) NULL,
	[recondate] [datetime] NULL,
	[EXApproved] [tinyint] NULL,
	[EXDate] [datetime] NULL,
	[EXby] [varchar](20) NULL,
	[sessionid] [varchar](200) NULL,
	[outlet] [numeric](18, 0) NULL,
	[editdate] [datetime] NULL,
	[seller] [numeric](18, 0) NULL,
	[billno] [nvarchar](50) NULL,
	[billdate_CloseDate] [datetime] NULL,
	[chlno_RTXNNO] [numeric](18, 0) NULL,
	[taxtype] [tinyint] NULL,
	[TOTAMT_BALANCE] [numeric](18, 2) NULL,
	[PERCENTAGE] [numeric](18, 2) NULL,
	[ACTNO] [nvarchar](50) NULL,
	[GSTIN] [nvarchar](20) NULL,
	[SELLERNAME] [nvarchar](100) NULL,
	[cashpurchase] [tinyint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[WAITER]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[WAITER](
	[OUTLET] [int] NOT NULL,
	[CODE] [int] IDENTITY(1,1) NOT NULL,
	[NAME] [char](50) NOT NULL,
 CONSTRAINT [PK_WAITER] PRIMARY KEY NONCLUSTERED 
(
	[CODE] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[wakeupresults]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[wakeupresults](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[extn] [char](8) NOT NULL,
	[txndt] [datetime] NOT NULL,
	[details] [varchar](50) NOT NULL,
	[gno] [numeric](18, 0) NOT NULL,
 CONSTRAINT [PK_wakeupresults] PRIMARY KEY CLUSTERED 
(
	[ctrlno] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[whatsappmsg]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[whatsappmsg](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[msgtype] [nchar](50) NOT NULL,
	[msg] [nvarchar](4000) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[whatsappset]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[whatsappset](
	[ctrlno] [numeric](18, 0) IDENTITY(1,1) NOT NULL,
	[url] [nvarchar](300) NOT NULL,
	[token] [nvarchar](50) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Wings]    Script Date: 07/04/2026 20:30:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Wings](
	[ctrlno] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[Description] [varchar](50) NOT NULL,
	[WingNo] [decimal](18, 0) NOT NULL,
	[rent1i] [money] NULL,
	[rent2i] [money] NULL,
	[rent1u] [money] NULL,
	[rent2u] [money] NULL,
	[status] [char](1) NOT NULL,
	[staahcode] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
