dbnull创建数据库.sql 173 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858
  1. USE [master]
  2. GO
  3. /****** Object: Database [dbnull] Script Date: 2014/10/30 11:22:13 ******/
  4. CREATE DATABASE [dbnull] ON PRIMARY
  5. ( NAME = N'dbnull', FILENAME = N'E:\lyfzbin\Services\\数据\dbnull.mdf' , SIZE = 2048KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
  6. LOG ON
  7. ( NAME = N'dbnull_log', FILENAME = N'E:\lyfzbin\Services\数据\dbnull_log.LDF' , SIZE = 1024KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%)
  8. --GO
  9. --ALTER DATABASE [dbnull] SET COMPATIBILITY_LEVEL = 90
  10. --GO
  11. IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
  12. begin
  13. EXEC [dbnull].[dbo].[sp_fulltext_database] @action = 'enable'
  14. end
  15. GO
  16. ALTER DATABASE [dbnull] SET ANSI_NULL_DEFAULT OFF
  17. GO
  18. ALTER DATABASE [dbnull] SET ANSI_NULLS OFF
  19. GO
  20. ALTER DATABASE [dbnull] SET ANSI_PADDING OFF
  21. GO
  22. ALTER DATABASE [dbnull] SET ANSI_WARNINGS OFF
  23. GO
  24. ALTER DATABASE [dbnull] SET ARITHABORT OFF
  25. GO
  26. ALTER DATABASE [dbnull] SET AUTO_CLOSE ON
  27. GO
  28. ALTER DATABASE [dbnull] SET AUTO_CREATE_STATISTICS ON
  29. GO
  30. ALTER DATABASE [dbnull] SET AUTO_SHRINK OFF
  31. GO
  32. ALTER DATABASE [dbnull] SET AUTO_UPDATE_STATISTICS ON
  33. GO
  34. ALTER DATABASE [dbnull] SET CURSOR_CLOSE_ON_COMMIT OFF
  35. GO
  36. ALTER DATABASE [dbnull] SET CURSOR_DEFAULT GLOBAL
  37. GO
  38. ALTER DATABASE [dbnull] SET CONCAT_NULL_YIELDS_NULL OFF
  39. GO
  40. ALTER DATABASE [dbnull] SET NUMERIC_ROUNDABORT OFF
  41. GO
  42. ALTER DATABASE [dbnull] SET QUOTED_IDENTIFIER OFF
  43. GO
  44. ALTER DATABASE [dbnull] SET RECURSIVE_TRIGGERS OFF
  45. GO
  46. ALTER DATABASE [dbnull] SET DISABLE_BROKER
  47. GO
  48. ALTER DATABASE [dbnull] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
  49. GO
  50. ALTER DATABASE [dbnull] SET DATE_CORRELATION_OPTIMIZATION OFF
  51. GO
  52. ALTER DATABASE [dbnull] SET TRUSTWORTHY OFF
  53. GO
  54. ALTER DATABASE [dbnull] SET ALLOW_SNAPSHOT_ISOLATION OFF
  55. GO
  56. ALTER DATABASE [dbnull] SET PARAMETERIZATION SIMPLE
  57. GO
  58. ALTER DATABASE [dbnull] SET READ_COMMITTED_SNAPSHOT OFF
  59. GO
  60. ALTER DATABASE [dbnull] SET RECOVERY SIMPLE
  61. GO
  62. ALTER DATABASE [dbnull] SET MULTI_USER
  63. GO
  64. ALTER DATABASE [dbnull] SET PAGE_VERIFY CHECKSUM
  65. GO
  66. ALTER DATABASE [dbnull] SET DB_CHAINING OFF
  67. GO
  68. USE [dbnull]
  69. GO
  70. /****** Object: Table [dbo].[area] Script Date: 2014/10/30 11:22:13 ******/
  71. SET ANSI_NULLS ON
  72. GO
  73. SET QUOTED_IDENTIFIER ON
  74. GO
  75. SET ANSI_PADDING ON
  76. GO
  77. CREATE TABLE [dbo].[area](
  78. [id] [varchar](50) NULL,
  79. [name] [varchar](50) NULL
  80. ) ON [PRIMARY]
  81. GO
  82. SET ANSI_PADDING OFF
  83. GO
  84. /****** Object: Table [dbo].[bakstate] Script Date: 2014/10/30 11:22:13 ******/
  85. SET ANSI_NULLS ON
  86. GO
  87. SET QUOTED_IDENTIFIER ON
  88. GO
  89. SET ANSI_PADDING ON
  90. GO
  91. CREATE TABLE [dbo].[bakstate](
  92. [date] [nvarchar](50) NULL,
  93. [photo] [nvarchar](50) NULL,
  94. [info] [nvarchar](50) NULL
  95. ) ON [PRIMARY]
  96. GO
  97. SET ANSI_PADDING OFF
  98. GO
  99. /****** Object: Table [dbo].[baseexpendtype] Script Date: 2014/10/30 11:22:13 ******/
  100. SET ANSI_NULLS ON
  101. GO
  102. SET QUOTED_IDENTIFIER ON
  103. GO
  104. SET ANSI_PADDING ON
  105. GO
  106. CREATE TABLE [dbo].[baseexpendtype](
  107. [name] [nvarchar](50) NULL,
  108. [id] [int] IDENTITY(1,1) NOT NULL
  109. ) ON [PRIMARY]
  110. GO
  111. SET ANSI_PADDING OFF
  112. GO
  113. /****** Object: Table [dbo].[bumen] Script Date: 2014/10/30 11:22:13 ******/
  114. SET ANSI_NULLS ON
  115. GO
  116. SET QUOTED_IDENTIFIER ON
  117. GO
  118. SET ANSI_PADDING ON
  119. GO
  120. CREATE TABLE [dbo].[bumen](
  121. [id] [int] IDENTITY(1,1) NOT NULL,
  122. [name] [varchar](50) NULL,
  123. PRIMARY KEY CLUSTERED
  124. (
  125. [id] ASC
  126. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  127. ) ON [PRIMARY]
  128. GO
  129. SET ANSI_PADDING OFF
  130. GO
  131. /****** Object: Table [dbo].[burncdreg] Script Date: 2014/10/30 11:22:13 ******/
  132. SET ANSI_NULLS ON
  133. GO
  134. SET QUOTED_IDENTIFIER ON
  135. GO
  136. SET ANSI_PADDING ON
  137. GO
  138. CREATE TABLE [dbo].[burncdreg](
  139. [id] [varchar](50) NULL,
  140. [date] [varchar](50) NULL,
  141. [ren] [varchar](50) NULL,
  142. [remark] [varchar](50) NULL
  143. ) ON [PRIMARY]
  144. GO
  145. SET ANSI_PADDING OFF
  146. GO
  147. /****** Object: Table [dbo].[businessintention] Script Date: 2014/10/30 11:22:13 ******/
  148. SET ANSI_NULLS ON
  149. GO
  150. SET QUOTED_IDENTIFIER ON
  151. GO
  152. CREATE TABLE [dbo].[businessintention](
  153. [name] [nvarchar](50) NULL,
  154. [id] [int] IDENTITY(1,1) NOT NULL
  155. ) ON [PRIMARY]
  156. GO
  157. /****** Object: Table [dbo].[businesstype] Script Date: 2014/10/30 11:22:13 ******/
  158. SET ANSI_NULLS ON
  159. GO
  160. SET QUOTED_IDENTIFIER ON
  161. GO
  162. CREATE TABLE [dbo].[businesstype](
  163. [name] [nvarchar](50) NULL,
  164. [id] [int] IDENTITY(1,1) NOT NULL
  165. ) ON [PRIMARY]
  166. GO
  167. /****** Object: Table [dbo].[childmsg] Script Date: 2014/10/30 11:22:13 ******/
  168. SET ANSI_NULLS ON
  169. GO
  170. SET QUOTED_IDENTIFIER ON
  171. GO
  172. SET ANSI_PADDING ON
  173. GO
  174. CREATE TABLE [dbo].[childmsg](
  175. [check] [varchar](50) NULL,
  176. [days] [varchar](50) NULL,
  177. [content] [varchar](max) NULL,
  178. [mode] [nvarchar](50) NULL
  179. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  180. GO
  181. SET ANSI_PADDING OFF
  182. GO
  183. /****** Object: Table [dbo].[client] Script Date: 2014/10/30 11:22:13 ******/
  184. SET ANSI_NULLS ON
  185. GO
  186. SET QUOTED_IDENTIFIER ON
  187. GO
  188. SET ANSI_PADDING ON
  189. GO
  190. CREATE TABLE [dbo].[client](
  191. [id] [varchar](50) NULL,
  192. [name1] [varchar](50) NULL,
  193. [name2] [varchar](50) NULL,
  194. [phone1] [varchar](50) NULL,
  195. [phone2] [varchar](50) NULL,
  196. [qq1] [varchar](50) NULL,
  197. [qq2] [varchar](50) NULL,
  198. [addr1] [varchar](50) NULL,
  199. [addr2] [varchar](50) NULL,
  200. [occupation1] [varchar](50) NULL,
  201. [occupation2] [varchar](50) NULL,
  202. [birthday1] [varchar](50) NULL,
  203. [birthday2] [varchar](50) NULL,
  204. [time3] [varchar](50) NULL,
  205. [area] [varchar](50) NULL,
  206. [area2] [varchar](50) NULL,
  207. [check1] [varchar](50) NULL,
  208. [check2] [varchar](50) NULL,
  209. [check3] [varchar](50) NULL,
  210. [sex] [varchar](50) NULL,
  211. [zodiac] [varchar](50) NULL
  212. ) ON [PRIMARY]
  213. GO
  214. SET ANSI_PADDING OFF
  215. GO
  216. /****** Object: Table [dbo].[client2] Script Date: 2014/10/30 11:22:13 ******/
  217. SET ANSI_NULLS ON
  218. GO
  219. SET QUOTED_IDENTIFIER ON
  220. GO
  221. SET ANSI_PADDING ON
  222. GO
  223. CREATE TABLE [dbo].[client2](
  224. [name] [varchar](50) NULL,
  225. [phone] [varchar](50) NULL,
  226. [qq] [varchar](50) NULL,
  227. [addr] [varchar](50) NULL,
  228. [from] [varchar](50) NULL,
  229. [reason] [varchar](50) NULL,
  230. [bz] [varchar](max) NULL,
  231. [pinyin] [varchar](50) NULL,
  232. [date] [varchar](50) NULL,
  233. [sex] [varchar](50) NULL,
  234. [id] [int] IDENTITY(1,1) NOT NULL,
  235. [ren] [varchar](50) NULL,
  236. [birthday] [varchar](50) NULL,
  237. [check1] [varchar](50) NULL
  238. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  239. GO
  240. SET ANSI_PADDING OFF
  241. GO
  242. /****** Object: Table [dbo].[client2phonerecord] Script Date: 2014/10/30 11:22:13 ******/
  243. SET ANSI_NULLS ON
  244. GO
  245. SET QUOTED_IDENTIFIER ON
  246. GO
  247. SET ANSI_PADDING ON
  248. GO
  249. CREATE TABLE [dbo].[client2phonerecord](
  250. [phone] [varchar](50) NULL,
  251. [datetime] [varchar](50) NULL
  252. ) ON [PRIMARY]
  253. GO
  254. SET ANSI_PADDING OFF
  255. GO
  256. /****** Object: Table [dbo].[client2phonerecordout] Script Date: 2014/10/30 11:22:13 ******/
  257. SET ANSI_NULLS ON
  258. GO
  259. SET QUOTED_IDENTIFIER ON
  260. GO
  261. SET ANSI_PADDING ON
  262. GO
  263. CREATE TABLE [dbo].[client2phonerecordout](
  264. [phoneno] [varchar](50) NULL,
  265. [datetime] [varchar](50) NULL,
  266. [name] [varchar](50) NULL
  267. ) ON [PRIMARY]
  268. GO
  269. SET ANSI_PADDING OFF
  270. GO
  271. /****** Object: Table [dbo].[client3] Script Date: 2014/10/30 11:22:13 ******/
  272. SET ANSI_NULLS ON
  273. GO
  274. SET QUOTED_IDENTIFIER ON
  275. GO
  276. SET ANSI_PADDING ON
  277. GO
  278. CREATE TABLE [dbo].[client3](
  279. [name] [varchar](50) NULL,
  280. [phone] [varchar](50) NULL,
  281. [qq] [varchar](50) NULL,
  282. [addr] [varchar](50) NULL,
  283. [bz] [varchar](max) NULL,
  284. [pinyin] [varchar](50) NULL,
  285. [date] [varchar](50) NULL,
  286. [sex] [varchar](50) NULL,
  287. [ren] [varchar](50) NULL,
  288. [id] [int] IDENTITY(1,1) NOT NULL,
  289. [dandate] [varchar](50) NULL,
  290. [name2] [varchar](50) NULL,
  291. [phone2] [varchar](50) NULL,
  292. [qq2] [varchar](50) NULL,
  293. [birthday] [varchar](50) NULL,
  294. [birthday2] [varchar](50) NULL,
  295. [time3] [varchar](50) NULL,
  296. [taoxiname] [varchar](50) NULL,
  297. [taoxijiage] [varchar](50) NULL,
  298. [check1] [varchar](50) NULL,
  299. [check2] [varchar](50) NULL,
  300. [check3] [varchar](50) NULL,
  301. [pinyin2] [varchar](50) NULL
  302. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  303. GO
  304. SET ANSI_PADDING OFF
  305. GO
  306. /****** Object: Table [dbo].[client3phonerecord] Script Date: 2014/10/30 11:22:13 ******/
  307. SET ANSI_NULLS ON
  308. GO
  309. SET QUOTED_IDENTIFIER ON
  310. GO
  311. SET ANSI_PADDING ON
  312. GO
  313. CREATE TABLE [dbo].[client3phonerecord](
  314. [phone] [varchar](50) NULL,
  315. [datetime] [varchar](50) NULL
  316. ) ON [PRIMARY]
  317. GO
  318. SET ANSI_PADDING OFF
  319. GO
  320. /****** Object: Table [dbo].[client3phonerecordout] Script Date: 2014/10/30 11:22:13 ******/
  321. SET ANSI_NULLS ON
  322. GO
  323. SET QUOTED_IDENTIFIER ON
  324. GO
  325. SET ANSI_PADDING ON
  326. GO
  327. CREATE TABLE [dbo].[client3phonerecordout](
  328. [phoneno] [varchar](50) NULL,
  329. [datetime] [varchar](50) NULL,
  330. [name] [varchar](50) NULL
  331. ) ON [PRIMARY]
  332. GO
  333. SET ANSI_PADDING OFF
  334. GO
  335. /****** Object: Table [dbo].[clientfrom] Script Date: 2014/10/30 11:22:13 ******/
  336. SET ANSI_NULLS ON
  337. GO
  338. SET QUOTED_IDENTIFIER ON
  339. GO
  340. SET ANSI_PADDING ON
  341. GO
  342. CREATE TABLE [dbo].[clientfrom](
  343. [name] [varchar](50) NULL,
  344. [id] [int] IDENTITY(1,1) NOT NULL
  345. ) ON [PRIMARY]
  346. GO
  347. SET ANSI_PADDING OFF
  348. GO
  349. /****** Object: Table [dbo].[clientqequirement] Script Date: 2014/10/30 11:22:13 ******/
  350. SET ANSI_NULLS ON
  351. GO
  352. SET QUOTED_IDENTIFIER ON
  353. GO
  354. CREATE TABLE [dbo].[clientqequirement](
  355. [name] [nvarchar](50) NULL,
  356. [id] [int] IDENTITY(1,1) NOT NULL
  357. ) ON [PRIMARY]
  358. GO
  359. /****** Object: Table [dbo].[clientreason] Script Date: 2014/10/30 11:22:13 ******/
  360. SET ANSI_NULLS ON
  361. GO
  362. SET QUOTED_IDENTIFIER ON
  363. GO
  364. SET ANSI_PADDING ON
  365. GO
  366. CREATE TABLE [dbo].[clientreason](
  367. [name] [varchar](50) NULL,
  368. [id] [int] IDENTITY(1,1) NOT NULL
  369. ) ON [PRIMARY]
  370. GO
  371. SET ANSI_PADDING OFF
  372. GO
  373. /****** Object: Table [dbo].[clienttype] Script Date: 2014/10/30 11:22:13 ******/
  374. SET ANSI_NULLS ON
  375. GO
  376. SET QUOTED_IDENTIFIER ON
  377. GO
  378. CREATE TABLE [dbo].[clienttype](
  379. [name] [nvarchar](50) NULL,
  380. [id] [int] IDENTITY(1,1) NOT NULL
  381. ) ON [PRIMARY]
  382. GO
  383. /****** Object: Table [dbo].[digitalwork] Script Date: 2014/10/30 11:22:13 ******/
  384. SET ANSI_NULLS ON
  385. GO
  386. SET QUOTED_IDENTIFIER ON
  387. GO
  388. SET ANSI_PADDING ON
  389. GO
  390. CREATE TABLE [dbo].[digitalwork](
  391. [id] [varchar](50) NULL,
  392. [waiter1] [varchar](50) NULL,
  393. [waiter2] [varchar](50) NULL,
  394. [waiter3] [varchar](50) NULL,
  395. [date1] [varchar](50) NULL,
  396. [date2] [varchar](50) NULL,
  397. [date3] [varchar](50) NULL
  398. ) ON [PRIMARY]
  399. GO
  400. SET ANSI_PADDING OFF
  401. GO
  402. /****** Object: Table [dbo].[dindan] Script Date: 2014/10/30 11:22:13 ******/
  403. SET ANSI_NULLS ON
  404. GO
  405. SET QUOTED_IDENTIFIER ON
  406. GO
  407. SET ANSI_PADDING ON
  408. GO
  409. CREATE TABLE [dbo].[dindan](
  410. [id] [varchar](50) NULL,
  411. [money1] [varchar](50) NULL,
  412. [money2] [varchar](50) NULL,
  413. [money3] [varchar](50) NULL,
  414. [name1] [varchar](50) NULL,
  415. [name2] [varchar](50) NULL,
  416. [taoxiid] [varchar](50) NULL,
  417. [taoxiname] [varchar](50) NULL,
  418. [taoxijiage] [varchar](50) NULL,
  419. [taoxizs] [varchar](50) NULL,
  420. [time1] [varchar](50) NULL,
  421. [time2] [varchar](50) NULL,
  422. [time3] [varchar](50) NULL,
  423. [bm] [varchar](50) NULL,
  424. [ren] [varchar](50) NULL,
  425. [discount] [varchar](50) NULL,
  426. [payed1] [varchar](50) NULL,
  427. [payed2] [varchar](50) NULL,
  428. [payed3] [varchar](50) NULL,
  429. [payed4] [varchar](50) NULL,
  430. [payed5] [varchar](50) NULL,
  431. [time4] [varchar](50) NULL,
  432. [time5] [varchar](50) NULL,
  433. [takezs] [varchar](50) NULL,
  434. [choosezs] [varchar](50) NULL,
  435. [status] [varchar](50) NULL,
  436. [clothescount2] [varchar](50) NULL,
  437. [outside2] [varchar](50) NULL,
  438. [style] [varchar](50) NULL,
  439. [payed3time] [varchar](50) NULL,
  440. [payed4ren] [varchar](50) NULL,
  441. [payed4time] [varchar](50) NULL,
  442. [status2] [varchar](50) NULL,
  443. [status3] [varchar](50) NULL,
  444. [waiter1] [varchar](50) NULL,
  445. [waiter2] [varchar](50) NULL,
  446. [waiter3] [varchar](50) NULL,
  447. [waiter4] [varchar](50) NULL,
  448. [bz] [varchar](max) NULL,
  449. [taketime] [varchar](50) NULL,
  450. [clothescount] [varchar](50) NULL,
  451. [outside] [varchar](50) NULL,
  452. [bz2] [varchar](max) NULL,
  453. [bz3] [varchar](max) NULL,
  454. [urgent] [varchar](50) NULL,
  455. [status4] [varchar](50) NULL,
  456. [status5] [varchar](50) NULL,
  457. [waiter5] [varchar](50) NULL,
  458. [waiter6] [varchar](50) NULL,
  459. [pinyin1] [varchar](50) NULL,
  460. [pinyin2] [varchar](50) NULL,
  461. [waiter7] [varchar](50) NULL,
  462. [status6] [varchar](50) NULL,
  463. [phone1] [varchar](50) NULL,
  464. [phone2] [varchar](50) NULL,
  465. [status7] [varchar](50) NULL,
  466. [memberno] [varchar](50) NULL,
  467. [waiter8] [varchar](50) NULL,
  468. [time6] [varchar](50) NULL,
  469. [status8] [varchar](50) NULL,
  470. [bruncount] [varchar](50) NULL,
  471. [tichenren1] [varchar](50) NULL,
  472. [tichenren2] [varchar](50) NULL,
  473. [tichenren3] [varchar](50) NULL,
  474. [tichenren4] [varchar](50) NULL,
  475. [tichenren5] [varchar](50) NULL,
  476. [send1] [varchar](50) NULL,
  477. [send2] [varchar](50) NULL,
  478. [send3] [varchar](50) NULL,
  479. [datetime4] [varchar](50) NULL,
  480. [datetime5] [varchar](50) NULL,
  481. [datetime6] [varchar](50) NULL,
  482. [waiter12] [varchar](50) NULL,
  483. [waiter22] [varchar](50) NULL,
  484. [waiter1rate] [varchar](50) NULL,
  485. [waiter2rate] [varchar](50) NULL,
  486. [waiter13] [varchar](50) NULL,
  487. [waiter14] [varchar](50) NULL,
  488. [waiter23] [varchar](50) NULL,
  489. [waiter24] [varchar](50) NULL,
  490. [waiter12rate] [varchar](50) NULL,
  491. [waiter13rate] [varchar](50) NULL,
  492. [waiter14rate] [varchar](50) NULL,
  493. [waiter22rate] [varchar](50) NULL,
  494. [waiter23rate] [varchar](50) NULL,
  495. [waiter24rate] [varchar](50) NULL,
  496. [ren2] [varchar](50) NULL,
  497. [renrate] [varchar](50) NULL,
  498. [ren2rate] [varchar](50) NULL,
  499. [txtype] [varchar](50) NULL,
  500. [delphotos] [varchar](max) NULL,
  501. [growthtxselname] [varchar](max) NULL,
  502. [delphotos2] [varchar](max) NULL,
  503. [designno] [varchar](max) NULL,
  504. [designreplaceno] [varchar](max) NULL,
  505. [size] [varchar](max) NULL,
  506. [dindantype] [varchar](50) NULL,
  507. [contractno1] [varchar](50) NULL,
  508. [contractno2] [varchar](50) NULL,
  509. [cfno] [varchar](50) NULL,
  510. [calldate] [varchar](50) NULL,
  511. [from] [varchar](50) NULL,
  512. [reason] [varchar](50) NULL,
  513. [time7] [varchar](50) NULL,
  514. [time8] [varchar](50) NULL,
  515. [time9] [varchar](50) NULL,
  516. [time10] [varchar](50) NULL,
  517. [authorize] [varchar](50) NULL,
  518. [discount2] [varchar](50) NULL,
  519. [authorize2] [varchar](50) NULL,
  520. [bz4] [nvarchar](max) NULL,
  521. [satisfaction1] [int] NULL,
  522. [satisfaction2] [int] NULL,
  523. [satisfaction3] [int] NULL,
  524. [satisfaction4] [int] NULL,
  525. [satisfaction5] [int] NULL,
  526. [satisfaction6] [int] NULL,
  527. [satisfaction7] [int] NULL,
  528. [bz5] [nvarchar](max) NULL,
  529. [send4] [int] NULL,
  530. [send5] [int] NULL,
  531. [waiter9] [nvarchar](120) NULL,
  532. [curno] [nvarchar](50) NULL,
  533. [xplrr] [nvarchar](50) NULL,
  534. [xplrtime] [nvarchar](50) NULL,
  535. [ImageStatus] [numeric](6, 0) NOT NULL
  536. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  537. GO
  538. SET ANSI_PADDING OFF
  539. GO
  540. /****** Object: Table [dbo].[dindanbukuan] Script Date: 2014/10/30 11:22:13 ******/
  541. SET ANSI_NULLS ON
  542. GO
  543. SET QUOTED_IDENTIFIER ON
  544. GO
  545. SET ANSI_PADDING ON
  546. GO
  547. CREATE TABLE [dbo].[dindanbukuan](
  548. [autoid] [int] IDENTITY(1,1) NOT NULL,
  549. [id] [varchar](50) NULL,
  550. [money] [varchar](50) NULL,
  551. [ren] [varchar](50) NULL,
  552. [date] [varchar](50) NULL,
  553. [bz] [varchar](max) NULL,
  554. [kind] [varchar](50) NULL,
  555. [ren2] [varchar](50) NULL,
  556. [item] [nvarchar](max) NULL,
  557. [paytype] [varchar](50) NULL,
  558. [jdd] [varchar](50) NULL,
  559. [financecheck] [nvarchar](10) NULL,
  560. [discount] [nvarchar](50) NULL,
  561. [time] [nvarchar](50) NULL
  562. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  563. GO
  564. SET ANSI_PADDING OFF
  565. GO
  566. /****** Object: Table [dbo].[dindanbukuan2] Script Date: 2014/10/30 11:22:13 ******/
  567. SET ANSI_NULLS ON
  568. GO
  569. SET QUOTED_IDENTIFIER ON
  570. GO
  571. SET ANSI_PADDING ON
  572. GO
  573. CREATE TABLE [dbo].[dindanbukuan2](
  574. [autoid] [int] IDENTITY(1,1) NOT NULL,
  575. [id] [varchar](50) NULL,
  576. [money] [varchar](50) NULL,
  577. [ren] [varchar](50) NULL,
  578. [date] [varchar](50) NULL,
  579. [bz] [nvarchar](500) NULL,
  580. [kind] [varchar](50) NULL,
  581. [ren2] [varchar](50) NULL
  582. ) ON [PRIMARY]
  583. GO
  584. SET ANSI_PADDING OFF
  585. GO
  586. /****** Object: Table [dbo].[dindanjd] Script Date: 2014/10/30 11:22:13 ******/
  587. SET ANSI_NULLS ON
  588. GO
  589. SET QUOTED_IDENTIFIER ON
  590. GO
  591. SET ANSI_PADDING ON
  592. GO
  593. CREATE TABLE [dbo].[dindanjd](
  594. [id] [varchar](50) NULL,
  595. [name] [varchar](50) NULL,
  596. [date] [nvarchar](50) NULL,
  597. [time] [varchar](50) NULL,
  598. [waiter1] [varchar](50) NULL,
  599. [waiter2] [varchar](50) NULL,
  600. [status] [varchar](50) NULL,
  601. [waiter12] [varchar](50) NULL,
  602. [waiter22] [varchar](50) NULL,
  603. [bookingdate] [varchar](50) NULL,
  604. [dress] [nvarchar](150) NULL,
  605. [bz] [nvarchar](150) NULL,
  606. [clerk] [nvarchar](120) NULL,
  607. [inputtime] [nvarchar](50) NULL,
  608. [branch] [nvarchar](50) NULL
  609. ) ON [PRIMARY]
  610. GO
  611. SET ANSI_PADDING OFF
  612. GO
  613. /****** Object: Table [dbo].[dindansp] Script Date: 2014/10/30 11:22:13 ******/
  614. SET ANSI_NULLS ON
  615. GO
  616. SET QUOTED_IDENTIFIER ON
  617. GO
  618. SET ANSI_PADDING ON
  619. GO
  620. CREATE TABLE [dbo].[dindansp](
  621. [id] [varchar](20) NULL,
  622. [spid] [varchar](15) NULL,
  623. [shuliang] [nvarchar](120) NULL,
  624. [kind] [nvarchar](10) NULL,
  625. [price] [varchar](50) NULL,
  626. [name] [varchar](50) NULL,
  627. [no] [varchar](max) NULL,
  628. [status1] [varchar](50) NULL,
  629. [status2] [varchar](50) NULL,
  630. [status3] [varchar](50) NULL,
  631. [status4] [varchar](50) NULL,
  632. [autoid] [int] IDENTITY(1,1) NOT NULL,
  633. [date1] [varchar](50) NULL,
  634. [date2] [varchar](50) NULL,
  635. [date3] [varchar](50) NULL,
  636. [date4] [varchar](50) NULL,
  637. [name1] [varchar](50) NULL,
  638. [name2] [varchar](50) NULL,
  639. [name3] [varchar](50) NULL,
  640. [name4] [varchar](50) NULL,
  641. [hqdate] [varchar](50) NULL,
  642. [hqtime] [varchar](50) NULL,
  643. [urgent] [varchar](50) NULL,
  644. [taketime] [varchar](50) NULL,
  645. [no2] [varchar](max) NULL,
  646. [growthtxname] [nvarchar](50) NULL,
  647. [status5] [nvarchar](50) NULL,
  648. [status6] [nvarchar](50) NULL,
  649. [date5] [nvarchar](50) NULL,
  650. [date6] [nvarchar](50) NULL,
  651. [name5] [nvarchar](50) NULL,
  652. [name6] [nvarchar](50) NULL,
  653. [ps] [nvarchar](50) NULL,
  654. [zs] [nvarchar](50) NULL,
  655. [ren1] [nvarchar](120) NULL,
  656. [ren2] [nvarchar](120) NULL,
  657. [hqstatus] [nvarchar](50) NULL,
  658. [bz] [nvarchar](200) NULL
  659. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  660. GO
  661. SET ANSI_PADDING OFF
  662. GO
  663. /****** Object: Table [dbo].[dindansp2] Script Date: 2014/10/30 11:22:13 ******/
  664. SET ANSI_NULLS ON
  665. GO
  666. SET QUOTED_IDENTIFIER ON
  667. GO
  668. SET ANSI_PADDING ON
  669. GO
  670. CREATE TABLE [dbo].[dindansp2](
  671. [id] [varchar](50) NULL,
  672. [name] [varchar](50) NULL,
  673. [count] [varchar](50) NULL,
  674. [date] [varchar](50) NULL,
  675. [clerk] [varchar](50) NULL
  676. ) ON [PRIMARY]
  677. GO
  678. SET ANSI_PADDING OFF
  679. GO
  680. /****** Object: Table [dbo].[dindansp3] Script Date: 2014/10/30 11:22:13 ******/
  681. SET ANSI_NULLS ON
  682. GO
  683. SET QUOTED_IDENTIFIER ON
  684. GO
  685. SET ANSI_PADDING ON
  686. GO
  687. CREATE TABLE [dbo].[dindansp3](
  688. [id] [varchar](50) NULL,
  689. [spid] [varchar](50) NULL,
  690. [name] [varchar](50) NULL,
  691. [count] [varchar](50) NULL
  692. ) ON [PRIMARY]
  693. GO
  694. SET ANSI_PADDING OFF
  695. GO
  696. /****** Object: Table [dbo].[dressarea] Script Date: 2014/10/30 11:22:13 ******/
  697. SET ANSI_NULLS ON
  698. GO
  699. SET QUOTED_IDENTIFIER ON
  700. GO
  701. SET ANSI_PADDING ON
  702. GO
  703. CREATE TABLE [dbo].[dressarea](
  704. [name] [varchar](50) NULL,
  705. [id] [int] IDENTITY(1,1) NOT NULL
  706. ) ON [PRIMARY]
  707. GO
  708. SET ANSI_PADDING OFF
  709. GO
  710. /****** Object: Table [dbo].[dresshire] Script Date: 2014/10/30 11:22:13 ******/
  711. SET ANSI_NULLS ON
  712. GO
  713. SET QUOTED_IDENTIFIER ON
  714. GO
  715. SET ANSI_PADDING ON
  716. GO
  717. CREATE TABLE [dbo].[dresshire](
  718. [money] [varchar](50) NULL,
  719. [money2] [varchar](50) NULL,
  720. [date] [varchar](50) NULL,
  721. [clerk] [varchar](50) NULL,
  722. [hireorsale] [varchar](50) NULL,
  723. [name] [varchar](50) NULL,
  724. [phone] [varchar](50) NULL,
  725. [id] [varchar](50) NULL,
  726. [remark] [varchar](max) NULL,
  727. [date1] [varchar](50) NULL,
  728. [date2] [varchar](50) NULL
  729. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  730. GO
  731. SET ANSI_PADDING OFF
  732. GO
  733. /****** Object: Table [dbo].[dresshiredata] Script Date: 2014/10/30 11:22:13 ******/
  734. SET ANSI_NULLS ON
  735. GO
  736. SET QUOTED_IDENTIFIER ON
  737. GO
  738. SET ANSI_PADDING ON
  739. GO
  740. CREATE TABLE [dbo].[dresshiredata](
  741. [id] [varchar](50) NULL,
  742. [no] [varchar](50) NULL,
  743. [name] [varchar](50) NULL,
  744. [count] [varchar](50) NULL,
  745. [isreturn] [varchar](50) NULL,
  746. [returndate] [varchar](50) NULL,
  747. [clerk] [varchar](50) NULL,
  748. [hireorsale] [varchar](50) NULL,
  749. [date1] [varchar](50) NULL,
  750. [date2] [varchar](50) NULL
  751. ) ON [PRIMARY]
  752. GO
  753. SET ANSI_PADDING OFF
  754. GO
  755. /****** Object: Table [dbo].[dressinfo] Script Date: 2014/10/30 11:22:13 ******/
  756. SET ANSI_NULLS ON
  757. GO
  758. SET QUOTED_IDENTIFIER ON
  759. GO
  760. SET ANSI_PADDING ON
  761. GO
  762. CREATE TABLE [dbo].[dressinfo](
  763. [type] [varchar](50) NULL,
  764. [no] [varchar](50) NULL,
  765. [name] [varchar](50) NULL,
  766. [count] [varchar](50) NULL,
  767. [price1] [varchar](50) NULL,
  768. [price2] [varchar](50) NULL,
  769. [date] [varchar](50) NULL,
  770. [hirecount] [varchar](50) NULL,
  771. [salecount] [varchar](50) NULL,
  772. [balance] [varchar](50) NULL,
  773. [remark] [varchar](max) NULL,
  774. [dressarea] [varchar](50) NULL,
  775. [washcount] [varchar](50) NULL,
  776. [type2] [nvarchar](50) NULL
  777. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  778. GO
  779. SET ANSI_PADDING OFF
  780. GO
  781. /****** Object: Table [dbo].[dresstype] Script Date: 2014/10/30 11:22:13 ******/
  782. SET ANSI_NULLS ON
  783. GO
  784. SET QUOTED_IDENTIFIER ON
  785. GO
  786. SET ANSI_PADDING ON
  787. GO
  788. CREATE TABLE [dbo].[dresstype](
  789. [name] [varchar](50) NULL,
  790. [autoid] [int] IDENTITY(1,1) NOT NULL,
  791. [type] [nvarchar](50) NULL
  792. ) ON [PRIMARY]
  793. GO
  794. SET ANSI_PADDING OFF
  795. GO
  796. /****** Object: Table [dbo].[employeephonerecord] Script Date: 2014/10/30 11:22:13 ******/
  797. SET ANSI_NULLS ON
  798. GO
  799. SET QUOTED_IDENTIFIER ON
  800. GO
  801. SET ANSI_PADDING ON
  802. GO
  803. CREATE TABLE [dbo].[employeephonerecord](
  804. [name] [varchar](50) NULL,
  805. [datetime] [varchar](50) NULL
  806. ) ON [PRIMARY]
  807. GO
  808. SET ANSI_PADDING OFF
  809. GO
  810. /****** Object: Table [dbo].[employeephonerecordout] Script Date: 2014/10/30 11:22:13 ******/
  811. SET ANSI_NULLS ON
  812. GO
  813. SET QUOTED_IDENTIFIER ON
  814. GO
  815. SET ANSI_PADDING ON
  816. GO
  817. CREATE TABLE [dbo].[employeephonerecordout](
  818. [name] [varchar](50) NULL,
  819. [phoneno] [varchar](50) NULL,
  820. [datetime] [varchar](50) NULL
  821. ) ON [PRIMARY]
  822. GO
  823. SET ANSI_PADDING OFF
  824. GO
  825. /****** Object: Table [dbo].[expendtype] Script Date: 2014/10/30 11:22:13 ******/
  826. SET ANSI_NULLS ON
  827. GO
  828. SET QUOTED_IDENTIFIER ON
  829. GO
  830. SET ANSI_PADDING ON
  831. GO
  832. CREATE TABLE [dbo].[expendtype](
  833. [name] [varchar](50) NULL,
  834. [id] [int] IDENTITY(1,1) NOT NULL
  835. ) ON [PRIMARY]
  836. GO
  837. SET ANSI_PADDING OFF
  838. GO
  839. /****** Object: Table [dbo].[files] Script Date: 2014/10/30 11:22:13 ******/
  840. SET ANSI_NULLS ON
  841. GO
  842. SET QUOTED_IDENTIFIER ON
  843. GO
  844. SET ANSI_PADDING ON
  845. GO
  846. CREATE TABLE [dbo].[files](
  847. [FileNO] [int] IDENTITY(1,1) NOT NULL,
  848. [PartNO] [int] NULL,
  849. [FileType] [int] NULL,
  850. [FilesName] [varchar](256) NULL,
  851. [FileRemark] [varchar](256) NULL,
  852. [Width] [int] NULL,
  853. [Height] [int] NULL,
  854. [AddTime] [datetime] NULL,
  855. [OrderNO] [int] NULL,
  856. [Del] [tinyint] NULL,
  857. CONSTRAINT [PK_FILES] PRIMARY KEY CLUSTERED
  858. (
  859. [FileNO] ASC
  860. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  861. ) ON [PRIMARY]
  862. GO
  863. SET ANSI_PADDING OFF
  864. GO
  865. /****** Object: Table [dbo].[fixedassets] Script Date: 2014/10/30 11:22:13 ******/
  866. SET ANSI_NULLS ON
  867. GO
  868. SET QUOTED_IDENTIFIER ON
  869. GO
  870. CREATE TABLE [dbo].[fixedassets](
  871. [name] [nvarchar](50) NULL,
  872. [id] [int] IDENTITY(1,1) NOT NULL,
  873. [count] [nvarchar](50) NULL,
  874. [type] [nvarchar](50) NULL,
  875. [clerk] [nvarchar](50) NULL,
  876. [remark] [nvarchar](50) NULL,
  877. [date] [nvarchar](50) NULL,
  878. [photo] [image] NULL
  879. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  880. GO
  881. /****** Object: Table [dbo].[framesize] Script Date: 2014/10/30 11:22:13 ******/
  882. SET ANSI_NULLS ON
  883. GO
  884. SET QUOTED_IDENTIFIER ON
  885. GO
  886. SET ANSI_PADDING ON
  887. GO
  888. CREATE TABLE [dbo].[framesize](
  889. [name] [varchar](50) NULL,
  890. [width] [varchar](50) NULL,
  891. [height] [varchar](50) NULL
  892. ) ON [PRIMARY]
  893. GO
  894. SET ANSI_PADDING OFF
  895. GO
  896. /****** Object: Table [dbo].[gongyingshang] Script Date: 2014/10/30 11:22:13 ******/
  897. SET ANSI_NULLS ON
  898. GO
  899. SET QUOTED_IDENTIFIER ON
  900. GO
  901. SET ANSI_PADDING ON
  902. GO
  903. CREATE TABLE [dbo].[gongyingshang](
  904. [gyid] [varchar](20) NULL,
  905. [gyname] [varchar](30) NULL,
  906. [addr] [varchar](30) NULL,
  907. [tel] [varchar](20) NULL,
  908. [fax] [varchar](8) NULL,
  909. [netaddress] [varchar](20) NULL,
  910. [bz] [varchar](max) NULL
  911. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  912. GO
  913. SET ANSI_PADDING OFF
  914. GO
  915. /****** Object: Table [dbo].[growthtx] Script Date: 2014/10/30 11:22:13 ******/
  916. SET ANSI_NULLS ON
  917. GO
  918. SET QUOTED_IDENTIFIER ON
  919. GO
  920. SET ANSI_PADDING ON
  921. GO
  922. CREATE TABLE [dbo].[growthtx](
  923. [name] [varchar](50) NULL,
  924. [id] [int] IDENTITY(1,1) NOT NULL
  925. ) ON [PRIMARY]
  926. GO
  927. SET ANSI_PADDING OFF
  928. GO
  929. /****** Object: Table [dbo].[gudingfeiyong] Script Date: 2014/10/30 11:22:13 ******/
  930. SET ANSI_NULLS ON
  931. GO
  932. SET QUOTED_IDENTIFIER ON
  933. GO
  934. SET ANSI_PADDING ON
  935. GO
  936. CREATE TABLE [dbo].[gudingfeiyong](
  937. [id] [int] IDENTITY(1,1) NOT NULL,
  938. [name] [varchar](50) NULL,
  939. [money] [varchar](50) NULL,
  940. [dat] [varchar](50) NULL,
  941. [bz] [varchar](max) NULL,
  942. [renyuan1] [varchar](50) NULL,
  943. [renyuan2] [varchar](50) NULL,
  944. [financecheck] [nvarchar](10) NULL,
  945. [time] [nvarchar](50) NULL,
  946. [photo] [image] NULL,
  947. [financecheck2] [nvarchar](50) NULL,
  948. [financecheck3] [nvarchar](50) NULL,
  949. [hasphoto] [nvarchar](50) NULL
  950. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  951. GO
  952. SET ANSI_PADDING OFF
  953. GO
  954. /****** Object: Table [dbo].[gudingfeiyongxiangmu] Script Date: 2014/10/30 11:22:13 ******/
  955. SET ANSI_NULLS ON
  956. GO
  957. SET QUOTED_IDENTIFIER ON
  958. GO
  959. SET ANSI_PADDING ON
  960. GO
  961. CREATE TABLE [dbo].[gudingfeiyongxiangmu](
  962. [id] [int] IDENTITY(1,1) NOT NULL,
  963. [xiangmu] [varchar](20) NULL,
  964. PRIMARY KEY CLUSTERED
  965. (
  966. [id] ASC
  967. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  968. ) ON [PRIMARY]
  969. GO
  970. SET ANSI_PADDING OFF
  971. GO
  972. /****** Object: Table [dbo].[historydb] Script Date: 2014/10/30 11:22:13 ******/
  973. SET ANSI_NULLS ON
  974. GO
  975. SET QUOTED_IDENTIFIER ON
  976. GO
  977. SET ANSI_PADDING ON
  978. GO
  979. CREATE TABLE [dbo].[historydb](
  980. [year] [varchar](50) NULL
  981. ) ON [PRIMARY]
  982. GO
  983. SET ANSI_PADDING OFF
  984. GO
  985. /****** Object: Table [dbo].[hospital] Script Date: 2014/10/30 11:22:13 ******/
  986. SET ANSI_NULLS ON
  987. GO
  988. SET QUOTED_IDENTIFIER ON
  989. GO
  990. CREATE TABLE [dbo].[hospital](
  991. [name] [nvarchar](50) NULL,
  992. [id] [int] IDENTITY(1,1) NOT NULL
  993. ) ON [PRIMARY]
  994. GO
  995. /****** Object: Table [dbo].[hospitalclient] Script Date: 2014/10/30 11:22:13 ******/
  996. SET ANSI_NULLS ON
  997. GO
  998. SET QUOTED_IDENTIFIER ON
  999. GO
  1000. CREATE TABLE [dbo].[hospitalclient](
  1001. [id] [nvarchar](50) NULL,
  1002. [checkmsg] [nvarchar](50) NULL,
  1003. [name1] [nvarchar](50) NULL,
  1004. [name2] [nvarchar](50) NULL,
  1005. [food] [nvarchar](50) NULL,
  1006. [sex] [nvarchar](50) NULL,
  1007. [check1] [nvarchar](50) NULL,
  1008. [birthdaytype] [nvarchar](50) NULL,
  1009. [birthday] [nvarchar](50) NULL,
  1010. [pregnancydays] [nvarchar](50) NULL,
  1011. [qq] [nvarchar](50) NULL,
  1012. [date1] [nvarchar](50) NULL,
  1013. [from] [nvarchar](50) NULL,
  1014. [clerk] [nvarchar](50) NULL,
  1015. [type] [nvarchar](50) NULL,
  1016. [hospital] [nvarchar](50) NULL,
  1017. [remark] [nvarchar](50) NULL,
  1018. [phone1] [nvarchar](50) NULL,
  1019. [phone2] [nvarchar](50) NULL,
  1020. [phone3] [nvarchar](50) NULL,
  1021. [phone4] [nvarchar](50) NULL,
  1022. [phone5] [nvarchar](50) NULL,
  1023. [addr1] [nvarchar](50) NULL,
  1024. [addr2] [nvarchar](50) NULL,
  1025. [addr3] [nvarchar](50) NULL,
  1026. [post1] [nvarchar](50) NULL,
  1027. [post2] [nvarchar](50) NULL,
  1028. [post3] [nvarchar](50) NULL,
  1029. [pinyin1] [nvarchar](50) NULL,
  1030. [pinyin2] [nvarchar](50) NULL,
  1031. [inputdate] [nvarchar](50) NULL,
  1032. [inputer] [nvarchar](50) NULL
  1033. ) ON [PRIMARY]
  1034. GO
  1035. /****** Object: Table [dbo].[hospitalclientcontactreg] Script Date: 2014/10/30 11:22:13 ******/
  1036. SET ANSI_NULLS ON
  1037. GO
  1038. SET QUOTED_IDENTIFIER ON
  1039. GO
  1040. CREATE TABLE [dbo].[hospitalclientcontactreg](
  1041. [id] [nvarchar](50) NULL,
  1042. [autoid] [int] IDENTITY(1,1) NOT NULL,
  1043. [businesstype] [nvarchar](50) NULL,
  1044. [businessintention] [nvarchar](50) NULL,
  1045. [bookingdate] [nvarchar](50) NULL,
  1046. [desaddr] [nvarchar](50) NULL,
  1047. [businessremark] [nvarchar](50) NULL,
  1048. [alarmcheck] [nvarchar](50) NULL,
  1049. [alarmdate] [nvarchar](50) NULL
  1050. ) ON [PRIMARY]
  1051. GO
  1052. /****** Object: Table [dbo].[insidemsg] Script Date: 2014/10/30 11:22:13 ******/
  1053. SET ANSI_NULLS ON
  1054. GO
  1055. SET QUOTED_IDENTIFIER ON
  1056. GO
  1057. SET ANSI_PADDING ON
  1058. GO
  1059. CREATE TABLE [dbo].[insidemsg](
  1060. [timestamp] [varchar](50) NULL,
  1061. [content] [varchar](max) NULL,
  1062. [sender] [varchar](50) NULL,
  1063. [receiver] [varchar](max) NULL,
  1064. [receiver2] [varchar](max) NULL,
  1065. [file] [nvarchar](max) NULL,
  1066. [files] [image] NULL
  1067. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1068. GO
  1069. SET ANSI_PADDING OFF
  1070. GO
  1071. /****** Object: Table [dbo].[jd] Script Date: 2014/10/30 11:22:13 ******/
  1072. SET ANSI_NULLS ON
  1073. GO
  1074. SET QUOTED_IDENTIFIER ON
  1075. GO
  1076. SET ANSI_PADDING ON
  1077. GO
  1078. CREATE TABLE [dbo].[jd](
  1079. [name] [varchar](50) NULL,
  1080. [id] [int] IDENTITY(1,1) NOT NULL
  1081. ) ON [PRIMARY]
  1082. GO
  1083. SET ANSI_PADDING OFF
  1084. GO
  1085. /****** Object: Table [dbo].[jdd] Script Date: 2014/10/30 11:22:13 ******/
  1086. SET ANSI_NULLS ON
  1087. GO
  1088. SET QUOTED_IDENTIFIER ON
  1089. GO
  1090. SET ANSI_PADDING ON
  1091. GO
  1092. CREATE TABLE [dbo].[jdd](
  1093. [name] [varchar](50) NULL,
  1094. [id] [int] IDENTITY(1,1) NOT NULL
  1095. ) ON [PRIMARY]
  1096. GO
  1097. SET ANSI_PADDING OFF
  1098. GO
  1099. /****** Object: Table [dbo].[log] Script Date: 2014/10/30 11:22:13 ******/
  1100. SET ANSI_NULLS ON
  1101. GO
  1102. SET QUOTED_IDENTIFIER ON
  1103. GO
  1104. SET ANSI_PADDING ON
  1105. GO
  1106. CREATE TABLE [dbo].[log](
  1107. [date] [varchar](50) NULL,
  1108. [datetime] [varchar](50) NULL,
  1109. [content] [varchar](max) NULL
  1110. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1111. GO
  1112. SET ANSI_PADDING OFF
  1113. GO
  1114. /****** Object: Table [dbo].[loginsign] Script Date: 2014/10/30 11:22:13 ******/
  1115. SET ANSI_NULLS ON
  1116. GO
  1117. SET QUOTED_IDENTIFIER ON
  1118. GO
  1119. SET ANSI_PADDING ON
  1120. GO
  1121. CREATE TABLE [dbo].[loginsign](
  1122. [name] [varchar](50) NULL,
  1123. [date] [varchar](50) NULL,
  1124. [type] [varchar](50) NULL,
  1125. [cleck] [varchar](50) NULL,
  1126. [id] [int] IDENTITY(1,1) NOT NULL
  1127. ) ON [PRIMARY]
  1128. GO
  1129. SET ANSI_PADDING OFF
  1130. GO
  1131. /****** Object: Table [dbo].[loninbanset] Script Date: 2014/10/30 11:22:13 ******/
  1132. SET ANSI_NULLS ON
  1133. GO
  1134. SET QUOTED_IDENTIFIER ON
  1135. GO
  1136. SET ANSI_PADDING ON
  1137. GO
  1138. CREATE TABLE [dbo].[loninbanset](
  1139. [weekname] [varchar](50) NULL,
  1140. [name] [varchar](50) NULL,
  1141. [banname1] [varchar](50) NULL,
  1142. [banname2] [varchar](50) NULL,
  1143. [banname3] [varchar](50) NULL,
  1144. [banname4] [varchar](50) NULL,
  1145. [banname5] [varchar](50) NULL,
  1146. [banname6] [varchar](50) NULL,
  1147. [banname7] [varchar](50) NULL
  1148. ) ON [PRIMARY]
  1149. GO
  1150. SET ANSI_PADDING OFF
  1151. GO
  1152. /****** Object: Table [dbo].[lonindata] Script Date: 2014/10/30 11:22:13 ******/
  1153. SET ANSI_NULLS ON
  1154. GO
  1155. SET QUOTED_IDENTIFIER ON
  1156. GO
  1157. SET ANSI_PADDING ON
  1158. GO
  1159. CREATE TABLE [dbo].[lonindata](
  1160. [no] [varchar](50) NULL,
  1161. [datetime] [varchar](50) NULL
  1162. ) ON [PRIMARY]
  1163. GO
  1164. SET ANSI_PADDING OFF
  1165. GO
  1166. /****** Object: Table [dbo].[lonintimeset] Script Date: 2014/10/30 11:22:13 ******/
  1167. SET ANSI_NULLS ON
  1168. GO
  1169. SET QUOTED_IDENTIFIER ON
  1170. GO
  1171. SET ANSI_PADDING ON
  1172. GO
  1173. CREATE TABLE [dbo].[lonintimeset](
  1174. [name] [varchar](50) NULL,
  1175. [time1] [varchar](50) NULL,
  1176. [time2] [varchar](50) NULL,
  1177. [time3] [varchar](50) NULL,
  1178. [time4] [varchar](50) NULL
  1179. ) ON [PRIMARY]
  1180. GO
  1181. SET ANSI_PADDING OFF
  1182. GO
  1183. /****** Object: Table [dbo].[membercard2] Script Date: 2014/10/30 11:22:13 ******/
  1184. SET ANSI_NULLS ON
  1185. GO
  1186. SET QUOTED_IDENTIFIER ON
  1187. GO
  1188. SET ANSI_PADDING ON
  1189. GO
  1190. CREATE TABLE [dbo].[membercard2](
  1191. [memberno] [varchar](50) NULL,
  1192. [card2no] [varchar](50) NULL,
  1193. [date] [varchar](50) NULL
  1194. ) ON [PRIMARY]
  1195. GO
  1196. SET ANSI_PADDING OFF
  1197. GO
  1198. /****** Object: Table [dbo].[membercard2blue] Script Date: 2014/10/30 11:22:13 ******/
  1199. SET ANSI_NULLS ON
  1200. GO
  1201. SET QUOTED_IDENTIFIER ON
  1202. GO
  1203. SET ANSI_PADDING ON
  1204. GO
  1205. CREATE TABLE [dbo].[membercard2blue](
  1206. [memberno] [varchar](50) NULL,
  1207. [card2no] [varchar](50) NULL,
  1208. [date] [varchar](50) NULL
  1209. ) ON [PRIMARY]
  1210. GO
  1211. SET ANSI_PADDING OFF
  1212. GO
  1213. /****** Object: Table [dbo].[membercard3] Script Date: 2014/10/30 11:22:13 ******/
  1214. SET ANSI_NULLS ON
  1215. GO
  1216. SET QUOTED_IDENTIFIER ON
  1217. GO
  1218. SET ANSI_PADDING ON
  1219. GO
  1220. CREATE TABLE [dbo].[membercard3](
  1221. [memberno] [varchar](50) NULL,
  1222. [card2no] [varchar](50) NULL,
  1223. [date] [varchar](50) NULL,
  1224. [balance] [varchar](50) NULL,
  1225. [psw] [nvarchar](50) NULL
  1226. ) ON [PRIMARY]
  1227. GO
  1228. SET ANSI_PADDING OFF
  1229. GO
  1230. /****** Object: Table [dbo].[membercard3childusereg] Script Date: 2014/10/30 11:22:13 ******/
  1231. SET ANSI_NULLS ON
  1232. GO
  1233. SET QUOTED_IDENTIFIER ON
  1234. GO
  1235. SET ANSI_PADDING ON
  1236. GO
  1237. CREATE TABLE [dbo].[membercard3childusereg](
  1238. [memberno] [varchar](50) NULL,
  1239. [dindanid] [varchar](50) NULL,
  1240. [money] [varchar](50) NULL,
  1241. [date] [varchar](50) NULL,
  1242. [id] [int] IDENTITY(1,1) NOT NULL
  1243. ) ON [PRIMARY]
  1244. GO
  1245. SET ANSI_PADDING OFF
  1246. GO
  1247. /****** Object: Table [dbo].[membercard3usereg] Script Date: 2014/10/30 11:22:13 ******/
  1248. SET ANSI_NULLS ON
  1249. GO
  1250. SET QUOTED_IDENTIFIER ON
  1251. GO
  1252. SET ANSI_PADDING ON
  1253. GO
  1254. CREATE TABLE [dbo].[membercard3usereg](
  1255. [memberno] [varchar](50) NULL,
  1256. [dindanid] [varchar](50) NULL,
  1257. [money] [varchar](50) NULL,
  1258. [date] [varchar](50) NULL,
  1259. [id] [int] IDENTITY(1,1) NOT NULL
  1260. ) ON [PRIMARY]
  1261. GO
  1262. SET ANSI_PADDING OFF
  1263. GO
  1264. /****** Object: Table [dbo].[membermanage] Script Date: 2014/10/30 11:22:13 ******/
  1265. SET ANSI_NULLS ON
  1266. GO
  1267. SET QUOTED_IDENTIFIER ON
  1268. GO
  1269. SET ANSI_PADDING ON
  1270. GO
  1271. CREATE TABLE [dbo].[membermanage](
  1272. [memberno] [varchar](50) NULL,
  1273. [name] [varchar](50) NULL,
  1274. [date] [varchar](50) NULL,
  1275. [money] [varchar](50) NULL,
  1276. [autoid] [int] IDENTITY(1,1) NOT NULL,
  1277. [sex] [varchar](50) NULL,
  1278. [phone] [varchar](50) NULL,
  1279. [qq] [varchar](50) NULL,
  1280. [addr] [varchar](50) NULL,
  1281. [occupation] [varchar](50) NULL,
  1282. [birthday] [varchar](50) NULL,
  1283. [pinyin] [varchar](50) NULL,
  1284. [balance] [varchar](50) NULL,
  1285. [sendmark1] [varchar](max) NULL,
  1286. [sendmark2] [varchar](max) NULL,
  1287. [psw] [nvarchar](50) NULL,
  1288. [cardtype] [nvarchar](50) NULL,
  1289. [check1] [nvarchar](50) NULL,
  1290. [discount] [nvarchar](50) NULL
  1291. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1292. GO
  1293. SET ANSI_PADDING OFF
  1294. GO
  1295. /****** Object: Table [dbo].[membermanageblue] Script Date: 2014/10/30 11:22:13 ******/
  1296. SET ANSI_NULLS ON
  1297. GO
  1298. SET QUOTED_IDENTIFIER ON
  1299. GO
  1300. SET ANSI_PADDING ON
  1301. GO
  1302. CREATE TABLE [dbo].[membermanageblue](
  1303. [memberno] [varchar](50) NULL,
  1304. [name] [varchar](50) NULL,
  1305. [sex] [varchar](50) NULL,
  1306. [phone] [varchar](50) NULL,
  1307. [qq] [varchar](50) NULL,
  1308. [addr] [varchar](50) NULL,
  1309. [occupation] [varchar](50) NULL,
  1310. [birthday] [varchar](50) NULL,
  1311. [pinyin] [varchar](50) NULL,
  1312. [date] [varchar](50) NULL,
  1313. [money] [varchar](50) NULL,
  1314. [jiage] [varchar](50) NULL,
  1315. [autoid] [int] IDENTITY(1,1) NOT NULL,
  1316. [money2] [varchar](50) NULL,
  1317. [money3] [varchar](50) NULL
  1318. ) ON [PRIMARY]
  1319. GO
  1320. SET ANSI_PADDING OFF
  1321. GO
  1322. /****** Object: Table [dbo].[memberreg] Script Date: 2014/10/30 11:22:13 ******/
  1323. SET ANSI_NULLS ON
  1324. GO
  1325. SET QUOTED_IDENTIFIER ON
  1326. GO
  1327. SET ANSI_PADDING ON
  1328. GO
  1329. CREATE TABLE [dbo].[memberreg](
  1330. [memberno] [varchar](50) NULL,
  1331. [dindanid] [varchar](50) NULL,
  1332. [money] [varchar](50) NULL,
  1333. [id] [int] IDENTITY(1,1) NOT NULL,
  1334. [date] [varchar](50) NULL,
  1335. [card2no] [varchar](50) NULL,
  1336. [type] [varchar](50) NULL,
  1337. [taoxi] [varchar](50) NULL,
  1338. [date2] [varchar](50) NULL
  1339. ) ON [PRIMARY]
  1340. GO
  1341. SET ANSI_PADDING OFF
  1342. GO
  1343. /****** Object: Table [dbo].[memberreg2] Script Date: 2014/10/30 11:22:13 ******/
  1344. SET ANSI_NULLS ON
  1345. GO
  1346. SET QUOTED_IDENTIFIER ON
  1347. GO
  1348. SET ANSI_PADDING ON
  1349. GO
  1350. CREATE TABLE [dbo].[memberreg2](
  1351. [memberno] [varchar](50) NULL,
  1352. [dindanid] [varchar](50) NULL,
  1353. [money] [varchar](50) NULL,
  1354. [point] [varchar](50) NULL,
  1355. [date] [varchar](50) NULL,
  1356. [id] [int] IDENTITY(1,1) NOT NULL
  1357. ) ON [PRIMARY]
  1358. GO
  1359. SET ANSI_PADDING OFF
  1360. GO
  1361. /****** Object: Table [dbo].[memberreg2blue] Script Date: 2014/10/30 11:22:13 ******/
  1362. SET ANSI_NULLS ON
  1363. GO
  1364. SET QUOTED_IDENTIFIER ON
  1365. GO
  1366. SET ANSI_PADDING ON
  1367. GO
  1368. CREATE TABLE [dbo].[memberreg2blue](
  1369. [memberno] [varchar](50) NULL,
  1370. [money] [varchar](50) NULL,
  1371. [date] [varchar](50) NULL
  1372. ) ON [PRIMARY]
  1373. GO
  1374. SET ANSI_PADDING OFF
  1375. GO
  1376. /****** Object: Table [dbo].[memberreg3] Script Date: 2014/10/30 11:22:13 ******/
  1377. SET ANSI_NULLS ON
  1378. GO
  1379. SET QUOTED_IDENTIFIER ON
  1380. GO
  1381. SET ANSI_PADDING ON
  1382. GO
  1383. CREATE TABLE [dbo].[memberreg3](
  1384. [memberno] [varchar](50) NULL,
  1385. [money] [varchar](50) NULL,
  1386. [date] [varchar](50) NULL,
  1387. [clerk] [varchar](50) NULL,
  1388. [id] [int] IDENTITY(1,1) NOT NULL,
  1389. [financecheck] [nvarchar](50) NULL,
  1390. [moneytype] [nvarchar](50) NULL,
  1391. [time] [nvarchar](50) NULL,
  1392. [money2] [nvarchar](50) NULL
  1393. ) ON [PRIMARY]
  1394. GO
  1395. SET ANSI_PADDING OFF
  1396. GO
  1397. /****** Object: Table [dbo].[memberreg4] Script Date: 2014/10/30 11:22:13 ******/
  1398. SET ANSI_NULLS ON
  1399. GO
  1400. SET QUOTED_IDENTIFIER ON
  1401. GO
  1402. SET ANSI_PADDING ON
  1403. GO
  1404. CREATE TABLE [dbo].[memberreg4](
  1405. [memberno] [varchar](50) NULL,
  1406. [money] [varchar](50) NULL,
  1407. [card2no] [varchar](50) NULL,
  1408. [date] [varchar](50) NULL,
  1409. [clerk] [varchar](50) NULL,
  1410. [id] [int] IDENTITY(1,1) NOT NULL
  1411. ) ON [PRIMARY]
  1412. GO
  1413. SET ANSI_PADDING OFF
  1414. GO
  1415. /****** Object: Table [dbo].[memberregblue] Script Date: 2014/10/30 11:22:13 ******/
  1416. SET ANSI_NULLS ON
  1417. GO
  1418. SET QUOTED_IDENTIFIER ON
  1419. GO
  1420. SET ANSI_PADDING ON
  1421. GO
  1422. CREATE TABLE [dbo].[memberregblue](
  1423. [memberno] [varchar](50) NULL,
  1424. [dindanid] [varchar](50) NULL,
  1425. [money] [varchar](50) NULL,
  1426. [date] [varchar](50) NULL,
  1427. [card2no] [varchar](50) NULL,
  1428. [type] [varchar](50) NULL,
  1429. [taoxi] [varchar](50) NULL,
  1430. [date2] [varchar](50) NULL,
  1431. [id] [int] IDENTITY(1,1) NOT NULL
  1432. ) ON [PRIMARY]
  1433. GO
  1434. SET ANSI_PADDING OFF
  1435. GO
  1436. /****** Object: Table [dbo].[misscallrecord] Script Date: 2014/10/30 11:22:13 ******/
  1437. SET ANSI_NULLS ON
  1438. GO
  1439. SET QUOTED_IDENTIFIER ON
  1440. GO
  1441. SET ANSI_PADDING ON
  1442. GO
  1443. CREATE TABLE [dbo].[misscallrecord](
  1444. [phone] [varchar](50) NULL,
  1445. [datetime] [varchar](50) NULL,
  1446. [name] [varchar](50) NULL,
  1447. [type] [varchar](50) NULL
  1448. ) ON [PRIMARY]
  1449. GO
  1450. SET ANSI_PADDING OFF
  1451. GO
  1452. /****** Object: Table [dbo].[msgcode] Script Date: 2014/10/30 11:22:13 ******/
  1453. SET ANSI_NULLS ON
  1454. GO
  1455. SET QUOTED_IDENTIFIER ON
  1456. GO
  1457. CREATE TABLE [dbo].[msgcode](
  1458. [type] [nvarchar](50) NULL,
  1459. [code] [nvarchar](50) NULL,
  1460. [good] [nvarchar](50) NULL,
  1461. [medium] [nvarchar](50) NULL,
  1462. [bad] [nvarchar](50) NULL
  1463. ) ON [PRIMARY]
  1464. GO
  1465. /****** Object: Table [dbo].[msgtemp] Script Date: 2014/10/30 11:22:13 ******/
  1466. SET ANSI_NULLS ON
  1467. GO
  1468. SET QUOTED_IDENTIFIER ON
  1469. GO
  1470. SET ANSI_PADDING ON
  1471. GO
  1472. CREATE TABLE [dbo].[msgtemp](
  1473. [title] [varchar](50) NULL,
  1474. [content] [varchar](max) NULL
  1475. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1476. GO
  1477. SET ANSI_PADDING OFF
  1478. GO
  1479. /****** Object: Table [dbo].[msgtemp2] Script Date: 2014/10/30 11:22:13 ******/
  1480. SET ANSI_NULLS ON
  1481. GO
  1482. SET QUOTED_IDENTIFIER ON
  1483. GO
  1484. SET ANSI_PADDING ON
  1485. GO
  1486. CREATE TABLE [dbo].[msgtemp2](
  1487. [name] [varchar](50) NULL,
  1488. [content1] [varchar](max) NULL,
  1489. [content2] [varchar](max) NULL,
  1490. [check1] [varchar](50) NULL,
  1491. [check2] [varchar](50) NULL,
  1492. [point] [varchar](50) NULL
  1493. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1494. GO
  1495. SET ANSI_PADDING OFF
  1496. GO
  1497. /****** Object: Table [dbo].[mywork] Script Date: 2014/10/30 11:22:13 ******/
  1498. SET ANSI_NULLS ON
  1499. GO
  1500. SET QUOTED_IDENTIFIER ON
  1501. GO
  1502. SET ANSI_PADDING ON
  1503. GO
  1504. CREATE TABLE [dbo].[mywork](
  1505. [id] [varchar](50) NULL,
  1506. [name] [varchar](50) NULL,
  1507. [datetime] [varchar](50) NULL,
  1508. [count1] [varchar](50) NULL,
  1509. [count2] [varchar](50) NULL,
  1510. [count3] [varchar](50) NULL,
  1511. [type] [varchar](50) NULL,
  1512. [inputdate] [varchar](50) NULL,
  1513. [inputren] [varchar](50) NULL
  1514. ) ON [PRIMARY]
  1515. GO
  1516. SET ANSI_PADDING OFF
  1517. GO
  1518. /****** Object: Table [dbo].[Part] Script Date: 2014/10/30 11:22:13 ******/
  1519. SET ANSI_NULLS ON
  1520. GO
  1521. SET QUOTED_IDENTIFIER ON
  1522. GO
  1523. SET ANSI_PADDING ON
  1524. GO
  1525. CREATE TABLE [dbo].[Part](
  1526. [PartNO] [int] IDENTITY(1,1) NOT NULL,
  1527. [ParentNO] [int] NULL,
  1528. [PartName] [varchar](255) NULL,
  1529. [AddDate] [datetime] NULL,
  1530. [Del] [tinyint] NULL,
  1531. [Disable] [tinyint] NULL,
  1532. CONSTRAINT [PK_PART] PRIMARY KEY CLUSTERED
  1533. (
  1534. [PartNO] ASC
  1535. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  1536. ) ON [PRIMARY]
  1537. GO
  1538. SET ANSI_PADDING OFF
  1539. GO
  1540. /****** Object: Table [dbo].[path] Script Date: 2014/10/30 11:22:13 ******/
  1541. SET ANSI_NULLS ON
  1542. GO
  1543. SET QUOTED_IDENTIFIER ON
  1544. GO
  1545. SET ANSI_PADDING ON
  1546. GO
  1547. CREATE TABLE [dbo].[path](
  1548. [path1] [varchar](50) NULL,
  1549. [path2] [varchar](50) NULL,
  1550. [path3] [varchar](50) NULL,
  1551. [path4] [varchar](50) NULL,
  1552. [path5] [varchar](50) NULL
  1553. ) ON [PRIMARY]
  1554. GO
  1555. SET ANSI_PADDING OFF
  1556. GO
  1557. /****** Object: Table [dbo].[phonerecord] Script Date: 2014/10/30 11:22:13 ******/
  1558. SET ANSI_NULLS ON
  1559. GO
  1560. SET QUOTED_IDENTIFIER ON
  1561. GO
  1562. SET ANSI_PADDING ON
  1563. GO
  1564. CREATE TABLE [dbo].[phonerecord](
  1565. [id] [varchar](50) NULL,
  1566. [phoneno] [varchar](50) NULL,
  1567. [datetime] [varchar](50) NULL
  1568. ) ON [PRIMARY]
  1569. GO
  1570. SET ANSI_PADDING OFF
  1571. GO
  1572. /****** Object: Table [dbo].[phonerecordout] Script Date: 2014/10/30 11:22:13 ******/
  1573. SET ANSI_NULLS ON
  1574. GO
  1575. SET QUOTED_IDENTIFIER ON
  1576. GO
  1577. SET ANSI_PADDING ON
  1578. GO
  1579. CREATE TABLE [dbo].[phonerecordout](
  1580. [name] [varchar](50) NULL,
  1581. [phoneno] [varchar](50) NULL,
  1582. [datetime] [varchar](50) NULL
  1583. ) ON [PRIMARY]
  1584. GO
  1585. SET ANSI_PADDING OFF
  1586. GO
  1587. /****** Object: Table [dbo].[photoprint] Script Date: 2014/10/30 11:22:13 ******/
  1588. SET ANSI_NULLS ON
  1589. GO
  1590. SET QUOTED_IDENTIFIER ON
  1591. GO
  1592. SET ANSI_PADDING ON
  1593. GO
  1594. CREATE TABLE [dbo].[photoprint](
  1595. [id] [varchar](50) NULL,
  1596. [name] [varchar](100) NULL,
  1597. [count] [varchar](50) NULL,
  1598. [status1] [varchar](50) NULL,
  1599. [status2] [varchar](50) NULL,
  1600. [time1] [varchar](50) NULL,
  1601. [time2] [varchar](50) NULL,
  1602. [area] [varchar](50) NULL,
  1603. [statusOfReWork] [nvarchar](50) NULL,
  1604. [timeOfReWork] [nvarchar](50) NULL
  1605. ) ON [PRIMARY]
  1606. GO
  1607. SET ANSI_PADDING OFF
  1608. GO
  1609. /****** Object: Table [dbo].[renyuan] Script Date: 2014/10/30 11:22:13 ******/
  1610. SET ANSI_NULLS ON
  1611. GO
  1612. SET QUOTED_IDENTIFIER ON
  1613. GO
  1614. SET ANSI_PADDING ON
  1615. GO
  1616. CREATE TABLE [dbo].[renyuan](
  1617. [bm] [varchar](50) NULL,
  1618. [id] [varchar](50) NULL,
  1619. [name] [varchar](50) NULL,
  1620. [sex] [varchar](50) NULL,
  1621. [phone] [varchar](50) NULL,
  1622. [address] [varchar](50) NULL,
  1623. [bz] [varchar](max) NULL,
  1624. [base] [varchar](50) NULL,
  1625. [rate1] [varchar](50) NULL,
  1626. [rate2] [varchar](50) NULL,
  1627. [bz2] [varchar](max) NULL,
  1628. [address2] [varchar](50) NULL,
  1629. [idno] [varchar](50) NULL,
  1630. [marry] [varchar](50) NULL,
  1631. [dimission] [varchar](50) NULL,
  1632. [rate3] [varchar](50) NULL,
  1633. [rate4] [varchar](50) NULL,
  1634. [rate5] [varchar](50) NULL,
  1635. [loginno1] [varchar](50) NULL,
  1636. [loginno2] [varchar](50) NULL,
  1637. [photo] [image] NULL,
  1638. [level] [nvarchar](50) NULL
  1639. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1640. GO
  1641. SET ANSI_PADDING OFF
  1642. GO
  1643. /****** Object: Table [dbo].[rewards] Script Date: 2014/10/30 11:22:13 ******/
  1644. SET ANSI_NULLS ON
  1645. GO
  1646. SET QUOTED_IDENTIFIER ON
  1647. GO
  1648. SET ANSI_PADDING ON
  1649. GO
  1650. CREATE TABLE [dbo].[rewards](
  1651. [name] [varchar](50) NULL,
  1652. [type] [varchar](50) NULL,
  1653. [money] [varchar](50) NULL,
  1654. [execute] [varchar](50) NULL,
  1655. [date] [varchar](50) NULL,
  1656. [renyuan] [varchar](50) NULL,
  1657. [bz] [varchar](max) NULL,
  1658. [id] [int] IDENTITY(1,1) NOT NULL
  1659. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1660. GO
  1661. SET ANSI_PADDING OFF
  1662. GO
  1663. /****** Object: Table [dbo].[salary] Script Date: 2014/10/30 11:22:13 ******/
  1664. SET ANSI_NULLS ON
  1665. GO
  1666. SET QUOTED_IDENTIFIER ON
  1667. GO
  1668. SET ANSI_PADDING ON
  1669. GO
  1670. CREATE TABLE [dbo].[salary](
  1671. [name] [varchar](50) NULL,
  1672. [year] [varchar](50) NULL,
  1673. [month] [varchar](50) NULL,
  1674. [money] [varchar](50) NULL
  1675. ) ON [PRIMARY]
  1676. GO
  1677. SET ANSI_PADDING OFF
  1678. GO
  1679. /****** Object: Table [dbo].[sale2type] Script Date: 2014/10/30 11:22:13 ******/
  1680. SET ANSI_NULLS ON
  1681. GO
  1682. SET QUOTED_IDENTIFIER ON
  1683. GO
  1684. CREATE TABLE [dbo].[sale2type](
  1685. [name] [nvarchar](50) NULL,
  1686. [id] [int] IDENTITY(1,1) NOT NULL
  1687. ) ON [PRIMARY]
  1688. GO
  1689. /****** Object: Table [dbo].[sendreg] Script Date: 2014/10/30 11:22:13 ******/
  1690. SET ANSI_NULLS ON
  1691. GO
  1692. SET QUOTED_IDENTIFIER ON
  1693. GO
  1694. SET ANSI_PADDING ON
  1695. GO
  1696. CREATE TABLE [dbo].[sendreg](
  1697. [timestamp] [varchar](50) NULL,
  1698. [msgcount] [varchar](50) NULL,
  1699. [log] [varchar](50) NULL,
  1700. [status] [varchar](50) NULL,
  1701. [issended] [varchar](50) NULL,
  1702. [isautosend] [varchar](50) NULL,
  1703. [phones] [varchar](max) NULL,
  1704. [content] [varchar](max) NULL,
  1705. [autoid] [int] IDENTITY(1,1) NOT NULL,
  1706. [ren] [varchar](50) NULL
  1707. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1708. GO
  1709. SET ANSI_PADDING OFF
  1710. GO
  1711. /****** Object: Table [dbo].[sendreg2] Script Date: 2014/10/30 11:22:13 ******/
  1712. SET ANSI_NULLS ON
  1713. GO
  1714. SET QUOTED_IDENTIFIER ON
  1715. GO
  1716. SET ANSI_PADDING ON
  1717. GO
  1718. CREATE TABLE [dbo].[sendreg2](
  1719. [price] [varchar](50) NULL,
  1720. [yytime] [varchar](50) NULL,
  1721. [client] [varchar](50) NULL,
  1722. [type] [varchar](50) NULL,
  1723. [date] [varchar](50) NULL,
  1724. [phones] [varchar](max) NULL,
  1725. [content] [varchar](max) NULL,
  1726. [autoid] [int] IDENTITY(1,1) NOT NULL,
  1727. [ren] [varchar](50) NULL
  1728. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1729. GO
  1730. SET ANSI_PADDING OFF
  1731. GO
  1732. /****** Object: Table [dbo].[sendregcard] Script Date: 2014/10/30 11:22:13 ******/
  1733. SET ANSI_NULLS ON
  1734. GO
  1735. SET QUOTED_IDENTIFIER ON
  1736. GO
  1737. SET ANSI_PADDING ON
  1738. GO
  1739. CREATE TABLE [dbo].[sendregcard](
  1740. [timestamp] [varchar](50) NULL,
  1741. [phones] [varchar](50) NULL
  1742. ) ON [PRIMARY]
  1743. GO
  1744. SET ANSI_PADDING OFF
  1745. GO
  1746. /****** Object: Table [dbo].[sendregdelay] Script Date: 2014/10/30 11:22:13 ******/
  1747. SET ANSI_NULLS ON
  1748. GO
  1749. SET QUOTED_IDENTIFIER ON
  1750. GO
  1751. CREATE TABLE [dbo].[sendregdelay](
  1752. [timestamp] [nvarchar](50) NULL,
  1753. [msgcount] [nvarchar](50) NULL,
  1754. [log] [nvarchar](50) NULL,
  1755. [status] [nvarchar](50) NULL,
  1756. [issended] [nvarchar](50) NULL,
  1757. [isautosend] [nvarchar](50) NULL,
  1758. [phones] [nvarchar](max) NULL,
  1759. [content] [nvarchar](max) NULL,
  1760. [autoid] [int] IDENTITY(1,1) NOT NULL,
  1761. [ren] [nvarchar](50) NULL
  1762. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1763. GO
  1764. /****** Object: Table [dbo].[sendregreceive] Script Date: 2014/10/30 11:22:13 ******/
  1765. SET ANSI_NULLS ON
  1766. GO
  1767. SET QUOTED_IDENTIFIER ON
  1768. GO
  1769. SET ANSI_PADDING ON
  1770. GO
  1771. CREATE TABLE [dbo].[sendregreceive](
  1772. [timestamp] [varchar](50) NULL,
  1773. [phones] [varchar](200) NULL,
  1774. [content] [varchar](200) NULL,
  1775. [status] [varchar](200) NULL,
  1776. [getid] [nvarchar](50) NULL,
  1777. [id] [int] IDENTITY(1,1) NOT NULL
  1778. ) ON [PRIMARY]
  1779. GO
  1780. SET ANSI_PADDING OFF
  1781. GO
  1782. /****** Object: Table [dbo].[shangpin] Script Date: 2014/10/30 11:22:13 ******/
  1783. SET ANSI_NULLS ON
  1784. GO
  1785. SET QUOTED_IDENTIFIER ON
  1786. GO
  1787. SET ANSI_PADDING ON
  1788. GO
  1789. CREATE TABLE [dbo].[shangpin](
  1790. [spid] [nvarchar](50) NOT NULL,
  1791. [spname] [varchar](50) NULL,
  1792. [spdanwei] [varchar](50) NULL,
  1793. [spjiaga1] [varchar](50) NULL,
  1794. [spjiage2] [varchar](50) NULL,
  1795. [splb] [varchar](50) NULL,
  1796. [spbz] [varchar](max) NULL,
  1797. [spjiage3] [varchar](50) NULL,
  1798. [hide] [nvarchar](10) NULL,
  1799. CONSTRAINT [PK_shangpin] PRIMARY KEY CLUSTERED
  1800. (
  1801. [spid] ASC
  1802. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  1803. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1804. GO
  1805. SET ANSI_PADDING OFF
  1806. GO
  1807. /****** Object: Table [dbo].[shangpinlb] Script Date: 2014/10/30 11:22:13 ******/
  1808. SET ANSI_NULLS ON
  1809. GO
  1810. SET QUOTED_IDENTIFIER ON
  1811. GO
  1812. SET ANSI_PADDING ON
  1813. GO
  1814. CREATE TABLE [dbo].[shangpinlb](
  1815. [id] [int] IDENTITY(1,1) NOT NULL,
  1816. [name] [varchar](50) NULL,
  1817. PRIMARY KEY CLUSTERED
  1818. (
  1819. [id] ASC
  1820. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  1821. ) ON [PRIMARY]
  1822. GO
  1823. SET ANSI_PADDING OFF
  1824. GO
  1825. /****** Object: Table [dbo].[singleincome] Script Date: 2014/10/30 11:22:13 ******/
  1826. SET ANSI_NULLS ON
  1827. GO
  1828. SET QUOTED_IDENTIFIER ON
  1829. GO
  1830. SET ANSI_PADDING ON
  1831. GO
  1832. CREATE TABLE [dbo].[singleincome](
  1833. [id] [int] IDENTITY(1,1) NOT NULL,
  1834. [name] [varchar](50) NULL,
  1835. [money] [varchar](50) NULL,
  1836. [dat] [varchar](50) NULL,
  1837. [bz] [varchar](max) NULL,
  1838. [renyuan1] [varchar](50) NULL,
  1839. [renyuan2] [varchar](50) NULL,
  1840. [renyuan3] [varchar](50) NULL,
  1841. [sale2type] [varchar](50) NULL,
  1842. [paytype] [varchar](50) NULL,
  1843. [phone] [nvarchar](50) NULL,
  1844. [payed] [nvarchar](50) NULL,
  1845. [balance] [nvarchar](50) NULL,
  1846. [pinyin] [nvarchar](50) NULL,
  1847. [financecheck] [nvarchar](10) NULL,
  1848. [count] [nvarchar](50) NULL,
  1849. [time] [nvarchar](50) NULL
  1850. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1851. GO
  1852. SET ANSI_PADDING OFF
  1853. GO
  1854. /****** Object: Table [dbo].[singleincomemoney] Script Date: 2014/10/30 11:22:13 ******/
  1855. SET ANSI_NULLS ON
  1856. GO
  1857. SET QUOTED_IDENTIFIER ON
  1858. GO
  1859. CREATE TABLE [dbo].[singleincomemoney](
  1860. [id] [nvarchar](50) NULL,
  1861. [money] [nvarchar](50) NULL,
  1862. [date] [nvarchar](50) NULL,
  1863. [clerk] [nvarchar](50) NULL,
  1864. [paytype] [nvarchar](50) NULL,
  1865. [autoid] [int] IDENTITY(1,1) NOT NULL,
  1866. [financecheck] [nvarchar](10) NULL,
  1867. [time] [nvarchar](50) NULL,
  1868. [jdd] [nvarchar](50) NULL
  1869. ) ON [PRIMARY]
  1870. GO
  1871. /****** Object: Table [dbo].[storeinfo] Script Date: 2014/10/30 11:22:13 ******/
  1872. SET ANSI_NULLS ON
  1873. GO
  1874. SET QUOTED_IDENTIFIER ON
  1875. GO
  1876. SET ANSI_PADDING ON
  1877. GO
  1878. CREATE TABLE [dbo].[storeinfo](
  1879. [id] [varchar](50) NULL,
  1880. [type] [varchar](50) NULL,
  1881. [name] [varchar](50) NULL,
  1882. [count] [varchar](50) NULL,
  1883. [date] [varchar](50) NULL,
  1884. [clerk] [varchar](50) NULL,
  1885. [remark] [varchar](max) NULL
  1886. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1887. GO
  1888. SET ANSI_PADDING OFF
  1889. GO
  1890. /****** Object: Table [dbo].[storeinfo2] Script Date: 2014/10/30 11:22:13 ******/
  1891. SET ANSI_NULLS ON
  1892. GO
  1893. SET QUOTED_IDENTIFIER ON
  1894. GO
  1895. SET ANSI_PADDING ON
  1896. GO
  1897. CREATE TABLE [dbo].[storeinfo2](
  1898. [id] [varchar](50) NULL,
  1899. [type] [varchar](50) NULL,
  1900. [name] [varchar](50) NULL,
  1901. [count] [varchar](50) NULL,
  1902. [date] [varchar](50) NULL,
  1903. [clerk] [varchar](50) NULL,
  1904. [remark] [varchar](max) NULL
  1905. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  1906. GO
  1907. SET ANSI_PADDING OFF
  1908. GO
  1909. /****** Object: Table [dbo].[taoxi] Script Date: 2014/10/30 11:22:13 ******/
  1910. SET ANSI_NULLS ON
  1911. GO
  1912. SET QUOTED_IDENTIFIER ON
  1913. GO
  1914. SET ANSI_PADDING ON
  1915. GO
  1916. CREATE TABLE [dbo].[taoxi](
  1917. [taoxiid] [nvarchar](50) NULL,
  1918. [taoxiname] [varchar](20) NULL,
  1919. [taoxijiage] [varchar](9) NULL,
  1920. [zs] [nvarchar](50) NULL,
  1921. [type] [nvarchar](50) NULL,
  1922. [show] [nvarchar](50) NULL
  1923. ) ON [PRIMARY]
  1924. GO
  1925. SET ANSI_PADDING OFF
  1926. GO
  1927. /****** Object: Table [dbo].[taoxifg] Script Date: 2014/10/30 11:22:13 ******/
  1928. SET ANSI_NULLS ON
  1929. GO
  1930. SET QUOTED_IDENTIFIER ON
  1931. GO
  1932. SET ANSI_PADDING ON
  1933. GO
  1934. CREATE TABLE [dbo].[taoxifg](
  1935. [name] [varchar](50) NULL
  1936. ) ON [PRIMARY]
  1937. GO
  1938. SET ANSI_PADDING OFF
  1939. GO
  1940. /****** Object: Table [dbo].[taoxishangpin1] Script Date: 2014/10/30 11:22:13 ******/
  1941. SET ANSI_NULLS ON
  1942. GO
  1943. SET QUOTED_IDENTIFIER ON
  1944. GO
  1945. SET ANSI_PADDING ON
  1946. GO
  1947. CREATE TABLE [dbo].[taoxishangpin1](
  1948. [id] [int] IDENTITY(1,1) NOT NULL,
  1949. [taoxiid] [varchar](20) NULL,
  1950. [spid1] [varchar](15) NULL,
  1951. [shuliang] [varchar](15) NULL,
  1952. PRIMARY KEY CLUSTERED
  1953. (
  1954. [id] ASC
  1955. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  1956. ) ON [PRIMARY]
  1957. GO
  1958. SET ANSI_PADDING OFF
  1959. GO
  1960. /****** Object: Table [dbo].[taoxishangpin2] Script Date: 2014/10/30 11:22:13 ******/
  1961. SET ANSI_NULLS ON
  1962. GO
  1963. SET QUOTED_IDENTIFIER ON
  1964. GO
  1965. SET ANSI_PADDING ON
  1966. GO
  1967. CREATE TABLE [dbo].[taoxishangpin2](
  1968. [id] [int] IDENTITY(1,1) NOT NULL,
  1969. [taoxiid] [varchar](15) NULL,
  1970. [spid2] [varchar](15) NULL,
  1971. [shuliang] [varchar](15) NULL,
  1972. PRIMARY KEY CLUSTERED
  1973. (
  1974. [id] ASC
  1975. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  1976. ) ON [PRIMARY]
  1977. GO
  1978. SET ANSI_PADDING OFF
  1979. GO
  1980. /****** Object: Table [dbo].[todaytake] Script Date: 2014/10/30 11:22:13 ******/
  1981. SET ANSI_NULLS ON
  1982. GO
  1983. SET QUOTED_IDENTIFIER ON
  1984. GO
  1985. SET ANSI_PADDING ON
  1986. GO
  1987. CREATE TABLE [dbo].[todaytake](
  1988. [name] [varchar](50) NULL,
  1989. [phone] [varchar](50) NULL,
  1990. [date] [varchar](50) NULL,
  1991. [time] [varchar](50) NULL,
  1992. [type] [varchar](50) NULL,
  1993. [price] [varchar](50) NULL,
  1994. [waiter1] [varchar](50) NULL,
  1995. [waiter2] [varchar](50) NULL,
  1996. [receptionist] [varchar](50) NULL,
  1997. [arrearage] [varchar](50) NULL,
  1998. [clerk] [varchar](50) NULL,
  1999. [remark] [varchar](max) NULL,
  2000. [timestamp] [varchar](50) NULL,
  2001. [content] [varchar](50) NULL,
  2002. [mode] [varchar](50) NULL,
  2003. [arrive] [varchar](50) NULL,
  2004. [id] [varchar](50) NULL
  2005. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  2006. GO
  2007. SET ANSI_PADDING OFF
  2008. GO
  2009. /****** Object: Table [dbo].[txlb] Script Date: 2014/10/30 11:22:13 ******/
  2010. SET ANSI_NULLS ON
  2011. GO
  2012. SET QUOTED_IDENTIFIER ON
  2013. GO
  2014. SET ANSI_PADDING ON
  2015. GO
  2016. CREATE TABLE [dbo].[txlb](
  2017. [name] [varchar](50) NULL,
  2018. [id] [int] IDENTITY(1,1) NOT NULL
  2019. ) ON [PRIMARY]
  2020. GO
  2021. SET ANSI_PADDING OFF
  2022. GO
  2023. /****** Object: Table [dbo].[txlb2] Script Date: 2014/10/30 11:22:13 ******/
  2024. SET ANSI_NULLS ON
  2025. GO
  2026. SET QUOTED_IDENTIFIER ON
  2027. GO
  2028. CREATE TABLE [dbo].[txlb2](
  2029. [name] [nvarchar](50) NULL,
  2030. [id] [int] IDENTITY(1,1) NOT NULL
  2031. ) ON [PRIMARY]
  2032. GO
  2033. /****** Object: Table [dbo].[unknownphonerecord] Script Date: 2014/10/30 11:22:13 ******/
  2034. SET ANSI_NULLS ON
  2035. GO
  2036. SET QUOTED_IDENTIFIER ON
  2037. GO
  2038. SET ANSI_PADDING ON
  2039. GO
  2040. CREATE TABLE [dbo].[unknownphonerecord](
  2041. [phone] [varchar](50) NULL,
  2042. [datetime] [varchar](50) NULL
  2043. ) ON [PRIMARY]
  2044. GO
  2045. SET ANSI_PADDING OFF
  2046. GO
  2047. /****** Object: Table [dbo].[unknownphonerecordout] Script Date: 2014/10/30 11:22:13 ******/
  2048. SET ANSI_NULLS ON
  2049. GO
  2050. SET QUOTED_IDENTIFIER ON
  2051. GO
  2052. SET ANSI_PADDING ON
  2053. GO
  2054. CREATE TABLE [dbo].[unknownphonerecordout](
  2055. [phoneno] [varchar](50) NULL,
  2056. [datetime] [varchar](50) NULL
  2057. ) ON [PRIMARY]
  2058. GO
  2059. SET ANSI_PADDING OFF
  2060. GO
  2061. /****** Object: Table [dbo].[update] Script Date: 2014/10/30 11:22:13 ******/
  2062. SET ANSI_NULLS ON
  2063. GO
  2064. SET QUOTED_IDENTIFIER ON
  2065. GO
  2066. CREATE TABLE [dbo].[update](
  2067. [data] [image] NULL,
  2068. [data2] [image] NULL,
  2069. [data3] [image] NULL,
  2070. [data4] [image] NULL,
  2071. [data5] [image] NULL,
  2072. [data6] [image] NULL,
  2073. [data7] [image] NULL,
  2074. [ocx] [image] NULL
  2075. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  2076. GO
  2077. /****** Object: Table [dbo].[user] Script Date: 2014/10/30 11:22:13 ******/
  2078. SET ANSI_NULLS ON
  2079. GO
  2080. SET QUOTED_IDENTIFIER ON
  2081. GO
  2082. SET ANSI_PADDING ON
  2083. GO
  2084. CREATE TABLE [dbo].[user](
  2085. [account] [varchar](50) NULL,
  2086. [name] [varchar](50) NULL,
  2087. [psw] [varchar](50) NULL,
  2088. [rights] [nvarchar](80) NULL,
  2089. [rate1] [varchar](50) NULL,
  2090. [rate2] [varchar](50) NULL,
  2091. [base] [varchar](50) NULL,
  2092. [bz] [varchar](max) NULL,
  2093. [rights2] [varchar](max) NULL,
  2094. [discount] [varchar](50) NULL,
  2095. [discount2] [varchar](50) NULL
  2096. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  2097. GO
  2098. SET ANSI_PADDING OFF
  2099. GO
  2100. /****** Object: Table [dbo].[version] Script Date: 2014/10/30 11:22:13 ******/
  2101. SET ANSI_NULLS ON
  2102. GO
  2103. SET QUOTED_IDENTIFIER ON
  2104. GO
  2105. SET ANSI_PADDING ON
  2106. GO
  2107. CREATE TABLE [dbo].[version](
  2108. [version] [varchar](50) NULL,
  2109. [curdate] [varchar](50) NULL,
  2110. [check1] [varchar](50) NULL,
  2111. [check2] [varchar](50) NULL,
  2112. [check3] [varchar](50) NULL,
  2113. [check4] [varchar](50) NULL,
  2114. [edit1] [varchar](50) NULL,
  2115. [edit2] [varchar](50) NULL,
  2116. [edit3] [varchar](50) NULL,
  2117. [edit4] [varchar](50) NULL,
  2118. [info1] [varchar](50) NULL,
  2119. [info2] [varchar](50) NULL,
  2120. [info3] [varchar](50) NULL,
  2121. [info4] [varchar](50) NULL,
  2122. [info5] [varchar](50) NULL,
  2123. [bak1] [varchar](50) NULL,
  2124. [bak2] [varchar](50) NULL,
  2125. [bak3] [varchar](50) NULL,
  2126. [bak4] [varchar](50) NULL,
  2127. [bak5] [varchar](50) NULL,
  2128. [bak6] [varchar](50) NULL,
  2129. [baktime] [varchar](50) NULL,
  2130. [bakserver1] [varchar](50) NULL,
  2131. [bakserver2] [varchar](50) NULL,
  2132. [bakserver3] [varchar](50) NULL,
  2133. [bakserver4] [varchar](50) NULL,
  2134. [bakserver5] [varchar](50) NULL,
  2135. [msgaccount] [varchar](50) NULL,
  2136. [msgpsw] [varchar](50) NULL,
  2137. [msgused] [varchar](50) NULL,
  2138. [msgbalance] [varchar](50) NULL,
  2139. [msgcheck1] [varchar](50) NULL,
  2140. [msgcheck2] [varchar](50) NULL,
  2141. [msgdays1] [varchar](50) NULL,
  2142. [msgdays2] [varchar](50) NULL,
  2143. [msgcontent1] [nvarchar](max) NULL,
  2144. [msgcontent2] [nvarchar](max) NULL,
  2145. [remarks] [varchar](max) NULL,
  2146. [rate] [varchar](50) NULL,
  2147. [msgcheck3] [varchar](50) NULL,
  2148. [msgcontent3] [nvarchar](max) NULL,
  2149. [salarycheck1] [varchar](50) NULL,
  2150. [salarycheck2] [varchar](50) NULL,
  2151. [msgcheck4] [varchar](50) NULL,
  2152. [msgtime] [varchar](50) NULL,
  2153. [msgphones] [varchar](max) NULL,
  2154. [info6] [varchar](50) NULL,
  2155. [msgcompanyname] [varchar](50) NULL,
  2156. [msgphones2] [varchar](max) NULL,
  2157. [msgsendtype] [varchar](50) NULL,
  2158. [msgcontent5] [varchar](max) NULL,
  2159. [msgcheck5] [varchar](50) NULL,
  2160. [msgcontent6] [varchar](max) NULL,
  2161. [msgcheck6] [varchar](50) NULL,
  2162. [cardlength] [varchar](50) NULL,
  2163. [salarycheck3] [varchar](50) NULL,
  2164. [salarycheck4] [varchar](50) NULL,
  2165. [setcheck1] [varchar](50) NULL,
  2166. [setcheck2] [varchar](50) NULL,
  2167. [setcheck3] [varchar](50) NULL,
  2168. [setcheck4] [varchar](50) NULL,
  2169. [setcheck5] [varchar](50) NULL,
  2170. [printer1] [varchar](50) NULL,
  2171. [printer2] [varchar](50) NULL,
  2172. [printer3] [varchar](50) NULL,
  2173. [setprintstyle] [varchar](50) NULL,
  2174. [uploadcheck1] [varchar](50) NULL,
  2175. [uploadcheck2] [varchar](50) NULL,
  2176. [uploadcheck3] [varchar](50) NULL,
  2177. [uploadcheck4] [varchar](50) NULL,
  2178. [bak11] [varchar](50) NULL,
  2179. [bak22] [varchar](50) NULL,
  2180. [bak33] [varchar](50) NULL,
  2181. [bak44] [varchar](50) NULL,
  2182. [setprintstyle2] [varchar](50) NULL,
  2183. [setcheck10] [varchar](50) NULL,
  2184. [ziptype1] [varchar](50) NULL,
  2185. [ziptype2] [varchar](50) NULL,
  2186. [ziptype3] [varchar](50) NULL,
  2187. [ziptype4] [varchar](50) NULL,
  2188. [salaryset] [varchar](max) NULL,
  2189. [limitcount1] [varchar](50) NULL,
  2190. [limitcount2] [varchar](50) NULL,
  2191. [limitcount3] [varchar](50) NULL,
  2192. [rate2] [varchar](50) NULL,
  2193. [setcheck11] [varchar](50) NULL,
  2194. [setcheck12] [varchar](50) NULL,
  2195. [setprintstyle3] [varchar](50) NULL,
  2196. [msgcheck7] [varchar](50) NULL,
  2197. [msgcheck8] [varchar](50) NULL,
  2198. [msgcheck9] [varchar](50) NULL,
  2199. [msgcheck10] [varchar](50) NULL,
  2200. [msgcontent8] [varchar](max) NULL,
  2201. [msgcontent9] [varchar](max) NULL,
  2202. [msgcontent10] [varchar](max) NULL,
  2203. [setcheck13] [varchar](50) NULL,
  2204. [time1] [varchar](50) NULL,
  2205. [time2] [varchar](50) NULL,
  2206. [time3] [varchar](50) NULL,
  2207. [setcheck14] [varchar](50) NULL,
  2208. [setcheck15] [varchar](50) NULL,
  2209. [msgcheck11] [varchar](50) NULL,
  2210. [msgcheck12] [varchar](50) NULL,
  2211. [msgcheck13] [varchar](50) NULL,
  2212. [msgcheck14] [varchar](50) NULL,
  2213. [msgcontent11] [varchar](max) NULL,
  2214. [msgcontent12] [varchar](max) NULL,
  2215. [msgcontent13] [varchar](max) NULL,
  2216. [msgcontent14] [varchar](max) NULL,
  2217. [setcheck6] [varchar](50) NULL,
  2218. [msgcheck15] [varchar](50) NULL,
  2219. [msgcontent15] [varchar](max) NULL,
  2220. [logdays] [varchar](50) NULL,
  2221. [setcheck17] [varchar](50) NULL,
  2222. [setcheck18] [varchar](50) NULL,
  2223. [setcheck19] [varchar](50) NULL,
  2224. [uploadrule] [varchar](max) NULL,
  2225. [setcheck20] [varchar](50) NULL,
  2226. [cardnum] [nvarchar](50) NULL,
  2227. [cardscale] [nvarchar](500) NULL,
  2228. [info7] [nvarchar](120) NULL,
  2229. [setcheck21] [nvarchar](50) NULL,
  2230. [msgcheck16] [nvarchar](50) NULL,
  2231. [hospitalmsgcheck1] [nvarchar](50) NULL,
  2232. [hospitalmsgcheck2] [nvarchar](50) NULL,
  2233. [serialno] [nvarchar](50) NULL,
  2234. [serialno2] [nvarchar](50) NULL,
  2235. [msgcheck17] [nvarchar](50) NULL,
  2236. [msgcontent17] [nvarchar](max) NULL,
  2237. [setcheck22] [nvarchar](50) NULL,
  2238. [setcheck23] [nvarchar](50) NULL,
  2239. [info8] [nvarchar](120) NULL,
  2240. [setcheck24] [nvarchar](120) NULL,
  2241. [outtime] [nvarchar](120) NULL,
  2242. [info9] [nvarchar](120) NULL,
  2243. [reverse1] [nvarchar](50) NULL,
  2244. [reverse2] [nvarchar](50) NULL,
  2245. [reverse3] [nvarchar](50) NULL,
  2246. [reverse4] [nvarchar](50) NULL,
  2247. [reverse5] [nvarchar](50) NULL,
  2248. [photo] [image] NULL,
  2249. [delcheck1] [nvarchar](50) NULL,
  2250. [delcheck2] [nvarchar](50) NULL,
  2251. [delcheck3] [nvarchar](50) NULL,
  2252. [delcheck4] [nvarchar](50) NULL,
  2253. [deledit1] [nvarchar](50) NULL,
  2254. [deledit2] [nvarchar](50) NULL,
  2255. [deledit3] [nvarchar](50) NULL,
  2256. [deledit4] [nvarchar](50) NULL,
  2257. [alarmdays1] [nvarchar](50) NULL,
  2258. [alarmdays2] [nvarchar](50) NULL,
  2259. [alarmdays3] [nvarchar](50) NULL,
  2260. [alarmdays4] [nvarchar](50) NULL,
  2261. [alarmdays5] [nvarchar](50) NULL,
  2262. [alarmdays6] [nvarchar](50) NULL
  2263. ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  2264. GO
  2265. SET ANSI_PADDING OFF
  2266. GO
  2267. /****** Object: Table [dbo].[workrate] Script Date: 2014/10/30 11:22:13 ******/
  2268. SET ANSI_NULLS ON
  2269. GO
  2270. SET QUOTED_IDENTIFIER ON
  2271. GO
  2272. SET ANSI_PADDING ON
  2273. GO
  2274. CREATE TABLE [dbo].[workrate](
  2275. [type] [varchar](50) NULL,
  2276. [data1] [varchar](50) NULL,
  2277. [data2] [varchar](50) NULL,
  2278. [data3] [varchar](50) NULL,
  2279. [data4] [varchar](50) NULL,
  2280. [data5] [varchar](50) NULL,
  2281. [data6] [varchar](50) NULL
  2282. ) ON [PRIMARY]
  2283. GO
  2284. SET ANSI_PADDING OFF
  2285. GO
  2286. /****** Object: Table [dbo].[worktype] Script Date: 2014/10/30 11:22:13 ******/
  2287. SET ANSI_NULLS ON
  2288. GO
  2289. SET QUOTED_IDENTIFIER ON
  2290. GO
  2291. SET ANSI_PADDING ON
  2292. GO
  2293. CREATE TABLE [dbo].[worktype](
  2294. [name] [varchar](50) NULL,
  2295. [id] [int] IDENTITY(1,1) NOT NULL
  2296. ) ON [PRIMARY]
  2297. GO
  2298. SET ANSI_PADDING OFF
  2299. GO
  2300. /****** Object: Table [dbo].[xtcs] Script Date: 2014/10/30 11:22:13 ******/
  2301. SET ANSI_NULLS ON
  2302. GO
  2303. SET QUOTED_IDENTIFIER ON
  2304. GO
  2305. SET ANSI_PADDING ON
  2306. GO
  2307. CREATE TABLE [dbo].[xtcs](
  2308. [csm] [varchar](256) NULL,
  2309. [csz] [varchar](256) NULL,
  2310. [bz] [varchar](256) NULL
  2311. ) ON [PRIMARY]
  2312. GO
  2313. SET ANSI_PADDING OFF
  2314. GO
  2315. /****** Object: View [dbo].[accountview] Script Date: 2014/10/30 11:22:13 ******/
  2316. SET ANSI_NULLS ON
  2317. GO
  2318. SET QUOTED_IDENTIFIER ON
  2319. GO
  2320. create view [dbo].[accountview] as select dbo.[user].account, dbo.[user].name, dbo.[user].psw, dbo.[user].rights, dbo.[user].rate1, dbo.[user].rate2,dbo.[user].base, dbo.[user].bz, dbo.[user].rights2,dbo.[user].discount, dbo.[user].discount2, dbo.renyuan.dimission, dbo.renyuan.[level],dbo.renyuan.bm from dbo.[user] LEFT OUTER JOIN dbo.renyuan ON dbo.[user].name = dbo.renyuan.name
  2321. GO
  2322. /****** Object: View [dbo].[alarmview] Script Date: 2014/10/30 11:22:13 ******/
  2323. SET ANSI_NULLS ON
  2324. GO
  2325. SET QUOTED_IDENTIFIER ON
  2326. GO
  2327. create view [dbo].[alarmview] as select dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2,dbo.dindan.ren,dbo.dindan.time1,dindan.time2,dindan.time4,dbo.dindan.status,dbo.dindan.status2,dbo.dindan.status8,dbo.dindan.phone1,dbo.dindan.phone2,dbo.dindan.pinyin1,dbo.dindan.pinyin2,(SELECT count(*) FROM dbo.dindansp WHERE (kind<>'2' and name<>'入册' and name<>'入底' and status1 = '未完成') AND (id = dbo.dindan.id)) AS cot1,(SELECT count(*) FROM dbo.dindansp WHERE (kind<>'2' and name<>'入册' and name<>'入底' and status2 = '未取') AND (id = dbo.dindan.id)) AS cot2 FROM dbo.dindan
  2328. GO
  2329. /****** Object: View [dbo].[digitalview] Script Date: 2014/10/30 11:22:13 ******/
  2330. SET ANSI_NULLS ON
  2331. GO
  2332. SET QUOTED_IDENTIFIER ON
  2333. GO
  2334. CREATE VIEW [dbo].[digitalview] AS SELECT id, name1, name2, taoxiname, taoxijiage, waiter5, time8, waiter7, time9, waiter4, time10, status4, status6, status5, txtype, (SELECT SUM(CAST(money AS float)) AS Expr1 FROM dbo.dindanbukuan WHERE (bz = '选片二销') AND (id = dbo.dindan.id)) AS money2, (SELECT SUM(CONVERT(float, ps)) AS Expr2 FROM dbo.dindansp WHERE (id = dbo.dindan.id)) AS ps, (SELECT SUM(CONVERT(float, zs)) AS Expr3 FROM dbo.dindansp AS dindansp_1 WHERE (id = dbo.dindan.id)) AS zs FROM dbo.dindan
  2335. GO
  2336. /****** Object: View [dbo].[dindanbukuanview] Script Date: 2014/10/30 11:22:13 ******/
  2337. SET ANSI_NULLS ON
  2338. GO
  2339. SET QUOTED_IDENTIFIER ON
  2340. GO
  2341. create view [dbo].[dindanbukuanview] as select dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.txtype, dbo.dindan.taoxiname,dbo.dindanbukuan.money, dbo.dindanbukuan.date, dbo.dindanbukuan.kind, dbo.dindanbukuan.ren,dbo.dindanbukuan.bz, dbo.dindanbukuan.id,dbo.dindanbukuan.paytype from dbo.dindan INNER JOIN dbo.dindanbukuan ON dbo.dindan.id = dbo.dindanbukuan.id
  2342. GO
  2343. /****** Object: View [dbo].[dindanbukuanview2] Script Date: 2014/10/30 11:22:13 ******/
  2344. SET ANSI_NULLS ON
  2345. GO
  2346. SET QUOTED_IDENTIFIER ON
  2347. GO
  2348. create view [dbo].[dindanbukuanview2] as select dbo.dindan.name1, dbo.dindan.name2, dbo.dindanbukuan.autoid, dbo.dindanbukuan.id,dbo.dindanbukuan.money, dbo.dindanbukuan.ren, dbo.dindanbukuan.date, dbo.dindanbukuan.bz, dbo.dindanbukuan.kind,dbo.dindanbukuan.ren2, dbo.dindanbukuan.item, dbo.dindanbukuan.paytype, dbo.dindanbukuan.jdd, dbo.dindanbukuan.financecheck,dbo.dindanbukuan.discount, dbo.dindanbukuan.time from dbo.dindanbukuan INNER JOIN dbo.dindan ON dbo.dindanbukuan.id = dbo.dindan.id
  2349. GO
  2350. /****** Object: View [dbo].[dindanclient] Script Date: 2014/10/30 11:22:13 ******/
  2351. SET ANSI_NULLS ON
  2352. GO
  2353. SET QUOTED_IDENTIFIER ON
  2354. GO
  2355. create view [dbo].[dindanclient] as select dbo.dindan.id, dbo.client.id AS Expr1, dbo.client.name1, dbo.client.name2,dbo.client.phone1, dbo.client.phone2, dbo.client.birthday1, dbo.client.birthday2,dbo.client.check1, dbo.client.check2, dbo.client.check3, dbo.dindan.time3, dbo.dindan.time1,dbo.dindan.taoxiname, dbo.dindan.taoxijiage, dbo.dindan.payed4 from dbo.dindan INNER JOIN dbo.client ON dbo.dindan.id = dbo.client.id
  2356. GO
  2357. /****** Object: View [dbo].[dindanspview] Script Date: 2014/10/30 11:22:13 ******/
  2358. SET ANSI_NULLS ON
  2359. GO
  2360. SET QUOTED_IDENTIFIER ON
  2361. GO
  2362. create view [dbo].[dindanspview] as select dbo.dindan.id, dbo.dindan.name1,dbo.dindan.name2, dbo.dindan.status5,dbo.dindan.waiter4,dbo.dindan.urgent, dbo.dindan.time5, dbo.dindan.ren, dbo.dindan.phone1,dbo.dindan.phone2,dbo.dindan.pinyin1,dbo.dindan.pinyin2, dbo.dindan.taoxijiage, dbo.dindan.payed4, dbo.dindan.payed5, dbo.dindan.money1,dbo.dindan.status3,dbo.dindan.dindantype, dbo.dindansp.name, dbo.dindansp.status3 as status32,dbo.dindansp.status4, dbo.dindansp.status5 AS status52, dbo.dindansp.status6, dbo.dindansp.status1,dbo.dindansp.status2, dbo.dindansp.urgent as urgent2, dbo.dindansp.date4, dbo.dindansp.kind from dbo.dindan INNER JOIN dbo.dindansp ON dbo.dindan.id = dbo.dindansp.id
  2363. GO
  2364. /****** Object: View [dbo].[dindanspview2] Script Date: 2014/10/30 11:22:13 ******/
  2365. SET ANSI_NULLS ON
  2366. GO
  2367. SET QUOTED_IDENTIFIER ON
  2368. GO
  2369. create view [dbo].[dindanspview2] as select dbo.shangpin.splb, dbo.dindansp.id, dbo.dindansp.spid, dbo.dindansp.shuliang, dbo.dindansp.kind, dbo.dindansp.price, dbo.dindansp.name, dbo.dindansp.no,dbo.dindansp.status1, dbo.dindansp.status2, dbo.dindansp.status3, dbo.dindansp.status4,dbo.dindansp.autoid, dbo.dindansp.date1, dbo.dindansp.date2,dbo.dindansp.date3, dbo.dindansp.date4, dbo.dindansp.name1,dbo.dindansp.name2,dbo.dindansp.name3, dbo.dindansp.name4, dbo.dindansp.hqdate,dbo.dindansp.hqtime, dbo.dindansp.urgent, dbo.dindansp.taketime, dbo.dindansp.no2,dbo.dindansp.status5, dbo.dindansp.status6, dbo.dindansp.date5,dbo.dindansp.date6, dbo.dindansp.name5, dbo.dindansp.name6,dbo.dindansp.growthtxname,dbo.dindansp.ps, dbo.dindansp.zs, dbo.dindansp.ren1,dbo.dindansp.ren2 from dbo.dindansp LEFT OUTER JOIN dbo.shangpin ON dbo.dindansp.spid = dbo.shangpin.spid
  2370. GO
  2371. /****** Object: View [dbo].[dindanspview3] Script Date: 2014/10/30 11:22:13 ******/
  2372. SET ANSI_NULLS ON
  2373. GO
  2374. SET QUOTED_IDENTIFIER ON
  2375. GO
  2376. create view [dbo].[dindanspview3] as select dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.ren, dbo.dindan.taoxijiage, dbo.dindan.payed4, dbo.dindansp.name, dbo.dindansp.shuliang,dbo.dindan.time1 from dbo.dindan INNER JOIN dbo.dindansp ON dbo.dindan.id = dbo.dindansp.id
  2377. GO
  2378. /****** Object: View [dbo].[dindanspview4] Script Date: 2014/10/30 11:22:13 ******/
  2379. SET ANSI_NULLS ON
  2380. GO
  2381. SET QUOTED_IDENTIFIER ON
  2382. GO
  2383. create view [dbo].[dindanspview4] as select dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.ren, dbo.dindan.taoxijiage, dbo.dindan.payed4,dbo.dindanbukuan2.bz AS name, 1 AS shuliang,dbo.dindan.time1 from dbo.dindan INNER JOIN dbo.dindanbukuan2 ON dbo.dindan.id = dbo.dindanbukuan2.id
  2384. GO
  2385. /****** Object: View [dbo].[dindanview] Script Date: 2014/10/30 11:22:13 ******/
  2386. SET ANSI_NULLS ON
  2387. GO
  2388. SET QUOTED_IDENTIFIER ON
  2389. GO
  2390. create view [dbo].[dindanview] as select *,(SELECT (case when exists(SELECT id FROM dbo.dindansp WHERE id = dbo.dindan.id and kind<>'5' and name<>'入册' and name<>'入底' and status1<>'OK') then '未完成' else 'OK' end)) AS STA from dbo.dindan
  2391. GO
  2392. /****** Object: View [dbo].[dressview] Script Date: 2014/10/30 11:22:13 ******/
  2393. SET ANSI_NULLS ON
  2394. GO
  2395. SET QUOTED_IDENTIFIER ON
  2396. GO
  2397. create view [dbo].[dressview] as select dbo.dressinfo.no, dbo.dressinfo.name, dbo.dressinfo.count, dbo.dressinfo.salecount,dbo.dresshiredata.count AS count2, dbo.dresshiredata.isreturn,dbo.dresshiredata.hireorsale, dbo.dresshiredata.date1, dbo.dresshiredata.date2,dbo.dresshire.name AS clientname, dbo.dresshire.phone, dbo.dresshire.clerk,dbo.dresshire.date from dbo.dresshire INNER JOIN dbo.dresshiredata ON dbo.dresshire.id = dbo.dresshiredata.id RIGHT OUTER JOIN dbo.dressinfo ON dbo.dresshiredata.no = dbo.dressinfo.no
  2398. GO
  2399. /****** Object: View [dbo].[hospitalview] Script Date: 2014/10/30 11:22:13 ******/
  2400. SET ANSI_NULLS ON
  2401. GO
  2402. SET QUOTED_IDENTIFIER ON
  2403. GO
  2404. create view [dbo].[hospitalview] as select dbo.hospitalclient.id, dbo.hospitalclient.name1, dbo.hospitalclient.name2, dbo.hospitalclient.sex,'birthdaytype' = CASE hospitalclient.birthdaytype WHEN '1' THEN '预产期' ELSE '宝宝生日' END,dbo.hospitalclient.birthday,dbo.hospitalclient.[from], dbo.hospitalclient.phone1, dbo.hospitalclient.phone2, dbo.hospitalclient.qq, dbo.hospitalclient.inputdate, dbo.hospitalclient.inputer,dbo.hospitalclient.pinyin1, dbo.hospitalclient.pinyin2,dbo.hospitalclientcontactreg.businesstype, dbo.hospitalclientcontactreg.businessintention, dbo.hospitalclientcontactreg.bookingdate,dbo.hospitalclientcontactreg.desaddr, dbo.hospitalclientcontactreg.businessremark, dbo.hospitalclient.addr1, dbo.hospitalclient.addr2, dbo.hospitalclient.addr3,dbo.hospitalclient.type, dbo.hospitalclient.hospital, dbo.hospitalclient.clerk, dbo.hospitalclientcontactreg.alarmcheck,dbo.hospitalclientcontactreg.alarmdate from dbo.hospitalclient LEFT OUTER JOIN dbo.hospitalclientcontactreg ON dbo.hospitalclient.id = dbo.hospitalclientcontactreg.id
  2405. GO
  2406. /****** Object: View [dbo].[hqview] Script Date: 2014/10/30 11:22:13 ******/
  2407. SET ANSI_NULLS ON
  2408. GO
  2409. SET QUOTED_IDENTIFIER ON
  2410. GO
  2411. create view [dbo].[hqview] as select dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.phone1, dbo.dindan.phone2,dbo.dindan.time3, dbo.client.check3, dbo.dindan.ren,dbo.dindan.taoxiname, dbo.dindan.taoxijiage, dbo.dindansp.name, dbo.dindansp.hqdate,dbo.dindansp.hqtime,dbo.dindansp.ren1, dbo.dindansp.ren2, dbo.dindansp.kind,dbo.dindansp.hqstatus,dbo.dindansp.bz from dbo.dindan INNER JOIN dbo.client ON dbo.dindan.id = dbo.client.id INNER JOIN dbo.dindansp ON dbo.client.id = dbo.dindansp.id
  2412. GO
  2413. /****** Object: View [dbo].[memberview] Script Date: 2014/10/30 11:22:13 ******/
  2414. SET ANSI_NULLS ON
  2415. GO
  2416. SET QUOTED_IDENTIFIER ON
  2417. GO
  2418. create view [dbo].[memberview] as select dbo.membermanage.name, dbo.memberreg3.memberno, dbo.memberreg3.money, dbo.memberreg3.date,dbo.memberreg3.clerk, dbo.memberreg3.id, dbo.memberreg3.financecheck, dbo.memberreg3.moneytype, dbo.memberreg3.time from dbo.memberreg3 INNER JOIN dbo.membermanage ON dbo.memberreg3.memberno = dbo.membermanage.memberno
  2419. GO
  2420. /****** Object: View [dbo].[memberview2] Script Date: 2014/10/30 11:22:13 ******/
  2421. SET ANSI_NULLS ON
  2422. GO
  2423. SET QUOTED_IDENTIFIER ON
  2424. GO
  2425. create view [dbo].[memberview2] as select dbo.membermanage.memberno, dbo.membermanage.name, dbo.membermanage.date,dbo.membermanage.money, dbo.membermanage.autoid,dbo.membermanage.sex, dbo.membermanage.phone, dbo.membermanage.qq,dbo.membermanage.addr, dbo.membermanage.occupation,dbo.membermanage.birthday, dbo.membermanage.pinyin, dbo.membermanage.balance,dbo.membermanage.sendmark1, dbo.membermanage.sendmark2,dbo.membermanage.psw, dbo.membermanage.cardtype,dbo.membermanage.check1,dbo.membermanage.discount, dbo.membercard2.card2no,dbo.membercard2.date AS card2date from dbo.membermanage LEFT OUTER JOIN dbo.membercard2 ON dbo.membermanage.memberno = dbo.membercard2.memberno
  2426. GO
  2427. /****** Object: View [dbo].[memberview3] Script Date: 2014/10/30 11:22:13 ******/
  2428. SET ANSI_NULLS ON
  2429. GO
  2430. SET QUOTED_IDENTIFIER ON
  2431. GO
  2432. create view [dbo].[memberview3] as select dbo.membermanage.memberno, dbo.membermanage.name, dbo.membermanage.date,dbo.membermanage.money, dbo.membermanage.autoid,dbo.membermanage.sex, dbo.membermanage.phone, dbo.membermanage.qq,dbo.membermanage.addr, dbo.membermanage.occupation,dbo.membermanage.birthday, dbo.membermanage.pinyin, dbo.membermanage.balance,dbo.membermanage.sendmark1, dbo.membermanage.sendmark2,dbo.membermanage.psw, dbo.membermanage.cardtype,dbo.membermanage.check1, dbo.membermanage.discount, dbo.memberreg.card2no, dbo.memberreg.date2,dbo.memberreg.dindanid, dbo.memberreg.taoxi,dbo.memberreg.money AS card2money, dbo.memberreg.date as card2date, dbo.memberreg.type from dbo.membermanage LEFT OUTER JOIN dbo.memberreg ON dbo.membermanage.memberno = dbo.memberreg.memberno
  2433. GO
  2434. /****** Object: View [dbo].[msgview] Script Date: 2014/10/30 11:22:13 ******/
  2435. SET ANSI_NULLS ON
  2436. GO
  2437. SET QUOTED_IDENTIFIER ON
  2438. GO
  2439. create view [dbo].[msgview] as select dbo.sendregreceive.phones, dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2, dbo.sendregreceive.[content],dbo.sendregreceive.timestamp, dbo.dindan.time1,dbo.dindan.ren, dbo.dindan.waiter1, dbo.dindan.waiter2, dbo.dindan.waiter4,dbo.dindan.waiter5, dbo.dindan.waiter7, dbo.dindan.waiter3 from dbo.sendregreceive LEFT JOIN dbo.dindan ON dbo.sendregreceive.phones = dbo.dindan.phone1 OR dbo.sendregreceive.phones = dbo.dindan.phone2
  2440. GO
  2441. /****** Object: View [dbo].[photoprintview] Script Date: 2014/10/30 11:22:13 ******/
  2442. SET ANSI_NULLS ON
  2443. GO
  2444. SET QUOTED_IDENTIFIER ON
  2445. GO
  2446. create view [dbo].[photoprintview] AS SELECT dbo.dindan.id, dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.ren, dbo.dindan.waiter4, dbo.photoprint.name, dbo.photoprint.count, dbo.photoprint.status1, dbo.photoprint.status2, dbo.photoprint.time1, dbo.photoprint.time2, dbo.photoprint.statusOfReWork,dbo.photoprint.timeOfReWork,dbo.photoprint.area, dbo.dindan.status5, dbo.dindan.urgent, dbo.dindan.time5, dbo.dindan.phone1, dbo.dindan.phone2, dbo.dindan.pinyin1, dbo.dindan.pinyin2, dbo.dindan.status3, dbo.dindan.dindantype FROM dbo.dindan LEFT OUTER JOIN dbo.photoprint ON dbo.dindan.id = dbo.photoprint.id
  2447. GO
  2448. /****** Object: View [dbo].[qjview] Script Date: 2014/10/30 11:22:13 ******/
  2449. SET ANSI_NULLS ON
  2450. GO
  2451. SET QUOTED_IDENTIFIER ON
  2452. GO
  2453. create view [dbo].[qjview] as select dbo.dindan.id, dbo.dindan.name2, dbo.dindan.name1, dbo.dindansp.name,dbo.dindansp.shuliang, dbo.dindansp.status4, dbo.dindansp.date2, dbo.dindansp.status1,dbo.dindansp.date3, dbo.dindansp.status3 from dbo.dindan INNER JOIN dbo.dindansp ON dbo.dindan.id = dbo.dindansp.id
  2454. GO
  2455. /****** Object: View [dbo].[singleincomemoneyview] Script Date: 2014/10/30 11:22:13 ******/
  2456. SET ANSI_NULLS ON
  2457. GO
  2458. SET QUOTED_IDENTIFIER ON
  2459. GO
  2460. create view [dbo].[singleincomemoneyview] as select dbo.singleincomemoney.*, dbo.singleincome.name, dbo.singleincome.sale2type,dbo.singleincome.renyuan3, dbo.singleincome.renyuan1 from dbo.singleincomemoney INNER JOIN dbo.singleincome ON dbo.singleincomemoney.id = dbo.singleincome.id
  2461. GO
  2462. /****** Object: View [dbo].[takeview] Script Date: 2014/10/30 11:22:13 ******/
  2463. SET ANSI_NULLS ON
  2464. GO
  2465. SET QUOTED_IDENTIFIER ON
  2466. GO
  2467. create view [dbo].[takeview] as select dbo.dindan.name1, dbo.dindan.name2, dbo.dindan.ren, dbo.dindan.taoxiname, dbo.dindan.taoxijiage, dbo.dindan.phone1,dbo.dindan.phone2, dbo.dindan.curno, dbo.dindan.pinyin1,dbo.dindan.pinyin2, dbo.dindan.time3, dbo.dindan.time5, dbo.dindan.dindantype, dbo.dindanjd.id,dbo.dindanjd.name, dbo.dindanjd.date, dbo.dindanjd.time,dbo.dindanjd.waiter1, dbo.dindanjd.waiter2, dbo.dindanjd.status, dbo.dindanjd.waiter12,dbo.dindanjd.waiter22, dbo.dindanjd.bookingdate, dbo.dindanjd.dress,dbo.dindanjd.bz, dbo.dindanjd.clerk, dbo.dindanjd.inputtime, dbo.dindanjd.branch,dbo.dindan.status3, dbo.dindan.payed4, dbo.dindan.payed5, dbo.dindan.money1, dbo.client.birthday1, dbo.client.check1, dbo.client.sex from dbo.dindan INNER JOIN dbo.dindanjd ON dbo.dindan.id = dbo.dindanjd.id INNER JOIN dbo.client ON dbo.dindan.id = dbo.client.id
  2468. GO
  2469. /****** Object: View [dbo].[taoxishangpinview] Script Date: 2014/10/30 11:22:13 ******/
  2470. SET ANSI_NULLS ON
  2471. GO
  2472. SET QUOTED_IDENTIFIER ON
  2473. GO
  2474. CREATE VIEW [dbo].[taoxishangpinview]
  2475. AS
  2476. SELECT dbo.taoxishangpin1.id,dbo.taoxishangpin1.spid1,dbo.shangpin.spname, dbo.shangpin.spjiaga1, dbo.taoxishangpin1.taoxiid,dbo.taoxishangpin1.shuliang
  2477. FROM dbo.taoxi INNER JOIN
  2478. dbo.taoxishangpin1 ON dbo.taoxi.taoxiid = dbo.taoxishangpin1.taoxiid INNER JOIN
  2479. dbo.shangpin ON dbo.taoxishangpin1.spid1 = dbo.shangpin.spid
  2480. GO
  2481. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2482. CREATE NONCLUSTERED INDEX [id] ON [dbo].[bumen]
  2483. (
  2484. [id] ASC
  2485. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2486. GO
  2487. SET ANSI_PADDING ON
  2488. GO
  2489. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2490. CREATE UNIQUE NONCLUSTERED INDEX [id] ON [dbo].[client]
  2491. (
  2492. [id] ASC
  2493. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2494. GO
  2495. SET ANSI_PADDING ON
  2496. GO
  2497. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2498. CREATE UNIQUE NONCLUSTERED INDEX [id] ON [dbo].[dindan]
  2499. (
  2500. [id] ASC
  2501. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2502. GO
  2503. SET ANSI_PADDING ON
  2504. GO
  2505. /****** Object: Index [taoxiid] Script Date: 2014/10/30 11:22:13 ******/
  2506. CREATE NONCLUSTERED INDEX [taoxiid] ON [dbo].[dindan]
  2507. (
  2508. [taoxiid] ASC
  2509. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2510. GO
  2511. /****** Object: Index [autoid] Script Date: 2014/10/30 11:22:13 ******/
  2512. CREATE UNIQUE NONCLUSTERED INDEX [autoid] ON [dbo].[dindanbukuan]
  2513. (
  2514. [autoid] ASC
  2515. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2516. GO
  2517. SET ANSI_PADDING ON
  2518. GO
  2519. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2520. CREATE NONCLUSTERED INDEX [id] ON [dbo].[dindanbukuan]
  2521. (
  2522. [id] ASC
  2523. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2524. GO
  2525. /****** Object: Index [autoid] Script Date: 2014/10/30 11:22:13 ******/
  2526. CREATE UNIQUE NONCLUSTERED INDEX [autoid] ON [dbo].[dindanbukuan2]
  2527. (
  2528. [autoid] ASC
  2529. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2530. GO
  2531. SET ANSI_PADDING ON
  2532. GO
  2533. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2534. CREATE NONCLUSTERED INDEX [id] ON [dbo].[dindanbukuan2]
  2535. (
  2536. [id] ASC
  2537. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2538. GO
  2539. /****** Object: Index [autoid] Script Date: 2014/10/30 11:22:13 ******/
  2540. CREATE UNIQUE NONCLUSTERED INDEX [autoid] ON [dbo].[dindansp]
  2541. (
  2542. [autoid] ASC
  2543. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2544. GO
  2545. SET ANSI_PADDING ON
  2546. GO
  2547. /****** Object: Index [spid] Script Date: 2014/10/30 11:22:13 ******/
  2548. CREATE NONCLUSTERED INDEX [spid] ON [dbo].[dindansp]
  2549. (
  2550. [spid] ASC
  2551. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2552. GO
  2553. SET ANSI_PADDING ON
  2554. GO
  2555. /****** Object: Index [taoxiid] Script Date: 2014/10/30 11:22:13 ******/
  2556. CREATE NONCLUSTERED INDEX [taoxiid] ON [dbo].[dindansp]
  2557. (
  2558. [id] ASC
  2559. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2560. GO
  2561. SET ANSI_PADDING ON
  2562. GO
  2563. /****** Object: Index [gyid] Script Date: 2014/10/30 11:22:13 ******/
  2564. CREATE UNIQUE NONCLUSTERED INDEX [gyid] ON [dbo].[gongyingshang]
  2565. (
  2566. [gyid] ASC
  2567. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2568. GO
  2569. SET ANSI_PADDING ON
  2570. GO
  2571. /****** Object: Index [gyname] Script Date: 2014/10/30 11:22:13 ******/
  2572. CREATE UNIQUE NONCLUSTERED INDEX [gyname] ON [dbo].[gongyingshang]
  2573. (
  2574. [gyname] ASC
  2575. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2576. GO
  2577. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2578. CREATE UNIQUE NONCLUSTERED INDEX [id] ON [dbo].[gudingfeiyong]
  2579. (
  2580. [id] ASC
  2581. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2582. GO
  2583. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2584. CREATE NONCLUSTERED INDEX [id] ON [dbo].[gudingfeiyongxiangmu]
  2585. (
  2586. [id] ASC
  2587. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2588. GO
  2589. SET ANSI_PADDING ON
  2590. GO
  2591. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2592. CREATE NONCLUSTERED INDEX [id] ON [dbo].[photoprint]
  2593. (
  2594. [id] ASC
  2595. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2596. GO
  2597. SET ANSI_PADDING ON
  2598. GO
  2599. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2600. CREATE UNIQUE NONCLUSTERED INDEX [id] ON [dbo].[renyuan]
  2601. (
  2602. [id] ASC
  2603. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2604. GO
  2605. SET ANSI_PADDING ON
  2606. GO
  2607. /****** Object: Index [name] Script Date: 2014/10/30 11:22:13 ******/
  2608. CREATE UNIQUE NONCLUSTERED INDEX [name] ON [dbo].[renyuan]
  2609. (
  2610. [name] ASC
  2611. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2612. GO
  2613. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2614. CREATE NONCLUSTERED INDEX [id] ON [dbo].[shangpinlb]
  2615. (
  2616. [id] ASC
  2617. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2618. GO
  2619. SET ANSI_PADDING ON
  2620. GO
  2621. /****** Object: Index [name] Script Date: 2014/10/30 11:22:13 ******/
  2622. CREATE UNIQUE NONCLUSTERED INDEX [name] ON [dbo].[shangpinlb]
  2623. (
  2624. [name] ASC
  2625. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2626. GO
  2627. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2628. CREATE UNIQUE NONCLUSTERED INDEX [id] ON [dbo].[singleincome]
  2629. (
  2630. [id] ASC
  2631. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2632. GO
  2633. SET ANSI_PADDING ON
  2634. GO
  2635. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2636. CREATE UNIQUE NONCLUSTERED INDEX [id] ON [dbo].[taoxi]
  2637. (
  2638. [taoxiid] ASC
  2639. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2640. GO
  2641. SET ANSI_PADDING ON
  2642. GO
  2643. /****** Object: Index [PrimaryKey] Script Date: 2014/10/30 11:22:13 ******/
  2644. CREATE UNIQUE NONCLUSTERED INDEX [PrimaryKey] ON [dbo].[taoxi]
  2645. (
  2646. [taoxiid] ASC
  2647. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2648. GO
  2649. SET ANSI_PADDING ON
  2650. GO
  2651. /****** Object: Index [taoxiname] Script Date: 2014/10/30 11:22:13 ******/
  2652. CREATE UNIQUE NONCLUSTERED INDEX [taoxiname] ON [dbo].[taoxi]
  2653. (
  2654. [taoxiname] ASC
  2655. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2656. GO
  2657. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2658. CREATE NONCLUSTERED INDEX [id] ON [dbo].[taoxishangpin1]
  2659. (
  2660. [id] ASC
  2661. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2662. GO
  2663. SET ANSI_PADDING ON
  2664. GO
  2665. /****** Object: Index [spid] Script Date: 2014/10/30 11:22:13 ******/
  2666. CREATE NONCLUSTERED INDEX [spid] ON [dbo].[taoxishangpin1]
  2667. (
  2668. [spid1] ASC
  2669. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2670. GO
  2671. SET ANSI_PADDING ON
  2672. GO
  2673. /****** Object: Index [taoxiid] Script Date: 2014/10/30 11:22:13 ******/
  2674. CREATE NONCLUSTERED INDEX [taoxiid] ON [dbo].[taoxishangpin1]
  2675. (
  2676. [taoxiid] ASC
  2677. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2678. GO
  2679. /****** Object: Index [id] Script Date: 2014/10/30 11:22:13 ******/
  2680. CREATE NONCLUSTERED INDEX [id] ON [dbo].[taoxishangpin2]
  2681. (
  2682. [id] ASC
  2683. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2684. GO
  2685. SET ANSI_PADDING ON
  2686. GO
  2687. /****** Object: Index [spid] Script Date: 2014/10/30 11:22:13 ******/
  2688. CREATE NONCLUSTERED INDEX [spid] ON [dbo].[taoxishangpin2]
  2689. (
  2690. [spid2] ASC
  2691. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2692. GO
  2693. SET ANSI_PADDING ON
  2694. GO
  2695. /****** Object: Index [taoxiid] Script Date: 2014/10/30 11:22:13 ******/
  2696. CREATE NONCLUSTERED INDEX [taoxiid] ON [dbo].[taoxishangpin2]
  2697. (
  2698. [taoxiid] ASC
  2699. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2700. GO
  2701. SET ANSI_PADDING ON
  2702. GO
  2703. /****** Object: Index [account] Script Date: 2014/10/30 11:22:13 ******/
  2704. CREATE UNIQUE NONCLUSTERED INDEX [account] ON [dbo].[user]
  2705. (
  2706. [account] ASC
  2707. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  2708. GO
  2709. ALTER TABLE [dbo].[dindan] ADD DEFAULT ((0)) FOR [ImageStatus]
  2710. GO
  2711. ALTER TABLE [dbo].[files] ADD DEFAULT ((1)) FOR [FileType]
  2712. GO
  2713. ALTER TABLE [dbo].[files] ADD DEFAULT (getdate()) FOR [AddTime]
  2714. GO
  2715. ALTER TABLE [dbo].[files] ADD DEFAULT ((0)) FOR [Del]
  2716. GO
  2717. ALTER TABLE [dbo].[Part] ADD DEFAULT (getdate()) FOR [AddDate]
  2718. GO
  2719. ALTER TABLE [dbo].[Part] ADD DEFAULT ((0)) FOR [Del]
  2720. GO
  2721. ALTER TABLE [dbo].[Part] ADD DEFAULT ((1)) FOR [Disable]
  2722. GO
  2723. ALTER TABLE [dbo].[shangpin] ADD CONSTRAINT [DF_shangpin_spid] DEFAULT ('0') FOR [spid]
  2724. GO
  2725. USE [master]
  2726. GO
  2727. ALTER DATABASE [dbnull] SET READ_WRITE
  2728. GO