ERP数据库模型设计(New).SQL 92 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341
  1. USE [ERP数据库模型设计(New)]
  2. GO
  3. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpUser]') AND type in (N'U'))
  4. DROP TABLE [dbo].[tb_ErpUser]
  5. GO
  6. CREATE TABLE [dbo].[tb_ErpUser] (
  7. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  8. , [User_Account] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  9. , [User_Name] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  10. , [User_Password] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  11. , [User_EmployeeID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  12. , [User_Department] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  13. , [User_Positions] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  14. , [User_Competence] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  15. , [User_OnlineTime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  16. , [User_Sex] nvarchar(2) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  17. , [User_Status] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  18. , [User_IsDisable] bit NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  19. , [User_Ethnic] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  20. , [User_Hometown] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  21. , [User_NowAddress] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  22. , [User_IdentityCardID] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  23. , [User_HometownAddress] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  24. , [User_IsMarried] bit NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  25. , [User_FirstFingerprintID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  26. , [User_SecondaryFingerprintID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  27. , [User_ICQAccount] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  28. , [User_Email] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  29. , [User_MicroSignal] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  30. , [User_Attachment] nvarchar(800) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  31. , [User_Remark] nvarchar(800) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  32. , [User_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  33. , [User_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  34. , [User_SubordinateList] nvarchar(2000) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  35. , [User_Telephone] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  36. , [User_CustomerID] int NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
  37. )
  38. GO
  39. ALTER TABLE [dbo].[tb_ErpUser] ADD CONSTRAINT [tb_ErpUser_PK] PRIMARY KEY CLUSTERED (
  40. [User_Account]
  41. )
  42. GO
  43. GO
  44. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpTheScenery]') AND type in (N'U'))
  45. DROP TABLE [dbo].[tb_ErpTheScenery]
  46. GO
  47. CREATE TABLE [dbo].[tb_ErpTheScenery] (
  48. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  49. , [Tsc_Name] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  50. , [Tsc_Introduction] nvarchar(800) NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  51. , [Tsc_DetailsOf] text NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  52. , [Tsc_Address] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  53. , [Tsc_CostPrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  54. , [Tsc_SalesPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  55. , [Tsc_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  56. , [Tsc_Thumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  57. , [Tsc_PhotoAlbum] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  58. , [Tsc_IsDisable] bit NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  59. , [Tsc_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  60. , [Tsc_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
  61. )
  62. GO
  63. ALTER TABLE [dbo].[tb_ErpTheScenery] ADD CONSTRAINT [tb_ErpTheScenery_PK] PRIMARY KEY CLUSTERED (
  64. [ID]
  65. )
  66. GO
  67. GO
  68. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpOrderProductList]') AND type in (N'U'))
  69. DROP TABLE [dbo].[tb_ErpOrderProductList]
  70. GO
  71. CREATE TABLE [dbo].[tb_ErpOrderProductList] (
  72. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  73. , [OPlist_OrderNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  74. , [OPlist_ProdClassCode] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  75. , [OPlist_ProdClassName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  76. , [OPlist_MainPhoto] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  77. , [OPlist_ProdNumber] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  78. , [OPlist_ProdName] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  79. , [OPlist_ProdCostPrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  80. , [OPlist_ProdSoldPrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  81. , [OPlist_ProdQuantity] int NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  82. , [OPlist_ProdThumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  83. , [OPlist_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  84. , [OPlist_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  85. , [OPlist_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
  86. )
  87. GO
  88. ALTER TABLE [dbo].[tb_ErpOrderProductList] ADD CONSTRAINT [tb_ErpOrderProductList_PK] PRIMARY KEY CLUSTERED (
  89. [ID]
  90. )
  91. GO
  92. GO
  93. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpInformation]') AND type in (N'U'))
  94. DROP TABLE [dbo].[tb_ErpInformation]
  95. GO
  96. CREATE TABLE [dbo].[tb_ErpInformation] (
  97. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  98. , [Info_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  99. , [Info_Category] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  100. , [Info_ParentID] int NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  101. , [Info_Title] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  102. , [Info_ChlidTitle] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  103. , [Info_Introduction] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  104. , [Info_Content] text NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  105. , [Info_Plotting] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  106. , [Info_Attachment] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  107. , [Info_Source] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  108. , [Info_Editing] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  109. , [Info_Publisher] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  110. , [Info_ClickRate] int NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  111. , [Info_IsEnabled] bit NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  112. , [Info_IsExamine] bit NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  113. , [Info_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  114. , [Info_Order] int NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  115. , [Info_ExamineName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  116. , [Info_URL] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  117. , [Info_IsEnabledURL] bit NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  118. , [Info_IsDelete] bit NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  119. , [Info_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  120. , [Info_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
  121. )
  122. GO
  123. ALTER TABLE [dbo].[tb_ErpInformation] ADD CONSTRAINT [tb_ErpInformation_PK] PRIMARY KEY CLUSTERED (
  124. [ID]
  125. )
  126. GO
  127. GO
  128. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpProduct]') AND type in (N'U'))
  129. DROP TABLE [dbo].[tb_ErpProduct]
  130. GO
  131. CREATE TABLE [dbo].[tb_ErpProduct] (
  132. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  133. , [Prod_Number] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  134. , [Prod_Name] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  135. , [Prod_Class] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  136. , [Prod_Unit] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  137. , [Prod_CostPrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  138. , [Prod_SalesPrice ] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  139. , [Prod_SpecialPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  140. , [Prod_PurchasePrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  141. , [Prod_IsRetail] bit NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  142. , [Prod_IsEnabled] bit NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  143. , [Prod_Introduction] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  144. , [Prod_Detail] text NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  145. , [Prod_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  146. , [Prod_Quantity] int NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  147. , [Prod_Thumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  148. , [Prod_FullSizeImage] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  149. , [Prod_Expedited] bit NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  150. , [Prod_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  151. , [Prod_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
  152. )
  153. GO
  154. ALTER TABLE [dbo].[tb_ErpProduct] ADD CONSTRAINT [tb_ErpProduct_PK] PRIMARY KEY CLUSTERED (
  155. [Prod_Number]
  156. )
  157. GO
  158. GO
  159. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpAttendanceRecord]') AND type in (N'U'))
  160. DROP TABLE [dbo].[tb_ErpAttendanceRecord]
  161. GO
  162. CREATE TABLE [dbo].[tb_ErpAttendanceRecord] (
  163. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  164. , [Ar_FingerprintID] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  165. , [Ar_UserID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  166. , [Ar_UserName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  167. , [Ar_ArriveIate] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  168. , [Ar_LeaveEarly] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  169. , [Ar_Absenteeism] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  170. , [Ar_AskForleave] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  171. , [Ar_Day1] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  172. , [Ar_Day2] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  173. , [Ar_Day3] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  174. , [Ar_Day4] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  175. , [Ar_Day5] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  176. , [Ar_Day6] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  177. , [Ar_Day7] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  178. , [Ar_Day8] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  179. , [Ar_Day9] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  180. , [Ar_Day10] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  181. , [Ar_Day11] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  182. , [Ar_Day12] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  183. , [Ar_Day13] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  184. , [Ar_Day14] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  185. , [Ar_Day15] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  186. , [Ar_Day16] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  187. , [Ar_Day17] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  188. , [Ar_Day18] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  189. , [Ar_Day19] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  190. , [Ar_Day20] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  191. , [Ar_Day21] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  192. , [Ar_Day22] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  193. , [Ar_Day23] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  194. , [Ar_Day24] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  195. , [Ar_Day25] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  196. , [Ar_Day26] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  197. , [Ar_Day27] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  198. , [Ar_Day28] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  199. , [Ar_Day29] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  200. , [Ar_Day30] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  201. , [Ar_Day31] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  202. , [Ar_Type] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  203. , [Ar_Month] int NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
  204. )
  205. GO
  206. ALTER TABLE [dbo].[tb_ErpAttendanceRecord] ADD CONSTRAINT [tb_ErpAttendanceRecord_PK] PRIMARY KEY CLUSTERED (
  207. [ID]
  208. )
  209. GO
  210. GO
  211. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpInternalMail]') AND type in (N'U'))
  212. DROP TABLE [dbo].[tb_ErpInternalMail]
  213. GO
  214. CREATE TABLE [dbo].[tb_ErpInternalMail] (
  215. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  216. , [Imail_Type] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  217. , [Imail_Title] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  218. , [Imail_Content] text NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  219. , [Imail_FromName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  220. , [Imail_ToName] nvarchar(4000) NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  221. , [Imail_Attachment] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  222. , [Imail_Status] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  223. , [Imail_ReadList] nvarchar(4000) NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  224. , [Imail_OwnerList] nvarchar(4000) NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  225. , [Imail_ToSendDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  226. , [Imail_DeleteList] nvarchar(4000) NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  227. , [Imail_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  228. , [Imail_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
  229. )
  230. GO
  231. ALTER TABLE [dbo].[tb_ErpInternalMail] ADD CONSTRAINT [tb_ErpInternalMail_PK] PRIMARY KEY CLUSTERED (
  232. [ID]
  233. )
  234. GO
  235. GO
  236. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpPayment]') AND type in (N'U'))
  237. DROP TABLE [dbo].[tb_ErpPayment]
  238. GO
  239. CREATE TABLE [dbo].[tb_ErpPayment] (
  240. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
  241. , [Pay_OrdNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
  242. , [Pay_AmountOf] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
  243. , [Pay_OpenSingle] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
  244. , [Pay_ThePayee] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
  245. , [Pay_PaymentMethod] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
  246. , [Pay_OrdersLocation] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
  247. , [Pay_ReceivableProject] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
  248. , [Pay_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
  249. , [Pay_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
  250. )
  251. GO
  252. ALTER TABLE [dbo].[tb_ErpPayment] ADD CONSTRAINT [tb_ErpPayment_PK] PRIMARY KEY CLUSTERED (
  253. [ID]
  254. )
  255. GO
  256. GO
  257. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpMembershipCard]') AND type in (N'U'))
  258. DROP TABLE [dbo].[tb_ErpMembershipCard]
  259. GO
  260. CREATE TABLE [dbo].[tb_ErpMembershipCard] (
  261. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  262. , [Mc_Number] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  263. , [Mc_IdentityCardID] nvarchar(30) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  264. , [Mc_Name] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  265. , [Mc_Sex] bit NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  266. , [Mc_Telephone] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  267. , [Mc_QQ] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  268. , [Mc_Address] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  269. , [Mc_WorkUnit] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  270. , [MC_Birthday] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  271. , [Mc_CardType] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  272. , [Mc_CardLevel] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  273. , [Mc_Discount] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  274. , [Mc_Points] int NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  275. , [Mc_IssuingDate] datetime NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  276. , [Mc_RecyclingDate] datetime NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  277. , [Mc_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  278. , [Mc_Status] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  279. , [Mc_ParentID] int NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  280. , [Mc_ConsumerPassword] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  281. , [Mc_Money] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  282. , [Mc_Profession] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  283. , [Mc_PackagesMoney] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  284. , [Mc_AvailableCashBack] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  285. , [Mc_AlreadyCashBack] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  286. , [Mc_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  287. , [Mc_UpdateDateTime] datetime NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
  288. )
  289. GO
  290. ALTER TABLE [dbo].[tb_ErpMembershipCard] ADD CONSTRAINT [tb_ErpMembershipCard_PK] PRIMARY KEY CLUSTERED (
  291. [Mc_Number]
  292. )
  293. GO
  294. GO
  295. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpFixedAssetManagement]') AND type in (N'U'))
  296. DROP TABLE [dbo].[tb_ErpFixedAssetManagement]
  297. GO
  298. CREATE TABLE [dbo].[tb_ErpFixedAssetManagement] (
  299. [ID] int NOT NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
  300. , [Fam_Name] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
  301. , [Fam_Specification] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
  302. , [Fam_Quantity] int NOT NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
  303. , [Fam_PurchasePrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
  304. , [Fam_BuyDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
  305. , [Fam_Custodian] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
  306. , [Fam_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
  307. , [Fam_PhotoAlbum] nvarchar(2000) NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
  308. , [Fam_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
  309. , [Fam_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
  310. )
  311. GO
  312. ALTER TABLE [dbo].[tb_ErpFixedAssetManagement] ADD CONSTRAINT [tb_ErpFixedAssetManagement_PK] PRIMARY KEY CLUSTERED (
  313. [ID]
  314. )
  315. GO
  316. GO
  317. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSystemLogs]') AND type in (N'U'))
  318. DROP TABLE [dbo].[tb_ErpSystemLogs]
  319. GO
  320. CREATE TABLE [dbo].[tb_ErpSystemLogs] (
  321. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
  322. , [Slogs_Type] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
  323. , [Slogs_Topic] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
  324. , [Slogs_Content] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
  325. , [Slogs_UserName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
  326. , [Slogs_IP] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
  327. , [Slogs_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
  328. )
  329. GO
  330. ALTER TABLE [dbo].[tb_ErpSystemLogs] ADD CONSTRAINT [tb_ErpSystemLogs_PK] PRIMARY KEY CLUSTERED (
  331. [ID]
  332. )
  333. GO
  334. GO
  335. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpInventoryRecords]') AND type in (N'U'))
  336. DROP TABLE [dbo].[tb_ErpInventoryRecords]
  337. GO
  338. CREATE TABLE [dbo].[tb_ErpInventoryRecords] (
  339. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
  340. , [Ir_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
  341. , [Ir_ProductID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
  342. , [Ir_Number] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
  343. , [Ir_ProductCategory] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
  344. , [Ir_ProductName] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
  345. , [Ir_Quantity] int NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
  346. , [Ir_PersonHandling] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
  347. , [Ir_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
  348. , [Ir_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
  349. )
  350. GO
  351. ALTER TABLE [dbo].[tb_ErpInventoryRecords] ADD CONSTRAINT [tb_ErpInventoryRecords_PK] PRIMARY KEY CLUSTERED (
  352. [ID]
  353. )
  354. GO
  355. GO
  356. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpOrder]') AND type in (N'U'))
  357. DROP TABLE [dbo].[tb_ErpOrder]
  358. GO
  359. CREATE TABLE [dbo].[tb_ErpOrder] (
  360. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  361. , [Ord_Number] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  362. , [Ord_Type] bit NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  363. , [Ord_Class] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  364. , [Ord_Mc_Number] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  365. , [Ord_Name1] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  366. , [Ord_GentlemenPhone] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  367. , [Ord_Name2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  368. , [Ord_LadiesPhone] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  369. , [Ord_PhotographyCategory] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  370. , [Ord_CustomerSource] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  371. , [Ord_AppointmentTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  372. , [Ord_PhotographerNmae] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  373. , [Ord_PhotographyTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  374. , [Ord_PhotographyStatus] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  375. , [Ord_EarlyRepairName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  376. , [Ord_EarlyRepairTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  377. , [Ord_EarlyRepairStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  378. , [Ord_FilmSelectionName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  379. , [Ord_FilmSelectionTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  380. , [Ord_FilmSelectionStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  381. , [Ord_RefinementName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  382. , [Ord_RefinementTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  383. , [Ord_RefinementStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  384. , [Ord_DesignName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  385. , [Ord_DesignTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  386. , [Ord_DesignStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  387. , [Ord_LookDesignName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  388. , [Ord_LookDesignTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  389. , [Ord_LookDesignStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  390. , [Ord_TakePiecesTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  391. , [Ord_TakePiecesStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  392. , [Ord_OrdersPerson] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  393. , [Ord_MakeupArtistName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  394. , [Ord_SeriesName] nvarchar(30) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  395. , [Ord_SeriesPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  396. , [Ord_Discount] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  397. , [Ord_Authorize] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  398. , [Ord_AfterDiscount] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  399. , [Ord_AfterAuthorize] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  400. , [Ord_UserAccount] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  401. , [Ord_CustomerID] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  402. , [Ord_Price] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  403. , [Ord_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  404. , [Ord_PhotoPath] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  405. , [Ord_ClothingQuantity] int NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  406. , [Ord_Styling] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  407. , [Ord_OnLocation] int NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  408. , [Ord_InteriorView] int NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  409. , [Ord_EntryClerkName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  410. , [Ord_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  411. , [Ord_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
  412. )
  413. GO
  414. ALTER TABLE [dbo].[tb_ErpOrder] ADD CONSTRAINT [tb_ErpOrder_PK] PRIMARY KEY CLUSTERED (
  415. [Ord_Number]
  416. )
  417. GO
  418. GO
  419. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpDepartment]') AND type in (N'U'))
  420. DROP TABLE [dbo].[tb_ErpDepartment]
  421. GO
  422. CREATE TABLE [dbo].[tb_ErpDepartment] (
  423. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
  424. , [Dt_Name] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
  425. , [Dt_ChargeMan] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
  426. , [Dt_Telephone] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
  427. , [Dt_Fax] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
  428. , [Dt_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
  429. , [Dt_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
  430. , [Dt_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
  431. )
  432. GO
  433. ALTER TABLE [dbo].[tb_ErpDepartment] ADD CONSTRAINT [tb_ErpDepartment_PK] PRIMARY KEY CLUSTERED (
  434. [ID]
  435. )
  436. GO
  437. GO
  438. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpRentalSaleRecords]') AND type in (N'U'))
  439. DROP TABLE [dbo].[tb_ErpRentalSaleRecords]
  440. GO
  441. CREATE TABLE [dbo].[tb_ErpRentalSaleRecords] (
  442. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  443. , [Rrlist_RsoNumber] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  444. , [Rrlist_ProductName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  445. , [Rrlist_ProductNumber] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  446. , [Rrlist_ProductQuantity] int NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  447. , [Rrlist_ProductThumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  448. , [Rrlist_Status] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  449. , [Rrlist_EstimateTakeDate] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  450. , [Rrlist_EstimateReturnDate] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  451. , [Rrlist_ActualTakeDate] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  452. , [Rrlist_ActualReturnDate] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  453. , [Rrlist_RentalSaleRemark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  454. , [Rrlist_Money] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  455. , [Rrlist_Deposit] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  456. , [Rrlist_ProductBuyPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  457. , [Rrlist_ExpiredDays] int NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  458. , [Rrlist_ExtendedPayment] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  459. , [Rrlist_ReturnRemark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  460. , [Rso_HandlingPerson] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  461. , [Rrlist_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  462. , [Rrlist_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
  463. )
  464. GO
  465. ALTER TABLE [dbo].[tb_ErpRentalSaleRecords] ADD CONSTRAINT [tb_ErpRentalSaleRecords_PK] PRIMARY KEY CLUSTERED (
  466. [ID]
  467. )
  468. GO
  469. GO
  470. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSmsAccountInfo]') AND type in (N'U'))
  471. DROP TABLE [dbo].[tb_ErpSmsAccountInfo]
  472. GO
  473. CREATE TABLE [dbo].[tb_ErpSmsAccountInfo] (
  474. [ID] int NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
  475. , [Smsa_AccountNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
  476. , [Smsa_AccountName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
  477. , [Smsa_Password] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
  478. , [Smsa_MoneyBalances] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
  479. , [Smsa_SendTypes] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
  480. , [Smsa_CrealeDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
  481. )
  482. GO
  483. ALTER TABLE [dbo].[tb_ErpSmsAccountInfo] ADD CONSTRAINT [tb_ErpSmsAccountInfo_PK] PRIMARY KEY CLUSTERED (
  484. [ID]
  485. )
  486. GO
  487. GO
  488. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpRegion]') AND type in (N'U'))
  489. DROP TABLE [dbo].[tb_ErpRegion]
  490. GO
  491. CREATE TABLE [dbo].[tb_ErpRegion] (
  492. [ID] int NOT NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
  493. , [Region_code] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
  494. , [Region_name] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
  495. , [Region_ParentID] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
  496. , [Region_level] int NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
  497. , [Region_order] int NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
  498. , [Region_name_en] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
  499. , [Region_shortname_en] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
  500. )
  501. GO
  502. ALTER TABLE [dbo].[tb_ErpRegion] ADD CONSTRAINT [tb_ErpRegion_PK] PRIMARY KEY CLUSTERED (
  503. [ID]
  504. )
  505. GO
  506. GO
  507. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpCallWizard]') AND type in (N'U'))
  508. DROP TABLE [dbo].[tb_ErpCallWizard]
  509. GO
  510. CREATE TABLE [dbo].[tb_ErpCallWizard] (
  511. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
  512. , [Callw_Telephone] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
  513. , [Callw_DateTime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
  514. , [Callw_Status] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
  515. , [Callw_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
  516. , [Callw_SoundRecording] nvarchar(1000) NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
  517. , [Callw_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
  518. )
  519. GO
  520. ALTER TABLE [dbo].[tb_ErpCallWizard] ADD CONSTRAINT [tb_ErpCallWizard_PK] PRIMARY KEY CLUSTERED (
  521. [ID]
  522. )
  523. GO
  524. GO
  525. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpCustomer]') AND type in (N'U'))
  526. DROP TABLE [dbo].[tb_ErpCustomer]
  527. GO
  528. CREATE TABLE [dbo].[tb_ErpCustomer] (
  529. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  530. , [Cus_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  531. , [Cus_Name1] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  532. , [Cus_Name2] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  533. , [Cus_Telephone1] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  534. , [Cus_Telephone2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  535. , [Cus_FixedPhone] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  536. , [Cus_QQ1] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  537. , [Cus_QQ2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  538. , [Cus_Sex1] int NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  539. , [Cus_Sex2] int NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  540. , [Cus_Birthday1] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  541. , [Cus_Birthday2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  542. , [Cus_Region1] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  543. , [Cus_Region2] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  544. , [Cus_Address1] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  545. , [Cus_Address2] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  546. , [Cus_WorkUnit1] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  547. , [Cus_WorkUnit2] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  548. , [Cus_DayForMarriage] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  549. , [Cus_OrderDate] datetime NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  550. , [Cus_PackagesName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  551. , [Cus_PackagesMoney] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  552. , [Cus_EntryClerk] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  553. , [Cus_CustomerSource] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  554. , [Cus_Status] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  555. , [Cus_LossReason] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  556. , [Cus_Remark] char(10) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  557. , [Cus_OrderRecord ] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  558. , [Cus_ServiceType] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  559. , [Cus_IdentityCardID1] nvarchar(30) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  560. , [Cus_IdentityCardID2] nvarchar(30) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  561. , [Cus_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  562. , [Cus_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  563. , [Cus_Lunar1] bit NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  564. , [Cus_Lunar2] bit NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  565. , [Cus_LovedStyle] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
  566. )
  567. GO
  568. ALTER TABLE [dbo].[tb_ErpCustomer] ADD CONSTRAINT [tb_ErpCustomer_PK] PRIMARY KEY CLUSTERED (
  569. [ID]
  570. )
  571. GO
  572. GO
  573. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpCommissionConfigure]') AND type in (N'U'))
  574. DROP TABLE [dbo].[tb_ErpCommissionConfigure]
  575. GO
  576. CREATE TABLE [dbo].[tb_ErpCommissionConfigure] (
  577. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  578. , [Cconfig_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  579. , [Cconfig_OrderNumber] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  580. , [Cconfig_Photographer1] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  581. , [Cconfig_PhotographerProportion1] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  582. , [Cconfig_Photographer2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  583. , [Cconfig_PhotographerProportion2] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  584. , [Cconfig_Photographer3] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  585. , [Cconfig_PhotographerProportion3] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  586. , [Cconfig_Photographer4] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  587. , [Cconfig_PhotographerProportion4] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  588. , [Cconfig_MakeupArtist1] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  589. , [Cconfig_MakeupArtistProportion1] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  590. , [Cconfig_MakeupArtist2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  591. , [Cconfig_MakeupArtistProportion2] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  592. , [Cconfig_MakeupArtist3] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  593. , [Cconfig_MakeupArtistProportion3] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  594. , [Cconfig_MakeupArtist4] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  595. , [Cconfig_MakeupArtistProportion4] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  596. , [Cconfig_MainStore] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  597. , [Cconfig_MainStoreProportion] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  598. , [Cconfig_ViceStore] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  599. , [Cconfig_ViceProportion] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  600. , [Cconfig_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  601. , [Cconfig_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
  602. )
  603. GO
  604. ALTER TABLE [dbo].[tb_ErpCommissionConfigure] ADD CONSTRAINT [tb_ErpCommissionConfigure_PK] PRIMARY KEY CLUSTERED (
  605. [ID]
  606. )
  607. GO
  608. GO
  609. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpPackages]') AND type in (N'U'))
  610. DROP TABLE [dbo].[tb_ErpPackages]
  611. GO
  612. CREATE TABLE [dbo].[tb_ErpPackages] (
  613. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
  614. , [Pak_PackagesID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
  615. , [Pak_PackagesClass] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
  616. , [Pak_Name] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
  617. , [Pak_UnitPrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
  618. , [Pak_IsDisable] bit NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
  619. , [Pak_Remark] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
  620. , [Pak_IntoTheArchive] int NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
  621. , [Pak_IntoTheBook] int NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
  622. , [Pak_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
  623. , [Pak_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
  624. )
  625. GO
  626. ALTER TABLE [dbo].[tb_ErpPackages] ADD CONSTRAINT [tb_ErpPackages_PK] PRIMARY KEY CLUSTERED (
  627. [Pak_PackagesID]
  628. )
  629. GO
  630. GO
  631. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpFormalDress]') AND type in (N'U'))
  632. DROP TABLE [dbo].[tb_ErpFormalDress]
  633. GO
  634. CREATE TABLE [dbo].[tb_ErpFormalDress] (
  635. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  636. , [Fd_Number] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  637. , [Fd_Type] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  638. , [Fd_Category] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  639. , [Fd_PlacedArea] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  640. , [Fd_Name] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  641. , [Fd_Quantity] int NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  642. , [Fd_RentalPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  643. , [Fd_SalePrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  644. , [Fd_BuyPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  645. , [Fd_BuyDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  646. , [Fd_Introduction] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  647. , [Fd_Detail] text NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  648. , [Fd_MainPhoto ] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  649. , [Fd_Thumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  650. , [Fd_PhotoAlbum] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  651. , [Fd_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  652. , [Fd_StarRating] int NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  653. , [Fd_IsEnabled] bit NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  654. , [Fd_IsShows] bit NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  655. , [Fd_Status] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  656. , [Fd_AreLeasedQuantity] int NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  657. , [Fd_HasSoldQuantity] int NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  658. , [Fd_TheLaundryQuantity] int NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  659. , [Fd_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  660. , [Fd_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
  661. )
  662. GO
  663. ALTER TABLE [dbo].[tb_ErpFormalDress] ADD CONSTRAINT [tb_ErpFormalDress_PK] PRIMARY KEY CLUSTERED (
  664. [Fd_Number]
  665. )
  666. GO
  667. GO
  668. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSMSTemplates]') AND type in (N'U'))
  669. DROP TABLE [dbo].[tb_ErpSMSTemplates]
  670. GO
  671. CREATE TABLE [dbo].[tb_ErpSMSTemplates] (
  672. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
  673. , [Smst_Type] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
  674. , [Smst_Category] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
  675. , [Smst_Title] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
  676. , [Smst_Content] nvarchar(4000) NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
  677. , [Smst_IsReadOnly] bit NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
  678. , [Smst_SendCondition] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
  679. , [Smst_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
  680. , [Smst_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
  681. )
  682. GO
  683. ALTER TABLE [dbo].[tb_ErpSMSTemplates] ADD CONSTRAINT [tb_ErpSMSTemplates_PK] PRIMARY KEY CLUSTERED (
  684. [ID]
  685. )
  686. GO
  687. GO
  688. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpOrdersPhotography]') AND type in (N'U'))
  689. DROP TABLE [dbo].[tb_ErpOrdersPhotography]
  690. GO
  691. CREATE TABLE [dbo].[tb_ErpOrdersPhotography] (
  692. [ID] int NOT NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  693. , [OrdPg_OrderNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  694. , [OrdPg_TakenStages] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  695. , [OrdPg_Sights] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  696. , [OrdPg_Photographer] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  697. , [OrdPg_PhotographyTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  698. , [OrdPg_ShootingStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  699. , [OrdPg_PhotographyAssistant] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  700. , [OrdPg_MakeupArtist] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  701. , [OrdPg_MakeupAssistant] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  702. , [OrdPg_EarlyRepairName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  703. , [OrdPg_EarlyRepairTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  704. , [OrdPg_EarlyRepairStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  705. , [OrdPg_EarlyRepairExpedited] bit NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  706. , [OrdPg_FilmSelectionName] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  707. , [OrdPg_FilmSelectionTime] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  708. , [OrdPg_FilmSelectionStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  709. , [OrdPg_DesignerName] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  710. , [OrdPg_DesignerDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  711. , [OrdPg_DesignerStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  712. , [OrdPg_DesignerExpedited] bit NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  713. , [OrdPg_RefinementName] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  714. , [OrdPg_RefinementTime] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  715. , [OrdPg_RefinementStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  716. , [OrdPg_RefinementExpedited] bit NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  717. , [OrdPg_LookDesignName] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  718. , [OrdPg_LookDesignTime] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  719. , [OrdPg_LookDesignStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  720. , [OrdPg_TakePiecesStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  721. , [OrdPg_Remark] text NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  722. , [OrdPg_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  723. , [OrdPg_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
  724. )
  725. GO
  726. ALTER TABLE [dbo].[tb_ErpOrdersPhotography] ADD CONSTRAINT [tb_ErpOrdersPhotography_PK] PRIMARY KEY CLUSTERED (
  727. [ID]
  728. )
  729. GO
  730. GO
  731. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpOrdersPerson]') AND type in (N'U'))
  732. DROP TABLE [dbo].[tb_ErpOrdersPerson]
  733. GO
  734. CREATE TABLE [dbo].[tb_ErpOrdersPerson] (
  735. [ID] int NOT NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
  736. , [OrdPe_OrderNumber] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
  737. , [OrdPe_OrdersPerson] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
  738. , [OrdPe_Proportion] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
  739. , [OrdPe_Remark] text NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
  740. , [OrdPe_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
  741. , [OrdPe_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
  742. )
  743. GO
  744. ALTER TABLE [dbo].[tb_ErpOrdersPerson] ADD CONSTRAINT [tb_ErpOrdersPerson_PK] PRIMARY KEY CLUSTERED (
  745. [ID]
  746. )
  747. GO
  748. GO
  749. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSystemCategory]') AND type in (N'U'))
  750. DROP TABLE [dbo].[tb_ErpSystemCategory]
  751. GO
  752. CREATE TABLE [dbo].[tb_ErpSystemCategory] (
  753. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
  754. , [Sc_ClassCode] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
  755. , [Sc_ClassName] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
  756. , [Sc_ClassParentID] int NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
  757. , [Sc_ClassRemark] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
  758. , [Sc_IsDisable] bit NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
  759. , [Sc_IsReadOnly] bit NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
  760. , [Sc_URL] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
  761. , [Sc_IsEnabledURL] bit NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
  762. , [Sc_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
  763. , [Sc_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
  764. )
  765. GO
  766. ALTER TABLE [dbo].[tb_ErpSystemCategory] ADD CONSTRAINT [tb_ErpSystemCategory_PK] PRIMARY KEY CLUSTERED (
  767. [ID]
  768. )
  769. GO
  770. GO
  771. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSystemInfo]') AND type in (N'U'))
  772. DROP TABLE [dbo].[tb_ErpSystemInfo]
  773. GO
  774. CREATE TABLE [dbo].[tb_ErpSystemInfo] (
  775. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  776. , [SysInfo_SysName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  777. , [SysInfo_Version] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  778. , [SysInfo_Description] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  779. , [SysInfo_CompanyName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  780. , [SysInfo_Telephone] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  781. , [SysInfo_Fax] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  782. , [SysInfo_Email] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  783. , [SysInfo_Address] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  784. , [SysInfo_URL] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  785. , [SysInfo_Agreement] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  786. , [SysInfo_CopyrightNotice] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  787. , [SysInfo_ServiceDescription] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
  788. )
  789. GO
  790. ALTER TABLE [dbo].[tb_ErpSystemInfo] ADD CONSTRAINT [tb_ErpSystemInfo_PK] PRIMARY KEY CLUSTERED (
  791. [ID]
  792. )
  793. GO
  794. GO
  795. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSMSRecord]') AND type in (N'U'))
  796. DROP TABLE [dbo].[tb_ErpSMSRecord]
  797. GO
  798. CREATE TABLE [dbo].[tb_ErpSMSRecord] (
  799. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  800. , [Smsr_RecipientNumber] nvarchar(4000) NOT NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  801. , [Smsr_Content] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  802. , [Smsr_SendCreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  803. , [Smsr_SendExpense] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  804. , [Smsr_Status] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  805. , [Smsr_SendPeople] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  806. , [Smsr_SendSumCount] int NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  807. , [Smsr_SendSuccess] int NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  808. , [Smsr_FailureTelephone] nvarchar(4000) NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  809. , [Smsr_SendRemark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  810. , [Smsr_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
  811. )
  812. GO
  813. ALTER TABLE [dbo].[tb_ErpSMSRecord] ADD CONSTRAINT [tb_ErpSMSRecord_PK] PRIMARY KEY CLUSTERED (
  814. [ID]
  815. )
  816. GO
  817. GO
  818. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpRewardPunishment]') AND type in (N'U'))
  819. DROP TABLE [dbo].[tb_ErpRewardPunishment]
  820. GO
  821. CREATE TABLE [dbo].[tb_ErpRewardPunishment] (
  822. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
  823. , [Rp_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
  824. , [Rp_RelevantPeople] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
  825. , [Rp_Money] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
  826. , [Rp_Status] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
  827. , [Rp_RPDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
  828. , [Rp_PersonHandling] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
  829. , [Rp_Reason] nvarchar(800) NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
  830. , [Rp_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
  831. , [Rp_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
  832. , [Rp_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
  833. )
  834. GO
  835. ALTER TABLE [dbo].[tb_ErpRewardPunishment] ADD CONSTRAINT [tb_ErpRewardPunishment_PK] PRIMARY KEY CLUSTERED (
  836. [ID]
  837. )
  838. GO
  839. GO
  840. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpUserExpandInfo]') AND type in (N'U'))
  841. DROP TABLE [dbo].[tb_ErpUserExpandInfo]
  842. GO
  843. CREATE TABLE [dbo].[tb_ErpUserExpandInfo] (
  844. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
  845. , [Uei_UserAccount] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
  846. , [Uei_EfFieldCode] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
  847. , [Uei_ExpandValue] nvarchar(1000) NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
  848. , [Uei_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
  849. , [Uei_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
  850. )
  851. GO
  852. ALTER TABLE [dbo].[tb_ErpUserExpandInfo] ADD CONSTRAINT [tb_ErpUserExpandInfo_PK] PRIMARY KEY CLUSTERED (
  853. [ID]
  854. )
  855. GO
  856. GO
  857. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpUseRecord]') AND type in (N'U'))
  858. DROP TABLE [dbo].[tb_ErpUseRecord]
  859. GO
  860. CREATE TABLE [dbo].[tb_ErpUseRecord] (
  861. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
  862. , [Ur_McNumber] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
  863. , [Ur_ParentNumber] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
  864. , [Ur_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
  865. , [Ur_OrderNumber] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
  866. , [Ur_Points] int NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
  867. , [Ur_Money] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
  868. , [Ur_Title] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
  869. , [Ur_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
  870. , [Ur_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
  871. )
  872. GO
  873. ALTER TABLE [dbo].[tb_ErpUseRecord] ADD CONSTRAINT [tb_ErpUseRecord_PK] PRIMARY KEY CLUSTERED (
  874. [ID]
  875. )
  876. GO
  877. GO
  878. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpOtherIncomeAndExpenses]') AND type in (N'U'))
  879. DROP TABLE [dbo].[tb_ErpOtherIncomeAndExpenses]
  880. GO
  881. CREATE TABLE [dbo].[tb_ErpOtherIncomeAndExpenses] (
  882. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
  883. , [Oiae_Type] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
  884. , [Oiae_ProjectName] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
  885. , [Oiae_Money] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
  886. , [Oiae_IEDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
  887. , [Oiae_PersonHandling] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
  888. , [Oiae_ThePayer] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
  889. , [Oiae_Invoice] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
  890. , [Oiae_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
  891. , [Oiae_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
  892. )
  893. GO
  894. ALTER TABLE [dbo].[tb_ErpOtherIncomeAndExpenses] ADD CONSTRAINT [tb_ErpOtherIncomeAndExpenses_PK] PRIMARY KEY CLUSTERED (
  895. [ID]
  896. )
  897. GO
  898. GO
  899. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpCompanyInfo]') AND type in (N'U'))
  900. DROP TABLE [dbo].[tb_ErpCompanyInfo]
  901. GO
  902. CREATE TABLE [dbo].[tb_ErpCompanyInfo] (
  903. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  904. , [Company_Name] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  905. , [Company_Manager] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  906. , [Company_Telephone ] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  907. , [Company_Fax] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  908. , [Company_URL] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  909. , [Company_Address] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  910. , [Company_SingleTitle] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  911. , [Company_SingleExplanation] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  912. , [Company_ReservationExplanation] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  913. , [Company_ProductionNotes] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  914. , [Company_DressDescription] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  915. , [Company_DimensionalCode] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  916. , [Company_About] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  917. , [Company_PhotoThumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  918. , [Company_PhotoAlbum] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  919. , [Company_Detail] text NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  920. , [Company_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  921. , [Company_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
  922. )
  923. GO
  924. ALTER TABLE [dbo].[tb_ErpCompanyInfo] ADD CONSTRAINT [tb_ErpCompanyInfo_PK] PRIMARY KEY CLUSTERED (
  925. [ID]
  926. )
  927. GO
  928. GO
  929. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpContactRecord]') AND type in (N'U'))
  930. DROP TABLE [dbo].[tb_ErpContactRecord]
  931. GO
  932. CREATE TABLE [dbo].[tb_ErpContactRecord] (
  933. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
  934. , [Cr_CustomerID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
  935. , [Cr_ContactName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
  936. , [Cr_Topic] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
  937. , [Cr_Content] nvarchar(800) NOT NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
  938. , [Cr_CustomerResponse] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
  939. , [Cr_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
  940. , [Cr_ReturnVisitTime] datetime NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
  941. , [Cr_IsRemind] bit NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
  942. , [Cr_ContactDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
  943. , [Cr_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
  944. )
  945. GO
  946. ALTER TABLE [dbo].[tb_ErpContactRecord] ADD CONSTRAINT [tb_ErpContactRecord_PK] PRIMARY KEY CLUSTERED (
  947. [ID]
  948. )
  949. GO
  950. GO
  951. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpClientSatisfaction]') AND type in (N'U'))
  952. DROP TABLE [dbo].[tb_ErpClientSatisfaction]
  953. GO
  954. CREATE TABLE [dbo].[tb_ErpClientSatisfaction] (
  955. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
  956. , [Csf_OrdersNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
  957. , [Csf_Reception] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
  958. , [Csf_Makeup] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
  959. , [Csf_Photography] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
  960. , [Csf_Digital] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
  961. , [Csf_FilmSelection] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
  962. , [Csf_Progress] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
  963. , [Csf_Product] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
  964. , [Csf_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
  965. , [Csf_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
  966. )
  967. GO
  968. ALTER TABLE [dbo].[tb_ErpClientSatisfaction] ADD CONSTRAINT [tb_ErpClientSatisfaction_PK] PRIMARY KEY CLUSTERED (
  969. [ID]
  970. )
  971. GO
  972. GO
  973. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpPermissionTemplate]') AND type in (N'U'))
  974. DROP TABLE [dbo].[tb_ErpPermissionTemplate]
  975. GO
  976. CREATE TABLE [dbo].[tb_ErpPermissionTemplate] (
  977. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpPermissionTemplate_PKToString:System.__ComObject
  978. , [Pte_TemplateName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpPermissionTemplate_PKToString:System.__ComObject
  979. , [Pte_PermissionValue] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpPermissionTemplate_PKToString:System.__ComObject
  980. , [Pte_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpPermissionTemplate_PKToString:System.__ComObject
  981. , [Pte_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpPermissionTemplate_PKToString:System.__ComObject
  982. )
  983. GO
  984. ALTER TABLE [dbo].[tb_ErpPermissionTemplate] ADD CONSTRAINT [tb_ErpPermissionTemplate_PK] PRIMARY KEY CLUSTERED (
  985. [ID]
  986. )
  987. GO
  988. GO
  989. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpExpandField]') AND type in (N'U'))
  990. DROP TABLE [dbo].[tb_ErpExpandField]
  991. GO
  992. CREATE TABLE [dbo].[tb_ErpExpandField] (
  993. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
  994. , [Ef_FieldCode] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
  995. , [Ef_FieldName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
  996. , [Ef_FieldValueList] nvarchar(1000) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
  997. , [Ef_DefaultValue] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
  998. , [Ef_FieldType] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
  999. , [Ef_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
  1000. , [Ef_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
  1001. , [Ef_FieldRemark] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
  1002. )
  1003. GO
  1004. ALTER TABLE [dbo].[tb_ErpExpandField] ADD CONSTRAINT [tb_ErpExpandField_PK] PRIMARY KEY CLUSTERED (
  1005. [Ef_FieldCode]
  1006. )
  1007. GO
  1008. GO
  1009. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpTwoSalesOrder]') AND type in (N'U'))
  1010. DROP TABLE [dbo].[tb_ErpTwoSalesOrder]
  1011. GO
  1012. CREATE TABLE [dbo].[tb_ErpTwoSalesOrder] (
  1013. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1014. , [Tsorder_Number] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1015. , [Tsorder_Name] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1016. , [Tsorder_CustomerName] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1017. , [Tsorder_Telephone] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1018. , [Tsorder_Money] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1019. , [Tsorder_Quantity] int NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1020. , [Tsorder_Category] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1021. , [Tsorder_OpenSingle] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1022. , [Tsorder_PersonHandling] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1023. , [Tsorder_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1024. , [Tsorder_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1025. , [Tsorder_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
  1026. )
  1027. GO
  1028. ALTER TABLE [dbo].[tb_ErpTwoSalesOrder] ADD CONSTRAINT [tb_ErpTwoSalesOrder_PK] PRIMARY KEY CLUSTERED (
  1029. [Tsorder_Number]
  1030. )
  1031. GO
  1032. GO
  1033. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSystemConfigure]') AND type in (N'U'))
  1034. DROP TABLE [dbo].[tb_ErpSystemConfigure]
  1035. GO
  1036. CREATE TABLE [dbo].[tb_ErpSystemConfigure] (
  1037. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
  1038. , [Sconfig_Code] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
  1039. , [Sconfig_Name] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
  1040. , [Sconfig_Value] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
  1041. , [Sconfig_IsEnabled] bit NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
  1042. , [Sconfig_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
  1043. , [Sconfig_Type] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
  1044. , [Sconfig_Order] int NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
  1045. , [Sconfig_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
  1046. )
  1047. GO
  1048. ALTER TABLE [dbo].[tb_ErpSystemConfigure] ADD CONSTRAINT [tb_ErpSystemConfigure_PK] PRIMARY KEY CLUSTERED (
  1049. [Sconfig_Code]
  1050. )
  1051. GO
  1052. GO
  1053. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpConfigureInfo]') AND type in (N'U'))
  1054. DROP TABLE [dbo].[tb_ErpConfigureInfo]
  1055. GO
  1056. CREATE TABLE [dbo].[tb_ErpConfigureInfo] (
  1057. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
  1058. , [Cfinfo_Code] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
  1059. , [Cfinfo_Type] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
  1060. , [Cfinfo_Title] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
  1061. , [Cfinfo_Text] text NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
  1062. , [Cfinfo_IsEnabled] bit NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
  1063. , [Cfinfo_Order] int NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
  1064. , [Cfinfo_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
  1065. , [Cfinfo_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
  1066. )
  1067. GO
  1068. ALTER TABLE [dbo].[tb_ErpConfigureInfo] ADD CONSTRAINT [tb_ErpConfigureInfo_PK] PRIMARY KEY CLUSTERED (
  1069. [Cfinfo_Code]
  1070. )
  1071. GO
  1072. GO
  1073. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpRosteringSettings]') AND type in (N'U'))
  1074. DROP TABLE [dbo].[tb_ErpRosteringSettings]
  1075. GO
  1076. CREATE TABLE [dbo].[tb_ErpRosteringSettings] (
  1077. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
  1078. , [Rs_Name] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
  1079. , [Rs_WorkTime] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
  1080. , [Rs_OffWorkTime] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
  1081. , [Rs_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
  1082. , [Rs_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
  1083. )
  1084. GO
  1085. ALTER TABLE [dbo].[tb_ErpRosteringSettings] ADD CONSTRAINT [tb_ErpRosteringSettings_PK] PRIMARY KEY CLUSTERED (
  1086. [ID]
  1087. )
  1088. GO
  1089. GO
  1090. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpVendor]') AND type in (N'U'))
  1091. DROP TABLE [dbo].[tb_ErpVendor]
  1092. GO
  1093. CREATE TABLE [dbo].[tb_ErpVendor] (
  1094. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
  1095. , [Vd_Number] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
  1096. , [Vd_Name] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
  1097. , [Vd_Address] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
  1098. , [Vd_ContactPerson] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
  1099. , [Vd_Telephone] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
  1100. , [Vd_Fax] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
  1101. , [Vd_URL] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
  1102. , [Vd_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
  1103. )
  1104. GO
  1105. ALTER TABLE [dbo].[tb_ErpVendor] ADD CONSTRAINT [tb_ErpVendor_PK] PRIMARY KEY CLUSTERED (
  1106. [Vd_Number]
  1107. )
  1108. GO
  1109. GO
  1110. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpStyle]') AND type in (N'U'))
  1111. DROP TABLE [dbo].[tb_ErpStyle]
  1112. GO
  1113. CREATE TABLE [dbo].[tb_ErpStyle] (
  1114. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
  1115. , [Style_Name] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
  1116. , [Style_Description] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
  1117. , [Style_PhotoThumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
  1118. , [Style_PhotoAlbum] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
  1119. , [Style_Detail] text NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
  1120. , [Style_StarRating] int NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
  1121. , [Style_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
  1122. , [Style_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
  1123. )
  1124. GO
  1125. ALTER TABLE [dbo].[tb_ErpStyle] ADD CONSTRAINT [tb_ErpStyle_PK] PRIMARY KEY CLUSTERED (
  1126. [ID]
  1127. )
  1128. GO
  1129. GO
  1130. IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpRentalSaleOrder]') AND type in (N'U'))
  1131. DROP TABLE [dbo].[tb_ErpRentalSaleOrder]
  1132. GO
  1133. CREATE TABLE [dbo].[tb_ErpRentalSaleOrder] (
  1134. [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1135. , [Rso_Number] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1136. , [Rso_Type] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1137. , [Rso_RentMoney] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1138. , [Rso_Deposit] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1139. , [Rso_HandlingPerson] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1140. , [Rso_RentalSaleDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1141. , [Rso_RentalSaleRemark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1142. , [Rso_ReturnRemark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1143. , [Rso_CustomerName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1144. , [Rso_Telephone] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1145. , [Rso_QQ] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1146. , [Rso_Address] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1147. , [Rso_CompanyName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1148. , [Rso_WeddingDay] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1149. , [Rso_Birthday] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1150. , [Rso_EstimateTakeDate] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1151. , [Rso_EstimateReturnDate] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1152. , [Rso_ActualTakeDate] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1153. , [Rso_ActualReturnDate] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1154. , [Rso_ProductName] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1155. , [Rso_ProductNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1156. , [Rso_ProductQuantity] int NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1157. , [Rso_Status] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1158. , [Rso_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
  1159. )
  1160. GO
  1161. ALTER TABLE [dbo].[tb_ErpRentalSaleOrder] ADD CONSTRAINT [tb_ErpRentalSaleOrder_PK] PRIMARY KEY CLUSTERED (
  1162. [Rso_Number]
  1163. )
  1164. GO
  1165. GO
  1166. GO
  1167. GO
  1168. GO
  1169. GO
  1170. GO
  1171. GO
  1172. GO
  1173. GO
  1174. GO
  1175. GO
  1176. GO
  1177. GO
  1178. GO
  1179. GO
  1180. GO
  1181. GO
  1182. GO
  1183. GO
  1184. GO
  1185. GO
  1186. GO
  1187. GO
  1188. GO
  1189. GO
  1190. GO
  1191. GO
  1192. GO
  1193. GO
  1194. GO
  1195. GO
  1196. GO
  1197. GO
  1198. GO
  1199. GO
  1200. GO
  1201. GO
  1202. GO
  1203. GO
  1204. GO
  1205. GO
  1206. GO
  1207. GO
  1208. GO
  1209. GO