/* 2019-02-19 15:33 CREATE SCRIPT */ /* 2019-02-25 17:47 MODIFY SCRIPT */ /* 2019-02-27 11:55 MODIFY SCRIPT */ /* 2019-03-07 13:00 'NHS_CUST_BUY_HIST' Table »èÁ¦ */ /* 2019-03-07 13:00 'NHS_LANG_MSG' Table ¿¡¼­ 'PRD_CATE_CD', 'ITEM_CD' Column »èÁ¦ */ /* 2019-03-08 10:30 'NHS_STOR_PRD_KEY' Table¿¡ 'FILE_NAME' Column Ãß°¡ */ /* 2019-03-08 13:00 'NHS_PRD_OPTN' Table ¿¡¼­ 'PRD_CATE_CD' Column »èÁ¦ */ /* 2019-03-11 16:00 'NHS_STOR_PRD_TAG' Table Ãß°¡ */ /* 2019-03-11 16:00 Table¸íÀ» 'NHS_STORE_PRD_CATE'¿¡¼­ 'NHS_STOR_PRD_CATE' ·Î º¯°æ */ /* 2019-03-11 16:00 Table¸íÀ» 'NHS_STORE_PRD_KEY'¿¡¼­ 'NHS_STOR_PRD_KEY' ·Î º¯°æ */ /* 2019-03-11 17:00 'NHS_STOR_PRD_CATE' Table »èÁ¦ */ /* 2019-03-11 17:00 'NHS_PRD_CATE_L' Table »èÁ¦ */ /* 2019-03-11 17:00 'NHS_PRD_CATE_M' Table »èÁ¦ */ /* 2019-03-15 13:400 'NHS_CUST_BUY_HIST' Table reÃß°¡(º¹¿ø) */ /* 2019-03-18 11:35 'NHS_CUST_BUY_HIST' Table »èÁ¦ */ /* 2019-03-18 11:35 'NHS_STOR_PRD_KEY' Table ¿¡ 'BAR_CD' Column Ãß°¡ */ /* 2019-03-18 11:35 'NHS_STOR_PRD_KEY' Table ¿¡ 'ORDER_TYPE' Column Ãß°¡ */ USE [POSMST] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_SCREEN]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_SCREEN] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_SCREEN_CONTENTS]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_SCREEN_CONTENTS] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_SCREEN_LAYER]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_SCREEN_LAYER] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_STOR_PRD_KEY]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_STOR_PRD_KEY] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_UI_TEMPLATE]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_UI_TEMPLATE] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_CPI_CONTENTS]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_CPI_CONTENTS] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_LANG_MSG]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_LANG_MSG] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_LAYOUT]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_LAYOUT] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_PRD_MST]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_PRD_MST] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_OPTN_MST]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_OPTN_MST] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_PRD_OPTN_GRP]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_PRD_OPTN_GRP] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_PRD_OPTN]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_PRD_OPTN] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_PRD_CATE]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_PRD_CATE] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_STOR_PRD_TAG]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_STOR_PRD_TAG] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_LINK_ITEM]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_LINK_ITEM] END GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_STOR_FLAVOR]') AND type in (N'U')) BEGIN DROP TABLE [dbo].[NHS_STOR_FLAVOR] END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_SCREEN]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_SCREEN]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [STOR_CD] [nvarchar](10) NOT NULL, [SCREEN_CD] [nvarchar](10) NOT NULL, [LAYOUT_CD] [nvarchar](10) NOT NULL, [SCREEN_NM] [nvarchar](200) NULL, [SCREEN_DESC] [nvarchar](1000) NULL, [DISPLAY_YN] [nvarchar](1) NULL, [DISPLAY_START_DT] [nvarchar](8) NULL, [DISPLAY_END_DT] [nvarchar](8) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, [SCREEN_KIND] [nvarchar](10) NOT NULL, CONSTRAINT [PK_NHS_SCREEN] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [STOR_CD] ASC, [SCREEN_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷ÄÚµå(¿µ¾÷Á¶Á÷º°Àº ''000'')',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'STOR_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´ë±âÈ­¸é¾ÆÀ̵ð',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'SCREEN_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´ë±âÈ­¸é¸í',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'SCREEN_NM' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´ë±âÈ­¸é¼³¸í',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'SCREEN_DESC' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'È­¸é±¸¼ºÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'LAYOUT_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'³ëÃâ¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'DISPLAY_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'³ëÃâ½ÃÀÛÀÏÀÚ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'DISPLAY_START_DT' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'³ëÃâÁ¾·áÀÏÀÚ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'DISPLAY_END_DT' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'½ºÅ©¸°±¸ºÐ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN',@level2type=N'COLUMN',@level2name=N'SCREEN_KIND' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷º° ´ë±âÈ­¸é',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_SCREEN_CONTENTS]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_SCREEN_CONTENTS]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [STOR_CD] [nvarchar](10) NOT NULL, [LAYER_CD] [nvarchar](3) NOT NULL, [CONTENTS_ID] [nvarchar](10) NOT NULL, [SCREEN_CD] [nvarchar](10) NOT NULL, [FRAME_CD] [nvarchar](2) NOT NULL, [DISPLAY_ORDER] [int] NULL, [DISPLAY_START_TIME] [nvarchar](4) NULL, [DISPLAY_END_TIME] [nvarchar](4) NULL, [FILE_FULLPATH] [nvarchar](200) NULL, [FILE_NAME] [nvarchar](100) NULL, [FILE_MIME_TYPE] [nvarchar](10) NULL, [PLAY_TIME] [nvarchar](5) NULL, [LINK_YN] [nvarchar](1) NULL, [PRD_CATE_L] [nvarchar](4) NULL, [PRD_CATE_M] [nvarchar](4) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, [SCREEN_KIND] [nvarchar](10) NOT NULL, CONSTRAINT [PK_NHS_SCREEN_CONTENTS] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [STOR_CD] ASC, [LAYER_CD] ASC, [CONTENTS_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷ÄÚµå(¿µ¾÷Á¶Á÷º°Àº ''000'')',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'STOR_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´ë±âÈ­¸é¾ÆÀ̵ð',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'SCREEN_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'·¹À̾î¾ÆÀ̵ð',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'LAYER_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¸®¼Ò½º¾ÆÀ̵ð',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'CONTENTS_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'³ëÃâ¼ø¼­',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'DISPLAY_ORDER' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'³ëÃâ½Ã°£ ½ÃÀÛ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'DISPLAY_START_TIME' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'³ëÃâ½Ã°£ Á¾·á',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'DISPLAY_END_TIME' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀÏ°æ·Î',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'FILE_FULLPATH' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀϸí',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'FILE_NAME' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀÏÇü½Ä',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'FILE_MIME_TYPE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Àç»ý½Ã°£',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'PLAY_TIME' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¸µÅ©Á¤º¸',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'LINK_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¦Ç°Ä«Å×°í¸®´ëºÐ·ùÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'PRD_CATE_L' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¦Ç°Ä«Å×°í¸®ÁߺзùÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'PRD_CATE_M' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÇÁ·¹ÀÓ¾ÆÀ̵ð(ÇÁ·¹ÀÓ¹øÈ£)',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS',@level2type=N'COLUMN',@level2name=N'FRAME_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´ë±âÈ­¸é ·¹À̾ ¸®¼Ò½º',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_CONTENTS' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_SCREEN_LAYER]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_SCREEN_LAYER]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [STOR_CD] [nvarchar](10) NOT NULL, [FRAME_CD] [nvarchar](2) NOT NULL, [LAYER_CD] [nvarchar](3) NOT NULL, [SCREEN_CD] [nvarchar](10) NOT NULL, [FRAME_VERTICAL_SIZE] [nvarchar](4) NULL, [LAYER_DISPLAY_ORDER] [int] NULL, [FIX_YN] [nvarchar](1) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, [SCREEN_KIND] [nvarchar](10) NOT NULL, CONSTRAINT [PK_NHS_SCREEN_LAYER] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [STOR_CD] ASC, [FRAME_CD] ASC, [LAYER_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´ë±âÈ­¸é¾ÆÀ̵ð',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'SCREEN_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÇÁ·¹ÀÓ¾ÆÀ̵ð(ÇÁ·¹ÀÓ¹øÈ£)',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'FRAME_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'·¹À̾î¾ÆÀ̵ð',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'LAYER_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÇÁ·¹ÀÓ_ÇØ»óµµ_°¡·Î',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'FRAME_VERTICAL_SIZE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'·¹À̾î³ëÃâ¼ø¼­',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'LAYER_DISPLAY_ORDER' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'°íÁ¤¿©ºÎ(ÇϴܺκРó¸®)',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'FIX_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷ÄÚµå(¿µ¾÷Á¶Á÷º°Àº ''000'')',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER',@level2type=N'COLUMN',@level2name=N'STOR_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´ë±âÈ­¸é ·¹À̾î',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_SCREEN_LAYER' END GO SET ANSI_PADDING OFF GO /* SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_STOR_PRD_CATE]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_STOR_PRD_CATE]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [STOR_CD] [nvarchar](10) NOT NULL, [PRD_CATE_UP_CD] [nvarchar](4) NOT NULL, [PRD_CATE_CD] [nvarchar](4) NOT NULL, [FILE_FULLPATH] [nvarchar](200) NULL, [FILE_NAME] [nvarchar](100) NULL, [DISPLAY_ORDER] [int] NULL, [USE_YN] [nvarchar](1) NOT NULL DEFAULT '1', [HIDE_YN] [nvarchar](1) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_STOR_PRD_CATE] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [STOR_CD] ASC, [PRD_CATE_UP_CD] ASC, [PRD_CATE_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'STOR_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Ä«Å×°í¸®ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'PRD_CATE_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Ä«Å×°í¸®»óÀ§ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'PRD_CATE_UP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀÏ°æ·Î',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'FILE_FULLPATH' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀϸí',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'FILE_NAME' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'³ëÃâ¼ø¼­',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'DISPLAY_ORDER' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»ç¿ë¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'USE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼û±è¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'HIDE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷º° Á¦Ç°Ä«Å×°í¸®',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_CATE' END GO SET ANSI_PADDING OFF GO */ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_STOR_PRD_KEY]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_STOR_PRD_KEY]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [STOR_CD] [nvarchar](10) NOT NULL, [PRD_CATE_CD] [nvarchar](4) NOT NULL, [TOUCH_KEY_CD] [nvarchar](20) NOT NULL, [ITEM_CD] [nvarchar](20) NULL, [DISPLAY_ORDER] [int] NULL, [USE_YN] [nvarchar](1) NOT NULL DEFAULT '1', [SOLDOUT_YN] [nvarchar](1) NULL, [RECOMMAND_YN] [nvarchar](1) NULL, [NEW_YN] [nvarchar](1) NULL, [PRESENT_YN] [nvarchar](1) NULL, [SALES_PRC] [int], [OPTN_YN] [nvarchar](1) NULL, [TOUCH_KEY_NM] [nvarchar](100) NULL, [LAST_UPD_TIME] [datetime] NULL, [FILE_NAME] [nvarchar](100) NULL, [BAR_CD] [nvarchar](10) NULL, [ORDER_TYPE] [nvarchar](1) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, [TOUCH_KEY_KIND] [nvarchar](4) NULL, [MAPPING_CD] [nvarchar](10) NULL, [PRD_LINK_PAGE1] [nvarchar](2) NULL, [PRD_LINK_PAGE2] [nvarchar](2) NULL, [SET_YN] [nvarchar](1) NULL, [SET_ITEM_CD] [nvarchar](10) NULL, [SET_ITEM_CNT] [int] NULL, [FLAVOR_YN] [nvarchar](1) NULL, [FLAVOR_CNT] [int] NULL, [OPTN_CNT_CHG_YN] [nvarchar](1) NULL, [SET_CHANGE_YN] [nvarchar](1) NULL, [SET_CHANGE_ITEM_CD] [nvarchar](10) NULL, [EVENT_CHANGE_YN] [nvarchar](1) NULL, [EVENT_ITEM_CD] [nvarchar](10) NULL, [D2_USE_YN] [nvarchar](1) NULL, CONSTRAINT [PK_NHS_STOR_PRD_KEY] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [STOR_CD] ASC, [PRD_CATE_CD] ASC, [TOUCH_KEY_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Ä«Å×°í¸®ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'PRD_CATE_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÅÍÄ¡Å°ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'TOUCH_KEY_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'³ëÃâ¼ø¼­',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'DISPLAY_ORDER' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»ç¿ë¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'USE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ÙÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'BAR_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÁÖ¹®¹æ½Ä(A:°´Ã¼ÀνÄ,B:¼±ÁÖ¹®,C:¹ÙÄڵ彺ĵ)',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'ORDER_TYPE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'STOR_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»óÇ°ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'ITEM_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Ç°Àý¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'SOLDOUT_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¸¶Áö¸·¼öÁ¤ÀϽÃ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY',@level2type=N'COLUMN',@level2name=N'LAST_UPD_TIME' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷º° Á¦Ç° ÅÍÄ¡Å°',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_KEY' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_UI_TEMPLATE]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_UI_TEMPLATE]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [STOR_CD] [nvarchar](10) NOT NULL, [TEMPL_CD] [nvarchar](10) NOT NULL, [TEMPL_NM] [nvarchar](100) NULL, [LOGO_FILE_NAME] [nvarchar](100) NULL, [LOGO_FILE_FULLPATH] [nvarchar](200) NULL, [GNB_BACK_COLOR] [nvarchar](10) NULL, [MAIN_BACK_COLOR] [nvarchar](10) NULL, [MAIN_FONT_COLOR] [nvarchar](10) NULL, [HPC_GNB_BACK_COLOR] [nvarchar](10) NULL, [HPC_MAIN_BACK_COLOR] [nvarchar](10) NULL, [HPC_MAIN_FONT_COLOR] [nvarchar](10) NULL, [USE_YN] [nvarchar](1) NOT NULL DEFAULT '1', [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_UI_TEMPLATE] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [STOR_CD] ASC, [TEMPL_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷ÄÚµå(¿µ¾÷Á¶Á÷º°Àº ''000'')',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'STOR_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÅÛÇø´ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'TEMPL_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÅÛÇø´¸í',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'TEMPL_NM' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'·Î°íÆÄÀϸí',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'LOGO_FILE_NAME' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'·Î°íÆÄÀÏ°æ·Î',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'LOGO_FILE_FULLPATH' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'GNB ¹è°æ»ö»ó',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'GNB_BACK_COLOR' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¸ÞÀÎ ¹è°æ»ö»ó',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'MAIN_BACK_COLOR' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¸ÞÀÎ ÆùÆ®»ö»ó',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'MAIN_FONT_COLOR' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÎÁõ_GNB ¹è°æ»ö»ó',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'HPC_GNB_BACK_COLOR' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÎÁõ_¸ÞÀÎ ¹è°æ»ö»ó',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'HPC_MAIN_BACK_COLOR' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÎÁõ_¸ÞÀÎ ÆùÆ®»ö»ó',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'HPC_MAIN_FONT_COLOR' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»ç¿ë¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'USE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷º° UIÅÛÇø´',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_UI_TEMPLATE' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_CPI_CONTENTS]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_CPI_CONTENTS]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [CPI_CD] [nvarchar](14) NOT NULL, [FILE_FULLPATH] [nvarchar](200) NULL, [FILE_NAME] [nvarchar](100) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_CPI_CONTENTS] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [CPI_CD] ASC ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_CPI_CONTENTS',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_CPI_CONTENTS',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Ä·ÆäÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_CPI_CONTENTS',@level2type=N'COLUMN',@level2name=N'CPI_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀÏ°æ·Î',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_CPI_CONTENTS',@level2type=N'COLUMN',@level2name=N'FILE_FULLPATH' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀϸí',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_CPI_CONTENTS',@level2type=N'COLUMN',@level2name=N'FILE_NAME' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_CPI_CONTENTS',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_CPI_CONTENTS',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_CPI_CONTENTS',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_CPI_CONTENTS',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Ä·ÆäÀÎ ¸®¼Ò½º',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_CPI_CONTENTS' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_LANG_MSG]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_LANG_MSG]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [LANG_GBN_CD] [nvarchar](10) NOT NULL, [LANG_CD] [nvarchar](5) NOT NULL, [LANG_MESSAGE_CD] [nvarchar](10) NOT NULL, [LANG_MESSAGE] [nvarchar](100) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_LANG_MSG] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [LANG_GBN_CD] ASC, [LANG_CD] ASC, [LANG_MESSAGE_CD] ASC ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LANG_MSG',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LANG_MSG',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´Ù±¹¾îºÐ¸®ÄÚµå(CATE:Á¦Ç°Ä«Å×°í¸®, PROD :Á¦Ç°,LABEL:¶óº§,OPTN:ºÎ°¡¿É¼Ç)',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LANG_MSG',@level2type=N'COLUMN',@level2name=N'LANG_GBN_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´Ù±¹¾îÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LANG_MSG',@level2type=N'COLUMN',@level2name=N'LANG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´Ù±¹¾î¸Þ¼¼ÁöÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LANG_MSG',@level2type=N'COLUMN',@level2name=N'LANG_MESSAGE_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´Ù±¹¾î¸Þ¼¼Áö¸í',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LANG_MSG',@level2type=N'COLUMN',@level2name=N'LANG_MESSAGE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LANG_MSG',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LANG_MSG',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LANG_MSG',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LANG_MSG',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¦Ç° ´Ù±¹¾î',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LANG_MSG' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_LAYOUT]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_LAYOUT]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [LAYOUT_CD] [nvarchar](10) NOT NULL, [LAYOUT_NM] [nvarchar](200) NULL, [LAYOUT_RESOLUTION] [nvarchar](1) NULL, [FRAME_COUNT] [nvarchar](2) NULL, [RESOLUTION_HORIZEN] [nvarchar](4) NULL, [RESOLUTION_VERTICAL] [nvarchar](4) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_LAYOUT] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [LAYOUT_CD] ASC ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'È­¸é±¸¼ºÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'LAYOUT_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'È­¸é±¸¼º¸í',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'LAYOUT_NM' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'È­¸éºñÀ²(°¡·Î,¼¼·Î)',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'LAYOUT_RESOLUTION' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÇÁ·¹ÀÓ°³¼ö(°³¼ö¸¸Å­ ÇÁ·¹ÀÓ¹øÈ£ »ý¼º)',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'FRAME_COUNT' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'È­¸éÇØ»óµµ_°¡·Î',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'RESOLUTION_HORIZEN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'RESOLUTION_VERTICAL' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'È­¸é±¸¼º',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_LAYOUT' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_PRD_CATE]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_PRD_CATE]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [PRD_CATE_CD] [nvarchar](4) NOT NULL, [PRD_CATE_UP_CD] [nvarchar](4) NOT NULL, [FILE_FULLPATH] [nvarchar](200) NULL, [FILE_NAME] [nvarchar](100) NULL, [DISPLAY_ORDER] [int] NULL, [USE_YN] [nvarchar](1) NOT NULL DEFAULT '1', [HIDE_YN] [nvarchar](1) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_PRD_CATE] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [PRD_CATE_CD] ASC, [PRD_CATE_UP_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Ä«Å×°í¸®ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'PRD_CATE_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Ä«Å×°í¸®»óÀ§ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'PRD_CATE_UP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀÏ°æ·Î',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'FILE_FULLPATH' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀϸí',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'FILE_NAME' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'³ëÃâ¼ø¼­',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'DISPLAY_ORDER' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»ç¿ë¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'USE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼û±è¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'HIDE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¦Ç°Ä«Å×°í¸®',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_CATE' END GO SET ANSI_PADDING OFF GO /* SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_PRD_CATE_L]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_PRD_CATE_L]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [PRD_CATE_CD] [nvarchar](4) NOT NULL, [PRD_CATE_UP_CD] [nvarchar](4) NOT NULL, [FILE_FULLPATH] [nvarchar](200) NULL, [FILE_NAME] [nvarchar](100) NULL, [DISPLAY_ORDER] [int] NULL, [USE_YN] [nvarchar](1) NOT NULL DEFAULT '1', [HIDE_YN] [nvarchar](1) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_PRD_CATE_L] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [PRD_CATE_CD] ASC, [PRD_CATE_UP_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¹ýÀÎÄÚµå' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¿µ¾÷Á¶Á÷ÄÚµå' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ä«Å×°í¸®ÄÚµå' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'PRD_CATE_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ä«Å×°í¸®»óÀ§ÄÚµå' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'PRD_CATE_UP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÆÄÀÏ°æ·Î' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'FILE_FULLPATH' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÆÄÀϸí' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'FILE_NAME' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'³ëÃâ¼ø¼­' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'DISPLAY_ORDER' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'»ç¿ë¿©ºÎ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'USE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼û±è¿©ºÎ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'HIDE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÀÛ¼ºÀÚID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÀÛ¼ºÀÏ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼öÁ¤ÀÚID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼öÁ¤ÀÏ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L', @level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Á¦Ç°Ä«Å×°í¸®M' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_L' END GO SET ANSI_PADDING OFF GO */ /* SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_PRD_CATE_M]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_PRD_CATE_M]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [PRD_CATE_CD] [nvarchar](4) NOT NULL, [PRD_CATE_UP_CD] [nvarchar](4) NOT NULL, [FILE_FULLPATH] [nvarchar](200) NULL, [FILE_NAME] [nvarchar](100) NULL, [DISPLAY_ORDER] [int] NULL, [USE_YN] [nvarchar](1) NOT NULL DEFAULT '1', [HIDE_YN] [nvarchar](1) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_PRD_CATE_M] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [PRD_CATE_CD] ASC, [PRD_CATE_UP_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¹ýÀÎÄÚµå' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¿µ¾÷Á¶Á÷ÄÚµå' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ä«Å×°í¸®ÄÚµå' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'PRD_CATE_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ä«Å×°í¸®»óÀ§ÄÚµå' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'PRD_CATE_UP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÆÄÀÏ°æ·Î' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'FILE_FULLPATH' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÆÄÀϸí' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'FILE_NAME' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'³ëÃâ¼ø¼­' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'DISPLAY_ORDER' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'»ç¿ë¿©ºÎ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'USE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼û±è¿©ºÎ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'HIDE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÀÛ¼ºÀÚID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÀÛ¼ºÀÏ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼öÁ¤ÀÚID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¼öÁ¤ÀÏ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M', @level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Á¦Ç°Ä«Å×°í¸®M' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'NHS_PRD_CATE_M' END GO SET ANSI_PADDING OFF GO */ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_PRD_MST]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_PRD_MST]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [PRD_CATE_CD] [nvarchar](4) NOT NULL, [ITEM_CD] [nvarchar](20) NOT NULL, [ITEM_NM] [nvarchar](100) NULL, [FILE_FULLPATH] [nvarchar](200) NULL, [FILE_NAME] [nvarchar](100) NULL, [ORDER_TYPE] [nvarchar](1) NULL, [RECOMMAND_YN] [nvarchar](1) NULL, [NEW_YN] [nvarchar](1) NULL, [DISPLAY_ORDER] [int] NULL, [USE_YN] [nvarchar](1) NOT NULL DEFAULT '1', [PRESENT_YN] [nvarchar](1) NULL, [BAR_CD] [nvarchar](10) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_PRD_MST] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [PRD_CATE_CD] ASC, [ITEM_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Ä«Å×°í¸®ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'PRD_CATE_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»óÇ°ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'ITEM_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»óÇ°¸í',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'ITEM_NM' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀÏ°æ·Î',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'FILE_FULLPATH' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀϸí',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'FILE_NAME' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'°´Ã¼ÀνÄ/¹ÙÄÚµå/¼±ÁÖ¹®¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'ORDER_TYPE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Ãßõ¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'RECOMMAND_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'½Å»óÇ°¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'NEW_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'³ëÃâ¼ø¼­',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'DISPLAY_ORDER' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»ç¿ë¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'USE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ÙÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'BAR_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»çÀºÇ°¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST',@level2type=N'COLUMN',@level2name=N'PRESENT_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¦Ç°¸¶½ºÅÍ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_MST' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_OPTN_MST]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_OPTN_MST]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [ITEM_OPTN_GRP_CD] [nvarchar](4) NOT NULL, [ITEM_OPTN_CD] [nvarchar](4) NOT NULL, [ITEM_OPTN_NM] [nvarchar](200) NULL, [KIND] [nvarchar](100) NULL, [OPTN_MTD] [nvarchar](4) NULL, [KIND_CODE] [nvarchar](10) NULL, [AMT] [int] NULL, [MIN_AMT] [int] NULL, [MAX_AMT] [int] NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_OPTN_MST] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [ITEM_OPTN_GRP_CD] ASC, [ITEM_OPTN_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ºÎ°¡¿É¼Ç±×·ìÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'ITEM_OPTN_GRP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ºÎ°¡¿É¼ÇÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'ITEM_OPTN_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ºÎ°¡¿É¼Ç¸í',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'ITEM_OPTN_NM' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ºÐ·ù',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'KIND' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼ö´Ü',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'OPTN_MTD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ºÐ·ùÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'KIND_CODE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'´ÜÀ§_±Ý¾×',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'AMT' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÃÖ¼Ò°ª',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'MIN_AMT' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÃÖ´ë°ª',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'MAX_AMT' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ºÎ°¡¿É¼Ç',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_OPTN_MST' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_PRD_OPTN_GRP]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_PRD_OPTN_GRP]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [ITEM_OPTN_GRP_CD] [nvarchar](4) NOT NULL, [OPTN_GRP_NM] [nvarchar](100) NULL, [FILE_FULLPATH] [nvarchar](200) NULL, [FILE_NAME] [nvarchar](100) NULL, [SEL_MTD] [nvarchar](4) NULL, [RQRD_YN] [nvarchar](1) NULL, [USE_YN] [nvarchar](1) NOT NULL DEFAULT '1', [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_PRD_OPTN_GRP] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [ITEM_OPTN_GRP_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ºÎ°¡¿É¼Ç±×·ìÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'ITEM_OPTN_GRP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ºÎ°¡¿É¼Ç±×·ì¸í',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'OPTN_GRP_NM' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀÏ°æ·Î',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'FILE_FULLPATH' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÆÄÀϸí',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'FILE_NAME' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼±Åùæ¹ý',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'SEL_MTD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Çʼö¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'RQRD_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»ç¿ë¿©ºÎ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'USE_YN' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ºÎ°¡¿É¼Ç±×·ì',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN_GRP' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_PRD_OPTN]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_PRD_OPTN]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [STOR_CD] [nvarchar](10) NOT NULL, [ITEM_CD] [nvarchar](20) NOT NULL, [ITEM_OPTN_GRP_CD] [nvarchar](4) NOT NULL, [DISPLAY_ORDER] [int] NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_PRD_OPTN] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [STOR_CD] ASC, [ITEM_CD] ASC, [ITEM_OPTN_GRP_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN',@level2type=N'COLUMN',@level2name=N'STOR_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»óÇ°ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN',@level2type=N'COLUMN',@level2name=N'ITEM_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ºÎ°¡¿É¼Ç±×·ìÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN',@level2type=N'COLUMN',@level2name=N'ITEM_OPTN_GRP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'³ëÃâ¼ø¼­',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN',@level2type=N'COLUMN',@level2name=N'DISPLAY_ORDER' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¦Ç°º° ºÎ°¡¿É¼Ç',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_PRD_OPTN' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_STOR_PRD_TAG]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_STOR_PRD_TAG]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [STOR_CD] [nvarchar](10) NOT NULL, [ITEM_CD] [nvarchar](20) NOT NULL, [TAG_KIND] [nvarchar](2) NOT NULL, [FILE_NAME] [nvarchar](100) NULL, [NEW_START_DT] [nvarchar](8) NULL, [NEW_END_DT] [nvarchar](8) NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_STOR_PRD_TAG] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [STOR_CD] ASC, [ITEM_CD] ASC, [TAG_KIND] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¹ýÀÎÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_TAG',@level2type=N'COLUMN',@level2name=N'CMP_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¿µ¾÷Á¶Á÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_TAG',@level2type=N'COLUMN',@level2name=N'SALES_ORG_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¡Æ÷ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_TAG',@level2type=N'COLUMN',@level2name=N'STOR_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'»óÇ°ÄÚµå',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_TAG',@level2type=N'COLUMN',@level2name=N'ITEM_CD' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_TAG',@level2type=N'COLUMN',@level2name=N'REG_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'ÀÛ¼ºÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_TAG',@level2type=N'COLUMN',@level2name=N'REG_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÏ',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_TAG',@level2type=N'COLUMN',@level2name=N'UPD_DATE' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'¼öÁ¤ÀÚID',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_TAG',@level2type=N'COLUMN',@level2name=N'UPD_USER_ID' EXEC sys.sp_addextendedproperty @name=N'MS_Description',@value=N'Á¦Ç°º° ºÎ°¡¿É¼Ç',@level0type=N'SCHEMA',@level0name=N'dbo',@level1type=N'TABLE',@level1name=N'NHS_STOR_PRD_TAG' END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_LINK_ITEM]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_LINK_ITEM]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [LINK_CD] [nvarchar](6) NOT NULL, [LINK_NM] [nvarchar](40) NOT NULL, [LINK_ITEM_CD] [nvarchar](20) NOT NULL, [UPCHARGE_YN] [nvarchar](1) NOT NULL, [UPCHARGE_ITEM_CD] [nvarchar](20) NOT NULL, [DISPLAY_ORDER] [int] NOT NULL, [USE_YN] [nvarchar](1) NOT NULL, [REG_USER_ID] [nvarchar](50) NOT NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_LINK_ITEM] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [LINK_CD] ASC, [LINK_ITEM_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] END GO SET ANSI_PADDING OFF GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_STOR_FLAVOR]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_STOR_FLAVOR]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [STOR_CD] [nvarchar](10) NOT NULL, [ITEM_CD] [nvarchar](20) NOT NULL, [ITEM_NM] [nvarchar](50) NULL, [DISPLAY_ORDER] [int] NULL, [USE_YN] [nvarchar](1) NOT NULL, [DESC1] [nvarchar](1000) NULL, [DESC2] [nvarchar](1000) NULL, [INFO] [nvarchar](1000) NULL, [REG_USER_ID] [nvarchar](50) NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_STOR_FLAVOR] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [STOR_CD] ASC, [ITEM_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] END GO SET ANSI_PADDING OFF GO GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[NHS_FUNC_INFO]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[NHS_FUNC_INFO]( [CMP_CD] [nvarchar](4) NOT NULL, [SALES_ORG_CD] [nvarchar](4) NOT NULL, [STOR_CD] [nvarchar](10) NOT NULL, [STEP_GRP_CD] [nvarchar](4) NOT NULL, [FUNC_GRP_CD] [nvarchar](5) NOT NULL, [FUNC_CD] [nvarchar](5) NOT NULL, [STEP_GRP_NM] [nvarchar](100) NULL, [FUNC_GRP_NM] [nvarchar](100) NULL, [FUNC_NM] [nvarchar](100) NULL, [DISPLAY_ORDER] [int] NULL, [USE_YN] [nvarchar](1) NULL, [REG_USER_ID] [nvarchar](50) NULL, [REG_DATE] [datetime] NOT NULL DEFAULT getdate(), [UPD_USER_ID] [nvarchar](50) NULL, [UPD_DATE] [datetime] NULL, CONSTRAINT [PK_NHS_FUNC_INFO] PRIMARY KEY CLUSTERED ( [CMP_CD] ASC, [SALES_ORG_CD] ASC, [STOR_CD] ASC, [STEP_GRP_CD] ASC, [FUNC_GRP_CD] ASC, [FUNC_CD] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] END GO SET ANSI_PADDING OFF GO