Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1181 lines
34 KiB

  1. CREATE TABLE UDS_pubResults (
  2. contextID uniqueidentifier NOT NULL,
  3. publisherID int NULL
  4. )
  5. ON "UDDI_STAGING"
  6. go
  7. CREATE INDEX XIE1UDS_pubResults ON UDS_pubResults
  8. (
  9. contextID
  10. )
  11. go
  12. CREATE TABLE UDO_queryTypes (
  13. queryTypeID tinyint NOT NULL,
  14. queryType nvarchar(4000) NOT NULL,
  15. CONSTRAINT XPKUDO_queryTypes
  16. PRIMARY KEY NONCLUSTERED (queryTypeID)
  17. )
  18. ON "UDDI_CORE"
  19. go
  20. CREATE TABLE UDO_contextTypes (
  21. contextTypeID tinyint NOT NULL,
  22. contextType nvarchar(4000) NOT NULL,
  23. CONSTRAINT XPKUDO_contextTypes
  24. PRIMARY KEY (contextTypeID)
  25. )
  26. ON "UDDI_CORE"
  27. go
  28. CREATE TABLE UDO_entityTypes (
  29. entityTypeID tinyint NOT NULL,
  30. entityType nvarchar(4000) NOT NULL,
  31. CONSTRAINT XPKUDO_entityTypes
  32. PRIMARY KEY (entityTypeID)
  33. )
  34. ON "UDDI_CORE"
  35. go
  36. CREATE TABLE UDO_queryLog (
  37. lastChange bigint NOT NULL,
  38. seqNo bigint IDENTITY NOT FOR REPLICATION,
  39. entityKey uniqueidentifier NULL,
  40. entityTypeID tinyint NULL,
  41. queryTypeID tinyint NULL,
  42. contextID uniqueidentifier NOT NULL,
  43. contextTypeID tinyint NULL,
  44. CONSTRAINT XPKUDO_queryLog
  45. PRIMARY KEY (lastChange, seqNo),
  46. CONSTRAINT R_1
  47. FOREIGN KEY (queryTypeID)
  48. REFERENCES UDO_queryTypes,
  49. CONSTRAINT R_135
  50. FOREIGN KEY (contextTypeID)
  51. REFERENCES UDO_contextTypes
  52. )
  53. ON "UDDI_JOURNAL"
  54. go
  55. CREATE INDEX XIF134UDO_queryLog ON UDO_queryLog
  56. (
  57. entityTypeID
  58. )
  59. go
  60. CREATE INDEX XIF135UDO_queryLog ON UDO_queryLog
  61. (
  62. contextTypeID
  63. )
  64. go
  65. CREATE INDEX XIF42UDO_queryLog ON UDO_queryLog
  66. (
  67. queryTypeID
  68. )
  69. go
  70. CREATE TABLE UDO_changeTypes (
  71. changeTypeID tinyint NOT NULL,
  72. changeType nvarchar(4000) NOT NULL,
  73. CONSTRAINT XPKUDO_changeTypes
  74. PRIMARY KEY (changeTypeID)
  75. )
  76. ON "UDDI_CORE"
  77. go
  78. CREATE TABLE UDO_replStatus (
  79. replStatusID tinyint NOT NULL,
  80. replStatus nvarchar(4000) NOT NULL,
  81. CONSTRAINT XPKUDO_replStatus
  82. PRIMARY KEY (replStatusID)
  83. )
  84. go
  85. CREATE TABLE UDO_operatorStatus (
  86. operatorStatusID tinyint NOT NULL,
  87. operatorStatus nvarchar(4000) NOT NULL,
  88. CONSTRAINT XPKUDO_operatorStatus
  89. PRIMARY KEY (operatorStatusID)
  90. )
  91. go
  92. CREATE TABLE UDO_publisherStatus (
  93. publisherStatusID tinyint NOT NULL,
  94. publisherStatus nvarchar(256) NOT NULL,
  95. CONSTRAINT XPKUDO_publisherStatus
  96. PRIMARY KEY (publisherStatusID)
  97. )
  98. go
  99. CREATE UNIQUE INDEX XAK1UDO_publisherStatus ON UDO_publisherStatus
  100. (
  101. publisherStatus
  102. )
  103. go
  104. CREATE TABLE UDO_publishers (
  105. publisherID bigint IDENTITY NOT FOR REPLICATION,
  106. publisherStatusID tinyint NULL,
  107. PUID nvarchar(450) NOT NULL,
  108. email nvarchar(450) NULL,
  109. name nvarchar(100) NULL,
  110. phone nvarchar(4000) NULL,
  111. isoLangCode varchar(17) NULL
  112. CONSTRAINT ENGLISH132
  113. DEFAULT 'en',
  114. tModelLimit int NULL
  115. CONSTRAINT tModelLimit132
  116. DEFAULT 100,
  117. businessLimit int NULL
  118. CONSTRAINT businessLimit132
  119. DEFAULT 1,
  120. serviceLimit int NULL
  121. CONSTRAINT serviceLimit132
  122. DEFAULT 4,
  123. bindingLimit int NULL
  124. CONSTRAINT bindingLimit132
  125. DEFAULT 4,
  126. assertionLimit int NULL
  127. CONSTRAINT assertionLimit52
  128. DEFAULT 10,
  129. companyName nvarchar(100) NULL,
  130. addressLine1 nvarchar(4000) NULL,
  131. addressLine2 nvarchar(4000) NULL,
  132. mailstop nvarchar(20) NULL,
  133. city nvarchar(100) NULL,
  134. stateProvince nvarchar(100) NULL,
  135. extraProvince nvarchar(100) NULL,
  136. country nvarchar(100) NULL,
  137. postalCode varchar(100) NULL,
  138. companyURL nvarchar(512) NULL,
  139. companyPhone nvarchar(4000) NULL,
  140. altPhone nvarchar(4000) NULL,
  141. backupContact nvarchar(100) NULL,
  142. backupEmail nvarchar(450) NULL,
  143. description nvarchar(4000) NULL,
  144. securityToken uniqueidentifier NULL,
  145. flag int NULL
  146. CONSTRAINT DEFAULT_0406
  147. DEFAULT 0,
  148. CONSTRAINT XPKUDO_publishers
  149. PRIMARY KEY (publisherID),
  150. CONSTRAINT R_79
  151. FOREIGN KEY (publisherStatusID)
  152. REFERENCES UDO_publisherStatus
  153. )
  154. go
  155. CREATE UNIQUE INDEX XAK1UDO_publishers ON UDO_publishers
  156. (
  157. PUID
  158. )
  159. go
  160. CREATE INDEX XIE1UDO_publishers ON UDO_publishers
  161. (
  162. email
  163. )
  164. go
  165. CREATE INDEX XIE2UDO_publishers ON UDO_publishers
  166. (
  167. name
  168. )
  169. go
  170. CREATE TABLE UDO_operators (
  171. operatorID bigint IDENTITY NOT FOR REPLICATION,
  172. operatorKey uniqueidentifier NOT NULL,
  173. publisherID bigint NOT NULL,
  174. operatorStatusID tinyint NOT NULL,
  175. name nvarchar(450) NOT NULL,
  176. soapReplicationURL nvarchar(4000) NULL,
  177. businessKey uniqueidentifier NULL,
  178. certSerialNo nvarchar(450) NOT NULL,
  179. certIssuer nvarchar(225) NULL,
  180. certSubject nvarchar(225) NULL,
  181. certificate image NULL,
  182. flag int NOT NULL
  183. CONSTRAINT BIT_ZERO3147
  184. DEFAULT 0,
  185. CONSTRAINT XPKUDO_operators
  186. PRIMARY KEY (operatorID),
  187. CONSTRAINT R_128
  188. FOREIGN KEY (operatorStatusID)
  189. REFERENCES UDO_operatorStatus,
  190. CONSTRAINT R_102
  191. FOREIGN KEY (publisherID)
  192. REFERENCES UDO_publishers
  193. )
  194. go
  195. CREATE UNIQUE INDEX XAK3UDO_operators ON UDO_operators
  196. (
  197. operatorKey
  198. )
  199. go
  200. CREATE UNIQUE INDEX XAK4UDO_operators ON UDO_operators
  201. (
  202. certSerialNo
  203. )
  204. go
  205. CREATE TABLE UDO_operatorLog (
  206. seqNo bigint IDENTITY NOT FOR REPLICATION,
  207. operatorID bigint NOT NULL,
  208. replStatusID tinyint NOT NULL,
  209. description nvarchar(4000) NULL,
  210. lastOperatorKey uniqueidentifier NULL,
  211. lastUSN bigint NULL,
  212. lastChange bigint NOT NULL,
  213. CONSTRAINT XPKUDO_operatorLog
  214. PRIMARY KEY (seqNo),
  215. CONSTRAINT R_131
  216. FOREIGN KEY (replStatusID)
  217. REFERENCES UDO_replStatus,
  218. CONSTRAINT R_130
  219. FOREIGN KEY (operatorID)
  220. REFERENCES UDO_operators
  221. )
  222. go
  223. CREATE INDEX XIF130UDO_operatorLog ON UDO_operatorLog
  224. (
  225. operatorID
  226. )
  227. go
  228. CREATE INDEX XIF131UDO_operatorLog ON UDO_operatorLog
  229. (
  230. replStatusID
  231. )
  232. go
  233. CREATE TABLE UDC_assertions_BE (
  234. seqNo bigint IDENTITY NOT FOR REPLICATION,
  235. fromKey uniqueidentifier NOT NULL,
  236. toKey uniqueidentifier NOT NULL,
  237. tModelKey uniqueidentifier NOT NULL,
  238. keyName nvarchar(255) NULL,
  239. keyValue nvarchar(255) NOT NULL,
  240. flag int NULL
  241. CONSTRAINT DEFAULT_0407
  242. DEFAULT 0,
  243. CONSTRAINT XPKUDC_assertions_BE
  244. PRIMARY KEY (seqNo)
  245. )
  246. ON "UDDI_CORE"
  247. go
  248. CREATE INDEX XIE1UDC_assertions_BE ON UDC_assertions_BE
  249. (
  250. fromKey,
  251. tModelKey,
  252. keyValue
  253. )
  254. go
  255. CREATE INDEX XIE2UDC_assertions_BE ON UDC_assertions_BE
  256. (
  257. fromKey,
  258. toKey
  259. )
  260. go
  261. CREATE TABLE UDS_findScratch (
  262. contextID uniqueidentifier NOT NULL,
  263. entityKey uniqueidentifier NULL,
  264. subEntityKey uniqueidentifier NULL
  265. )
  266. ON "UDDI_STAGING"
  267. go
  268. CREATE INDEX XIE1UDS_findScratch ON UDS_findScratch
  269. (
  270. contextID
  271. )
  272. go
  273. CREATE TABLE UDC_serviceProjections (
  274. seqNo bigint IDENTITY NOT FOR REPLICATION,
  275. businessKey uniqueidentifier NOT NULL,
  276. serviceKey uniqueidentifier NOT NULL,
  277. businessKey2 uniqueidentifier NOT NULL,
  278. lastChange bigint NOT NULL,
  279. CONSTRAINT XPKUDC_serviceProjections
  280. PRIMARY KEY (seqNo)
  281. )
  282. ON "UDDI_CORE"
  283. go
  284. CREATE INDEX XIE1UDC_serviceProjections ON UDC_serviceProjections
  285. (
  286. serviceKey
  287. )
  288. go
  289. CREATE INDEX XIE2UDC_serviceProjections ON UDC_serviceProjections
  290. (
  291. businessKey
  292. )
  293. go
  294. CREATE TABLE UDC_businessEntities (
  295. businessID bigint IDENTITY NOT FOR REPLICATION,
  296. publisherID bigint NULL,
  297. generic varchar(20) NOT NULL
  298. CONSTRAINT generic_v2525
  299. DEFAULT 2.0,
  300. authorizedName nvarchar(4000) NULL,
  301. businessKey uniqueidentifier NOT NULL
  302. CONSTRAINT NEWID394
  303. DEFAULT NEWID(),
  304. lastChange bigint NOT NULL,
  305. flag int NULL
  306. CONSTRAINT BIT_ZERO3148
  307. DEFAULT 0,
  308. CONSTRAINT XPKUDC_businessEntities
  309. PRIMARY KEY (businessID),
  310. CONSTRAINT R_70
  311. FOREIGN KEY (publisherID)
  312. REFERENCES UDO_publishers
  313. )
  314. ON "UDDI_CORE"
  315. go
  316. CREATE UNIQUE INDEX XAK1UDC_businessEntities ON UDC_businessEntities
  317. (
  318. businessKey
  319. )
  320. go
  321. CREATE INDEX XIF70UDC_businessEntities ON UDC_businessEntities
  322. (
  323. publisherID
  324. )
  325. go
  326. CREATE TABLE UDC_businessServices (
  327. serviceID bigint IDENTITY NOT FOR REPLICATION,
  328. businessID bigint NOT NULL,
  329. generic varchar(20) NOT NULL
  330. CONSTRAINT generic_v2526
  331. DEFAULT 2.0,
  332. serviceKey uniqueidentifier NOT NULL
  333. CONSTRAINT NEWID395
  334. DEFAULT NEWID(),
  335. lastChange bigint NOT NULL,
  336. flag int NULL
  337. CONSTRAINT BIT_ZERO3149
  338. DEFAULT 0,
  339. CONSTRAINT XPKUDC_businessServices
  340. PRIMARY KEY (serviceID),
  341. CONSTRAINT R_75
  342. FOREIGN KEY (businessID)
  343. REFERENCES UDC_businessEntities
  344. )
  345. ON "UDDI_CORE"
  346. go
  347. CREATE UNIQUE INDEX XAK1UDC_businessServices ON UDC_businessServices
  348. (
  349. serviceKey
  350. )
  351. go
  352. CREATE INDEX XIF75UDC_businessServices ON UDC_businessServices
  353. (
  354. businessID
  355. )
  356. go
  357. CREATE TABLE UDC_names_BS (
  358. serviceID bigint NOT NULL,
  359. seqNo bigint IDENTITY NOT FOR REPLICATION,
  360. isoLangCode varchar(17) NOT NULL,
  361. name nvarchar(450) NOT NULL,
  362. CONSTRAINT XPKUDC_names_BS
  363. PRIMARY KEY (serviceID, seqNo),
  364. CONSTRAINT R_117
  365. FOREIGN KEY (serviceID)
  366. REFERENCES UDC_businessServices
  367. )
  368. ON "UDDI_CORE"
  369. go
  370. CREATE INDEX XIE1UDC_names_BS ON UDC_names_BS
  371. (
  372. name
  373. )
  374. go
  375. CREATE TABLE UDC_names_BE (
  376. businessID bigint NOT NULL,
  377. seqNo bigint IDENTITY NOT FOR REPLICATION,
  378. isoLangCode varchar(17) NOT NULL,
  379. name nvarchar(450) NOT NULL,
  380. CONSTRAINT XPKUDC_names_BE
  381. PRIMARY KEY (businessID, seqNo),
  382. CONSTRAINT R_116
  383. FOREIGN KEY (businessID)
  384. REFERENCES UDC_businessEntities
  385. )
  386. ON "UDDI_CORE"
  387. go
  388. CREATE INDEX XIE1UDC_names_BE ON UDC_names_BE
  389. (
  390. name
  391. )
  392. go
  393. CREATE TABLE UDC_identifierBag_BE (
  394. businessID bigint NOT NULL,
  395. seqNo bigint IDENTITY NOT FOR REPLICATION,
  396. keyName nvarchar(255) NULL,
  397. keyValue nvarchar(255) NULL,
  398. tModelKey uniqueidentifier NULL,
  399. flag int NULL
  400. CONSTRAINT BIT_ZERO3150
  401. DEFAULT 0,
  402. CONSTRAINT XPKUDC_identifierBag_BE
  403. PRIMARY KEY (businessID, seqNo),
  404. CONSTRAINT R_112
  405. FOREIGN KEY (businessID)
  406. REFERENCES UDC_businessEntities
  407. )
  408. ON "UDDI_CORE"
  409. go
  410. CREATE INDEX XIE4UDC_identifierBag_BE ON UDC_identifierBag_BE
  411. (
  412. keyValue
  413. )
  414. go
  415. CREATE TABLE UDC_categoryBag_BE (
  416. businessID bigint NOT NULL,
  417. seqNo bigint IDENTITY NOT FOR REPLICATION,
  418. keyName nvarchar(255) NULL,
  419. keyValue nvarchar(255) NULL,
  420. tModelKey uniqueidentifier NOT NULL,
  421. flag int NULL
  422. CONSTRAINT BIT_ZERO3151
  423. DEFAULT 0,
  424. CONSTRAINT XPKUDC_categoryBag_BE
  425. PRIMARY KEY (businessID, seqNo),
  426. CONSTRAINT R_113
  427. FOREIGN KEY (businessID)
  428. REFERENCES UDC_businessEntities
  429. )
  430. ON "UDDI_CORE"
  431. go
  432. CREATE INDEX XIE1UDC_categoryBag_BE ON UDC_categoryBag_BE
  433. (
  434. keyValue
  435. )
  436. go
  437. CREATE TABLE UDC_tModels (
  438. tModelID bigint IDENTITY NOT FOR REPLICATION,
  439. publisherID bigint NULL,
  440. generic varchar(20) NOT NULL
  441. CONSTRAINT generic_v2527
  442. DEFAULT 2.0,
  443. authorizedName nvarchar(4000) NULL,
  444. tModelKey uniqueidentifier NOT NULL,
  445. name nvarchar(450) NULL,
  446. overviewURL nvarchar(4000) NULL,
  447. lastChange bigint NOT NULL,
  448. flag int NULL
  449. CONSTRAINT BIT_ZERO3152
  450. DEFAULT 0,
  451. CONSTRAINT XPKUDC_tModels
  452. PRIMARY KEY (tModelID),
  453. CONSTRAINT R_71
  454. FOREIGN KEY (publisherID)
  455. REFERENCES UDO_publishers
  456. )
  457. ON "UDDI_CORE"
  458. go
  459. CREATE UNIQUE INDEX XAK1UDC_tModels ON UDC_tModels
  460. (
  461. tModelKey
  462. )
  463. go
  464. CREATE INDEX XIF71UDC_tModels ON UDC_tModels
  465. (
  466. publisherID
  467. )
  468. go
  469. CREATE INDEX XIE1UDC_tModels ON UDC_tModels
  470. (
  471. name
  472. )
  473. go
  474. CREATE TABLE UDC_identifierBag_TM (
  475. tModelID bigint NOT NULL,
  476. seqNo bigint IDENTITY NOT FOR REPLICATION,
  477. keyName nvarchar(255) NULL,
  478. keyValue nvarchar(255) NULL,
  479. tModelKey uniqueidentifier NULL,
  480. flag int NULL
  481. CONSTRAINT BIT_ZERO3153
  482. DEFAULT 0,
  483. CONSTRAINT XPKUDC_identifierBag_TM
  484. PRIMARY KEY (tModelID, seqNo),
  485. CONSTRAINT R_111
  486. FOREIGN KEY (tModelID)
  487. REFERENCES UDC_tModels
  488. )
  489. ON "UDDI_CORE"
  490. go
  491. CREATE INDEX XIE4UDC_identifierBag_TM ON UDC_identifierBag_TM
  492. (
  493. keyValue
  494. )
  495. go
  496. CREATE TABLE UDC_categoryBag_TM (
  497. tModelID bigint NOT NULL,
  498. seqNo bigint IDENTITY NOT FOR REPLICATION,
  499. keyName nvarchar(255) NULL,
  500. keyValue nvarchar(255) NULL,
  501. tModelKey uniqueidentifier NOT NULL,
  502. flag int NULL
  503. CONSTRAINT BIT_ZERO3154
  504. DEFAULT 0,
  505. CONSTRAINT XPKUDC_categoryBag_TM
  506. PRIMARY KEY (tModelID, seqNo),
  507. CONSTRAINT R_110
  508. FOREIGN KEY (tModelID)
  509. REFERENCES UDC_tModels
  510. )
  511. ON "UDDI_CORE"
  512. go
  513. CREATE INDEX XIE1UDC_categoryBag_TM ON UDC_categoryBag_TM
  514. (
  515. keyValue
  516. )
  517. go
  518. CREATE TABLE UDO_config (
  519. configName nvarchar(450) NOT NULL,
  520. configValue nvarchar(4000) NULL,
  521. CONSTRAINT XPKUDO_config
  522. PRIMARY KEY (configName)
  523. )
  524. ON "UDDI_CORE"
  525. go
  526. CREATE TABLE UDT_taxonomies (
  527. taxonomyID bigint IDENTITY NOT FOR REPLICATION,
  528. tModelKey uniqueidentifier NULL,
  529. flag int NULL
  530. CONSTRAINT BIT_ZERO3155
  531. DEFAULT 0,
  532. CONSTRAINT PK_taxonomies
  533. PRIMARY KEY (taxonomyID)
  534. )
  535. ON "UDDI_CORE"
  536. go
  537. CREATE UNIQUE INDEX XAK1UDT_taxonomies ON UDT_taxonomies
  538. (
  539. tModelKey
  540. )
  541. go
  542. CREATE TABLE UDC_discoveryURLs (
  543. businessID bigint NOT NULL,
  544. seqNo bigint IDENTITY NOT FOR REPLICATION,
  545. useType nvarchar(4000) NULL,
  546. discoveryURL nvarchar(450) NULL,
  547. flag int NULL
  548. CONSTRAINT BIT_ZERO3156
  549. DEFAULT 0,
  550. CONSTRAINT XPKUDC_discoveryURLs
  551. PRIMARY KEY (businessID, seqNo),
  552. CONSTRAINT R_84
  553. FOREIGN KEY (businessID)
  554. REFERENCES UDC_businessEntities
  555. )
  556. go
  557. CREATE INDEX XIE1UDC_discoveryURLs ON UDC_discoveryURLs
  558. (
  559. discoveryURL
  560. )
  561. go
  562. CREATE TABLE UDO_changeLog (
  563. seqNo bigint IDENTITY NOT FOR REPLICATION,
  564. USN bigint NULL,
  565. newSeqNo bigint NULL,
  566. publisherID bigint NOT NULL,
  567. delegatePublisherID bigint NULL,
  568. entityKey uniqueidentifier NULL,
  569. entityTypeID tinyint NULL,
  570. changeTypeID tinyint NOT NULL,
  571. contextID uniqueidentifier NOT NULL,
  572. contextTypeID tinyint NOT NULL,
  573. lastChange bigint NOT NULL,
  574. changeData ntext NULL,
  575. flag int NOT NULL
  576. CONSTRAINT DEFAULT_0408
  577. DEFAULT 0,
  578. CONSTRAINT XPKUDO_changeLog
  579. PRIMARY KEY (seqNo),
  580. CONSTRAINT R_133
  581. FOREIGN KEY (changeTypeID)
  582. REFERENCES UDO_changeTypes,
  583. CONSTRAINT R_126
  584. FOREIGN KEY (contextTypeID)
  585. REFERENCES UDO_contextTypes,
  586. CONSTRAINT R_88
  587. FOREIGN KEY (publisherID)
  588. REFERENCES UDO_publishers
  589. )
  590. ON "UDDI_JOURNAL"
  591. go
  592. CREATE INDEX XIF88UDO_changeLog ON UDO_changeLog
  593. (
  594. publisherID
  595. )
  596. go
  597. CREATE INDEX XIE1UDO_changeLog ON UDO_changeLog
  598. (
  599. USN
  600. )
  601. go
  602. CREATE TABLE UDO_elementNames (
  603. elementID tinyint NOT NULL,
  604. elementName nvarchar(450) NOT NULL,
  605. CONSTRAINT XPKUDO_elementNames
  606. PRIMARY KEY (elementID)
  607. )
  608. ON "UDDI_CORE"
  609. go
  610. CREATE UNIQUE INDEX XAK1UDO_elementNames ON UDO_elementNames
  611. (
  612. elementName
  613. )
  614. go
  615. CREATE TABLE UDC_URLTypes (
  616. URLTypeID tinyint NOT NULL,
  617. URLType nvarchar(450) NOT NULL,
  618. sortOrder int NULL,
  619. CONSTRAINT XPKUDC_URLTypes
  620. PRIMARY KEY (URLTypeID)
  621. )
  622. ON "UDDI_CORE"
  623. go
  624. CREATE UNIQUE INDEX URLType ON UDC_URLTypes
  625. (
  626. URLType
  627. )
  628. go
  629. CREATE TABLE UDC_bindingTemplates (
  630. bindingID bigint IDENTITY NOT FOR REPLICATION,
  631. serviceID bigint NOT NULL,
  632. generic varchar(20) NOT NULL
  633. CONSTRAINT generic_v2528
  634. DEFAULT 2.0,
  635. bindingKey uniqueidentifier NOT NULL
  636. CONSTRAINT NEWID396
  637. DEFAULT NEWID(),
  638. URLTypeID tinyint NULL,
  639. accessPoint nvarchar(4000) NULL,
  640. hostingRedirector uniqueidentifier NULL,
  641. lastChange bigint NOT NULL,
  642. flag int NULL
  643. CONSTRAINT BIT_ZERO3157
  644. DEFAULT 0,
  645. CONSTRAINT XPKUDC_bindingTemplates
  646. PRIMARY KEY (bindingID),
  647. CONSTRAINT R_40
  648. FOREIGN KEY (URLTypeID)
  649. REFERENCES UDC_URLTypes,
  650. CONSTRAINT R_39
  651. FOREIGN KEY (serviceID)
  652. REFERENCES UDC_businessServices
  653. )
  654. ON "UDDI_CORE"
  655. go
  656. CREATE UNIQUE INDEX XAK1UDC_bindingTemplates ON UDC_bindingTemplates
  657. (
  658. bindingKey
  659. )
  660. go
  661. CREATE INDEX XIF39UDC_bindingTemplates ON UDC_bindingTemplates
  662. (
  663. serviceID
  664. )
  665. go
  666. CREATE INDEX XIE1UDC_bindingTemplates ON UDC_bindingTemplates
  667. (
  668. hostingRedirector
  669. )
  670. go
  671. CREATE TABLE UDC_tModelInstances (
  672. instanceID bigint IDENTITY NOT FOR REPLICATION,
  673. bindingID bigint NOT NULL,
  674. tModelKey uniqueidentifier NOT NULL,
  675. overviewURL nvarchar(4000) NULL,
  676. instanceParms nvarchar(4000) NULL,
  677. flag int NULL
  678. CONSTRAINT BIT_ZERO3158
  679. DEFAULT 0,
  680. CONSTRAINT XPKUDC_tModelInstances
  681. PRIMARY KEY (instanceID),
  682. CONSTRAINT R_81
  683. FOREIGN KEY (bindingID)
  684. REFERENCES UDC_bindingTemplates
  685. )
  686. ON "UDDI_CORE"
  687. go
  688. CREATE INDEX XIF81UDC_tModelInstances ON UDC_tModelInstances
  689. (
  690. bindingID
  691. )
  692. go
  693. CREATE INDEX XIE1UDC_tModelInstances ON UDC_tModelInstances
  694. (
  695. tModelKey
  696. )
  697. go
  698. CREATE TABLE UDC_instanceDesc (
  699. instanceID bigint NOT NULL,
  700. seqNo bigint IDENTITY NOT FOR REPLICATION,
  701. elementID tinyint NULL,
  702. isoLangCode varchar(17) NOT NULL,
  703. description nvarchar(4000) NULL,
  704. flag int NULL
  705. CONSTRAINT BIT_ZERO3159
  706. DEFAULT 0,
  707. CONSTRAINT XPKUDC_instanceDesc
  708. PRIMARY KEY (instanceID, seqNo),
  709. CONSTRAINT R_108
  710. FOREIGN KEY (elementID)
  711. REFERENCES UDO_elementNames,
  712. CONSTRAINT R_69
  713. FOREIGN KEY (instanceID)
  714. REFERENCES UDC_tModelInstances
  715. )
  716. ON "UDDI_CORE"
  717. go
  718. CREATE TABLE UDC_categoryBag_BS (
  719. serviceID bigint NOT NULL,
  720. seqNo bigint IDENTITY NOT FOR REPLICATION,
  721. keyName nvarchar(255) NULL,
  722. keyValue nvarchar(255) NULL,
  723. tModelKey uniqueidentifier NOT NULL,
  724. flag int NULL
  725. CONSTRAINT BIT_ZERO3160
  726. DEFAULT 0,
  727. CONSTRAINT XPKUDC_categoryBag_BS
  728. PRIMARY KEY (serviceID, seqNo),
  729. CONSTRAINT R_114
  730. FOREIGN KEY (serviceID)
  731. REFERENCES UDC_businessServices
  732. )
  733. ON "UDDI_CORE"
  734. go
  735. CREATE INDEX XIE1UDC_categoryBag_BS ON UDC_categoryBag_BS
  736. (
  737. keyValue
  738. )
  739. go
  740. CREATE TABLE UDC_tModelDesc (
  741. tModelID bigint NOT NULL,
  742. seqNo bigint IDENTITY NOT FOR REPLICATION,
  743. elementID tinyint NULL,
  744. isoLangCode varchar(17) NOT NULL,
  745. description nvarchar(4000) NULL,
  746. flag int NULL
  747. CONSTRAINT BIT_ZERO3161
  748. DEFAULT 0,
  749. CONSTRAINT XPKUDC_tModelDesc
  750. PRIMARY KEY (tModelID, seqNo),
  751. CONSTRAINT R_109
  752. FOREIGN KEY (elementID)
  753. REFERENCES UDO_elementNames,
  754. CONSTRAINT R_42
  755. FOREIGN KEY (tModelID)
  756. REFERENCES UDC_tModels
  757. )
  758. ON "UDDI_CORE"
  759. go
  760. CREATE TABLE UDC_bindingDesc (
  761. bindingID bigint NOT NULL,
  762. seqNo bigint IDENTITY NOT FOR REPLICATION,
  763. isoLangCode varchar(17) NOT NULL,
  764. description nvarchar(4000) NULL,
  765. flag int NULL
  766. CONSTRAINT BIT_ZERO3162
  767. DEFAULT 0,
  768. CONSTRAINT XPKUDC_bindingDesc
  769. PRIMARY KEY (bindingID, seqNo),
  770. CONSTRAINT R_36
  771. FOREIGN KEY (bindingID)
  772. REFERENCES UDC_bindingTemplates
  773. )
  774. ON "UDDI_CORE"
  775. go
  776. CREATE TABLE UDC_serviceDesc (
  777. serviceID bigint NOT NULL,
  778. seqNo bigint IDENTITY NOT FOR REPLICATION,
  779. isoLangCode varchar(17) NOT NULL,
  780. description nvarchar(4000) NULL,
  781. flag int NULL
  782. CONSTRAINT BIT_ZERO3163
  783. DEFAULT 0,
  784. CONSTRAINT XPKUDC_serviceDesc
  785. PRIMARY KEY (serviceID, seqNo),
  786. CONSTRAINT R_35
  787. FOREIGN KEY (serviceID)
  788. REFERENCES UDC_businessServices
  789. )
  790. ON "UDDI_CORE"
  791. go
  792. CREATE TABLE UDC_businessDesc (
  793. businessID bigint NOT NULL,
  794. seqNo int IDENTITY NOT FOR REPLICATION,
  795. isoLangCode varchar(17) NOT NULL,
  796. description nvarchar(4000) NULL,
  797. flag int NULL
  798. CONSTRAINT BIT_ZERO3164
  799. DEFAULT 0,
  800. CONSTRAINT XPKUDC_businessDesc
  801. PRIMARY KEY (businessID, seqNo),
  802. CONSTRAINT R_33
  803. FOREIGN KEY (businessID)
  804. REFERENCES UDC_businessEntities
  805. )
  806. ON "UDDI_CORE"
  807. go
  808. CREATE TABLE UDC_contacts (
  809. contactID bigint IDENTITY NOT FOR REPLICATION,
  810. businessID bigint NOT NULL,
  811. useType nvarchar(4000) NULL,
  812. personName nvarchar(4000) NULL,
  813. flag int NULL
  814. CONSTRAINT BIT_ZERO3165
  815. DEFAULT 0,
  816. CONSTRAINT XPKUDC_contacts
  817. PRIMARY KEY (contactID),
  818. CONSTRAINT R_34
  819. FOREIGN KEY (businessID)
  820. REFERENCES UDC_businessEntities
  821. )
  822. ON "UDDI_CORE"
  823. go
  824. CREATE INDEX XIF34UDC_contacts ON UDC_contacts
  825. (
  826. businessID
  827. )
  828. go
  829. CREATE TABLE UDC_addresses (
  830. addressID bigint IDENTITY NOT FOR REPLICATION,
  831. contactID bigint NOT NULL,
  832. sortCode nvarchar(4000) NULL,
  833. useType nvarchar(4000) NULL,
  834. tModelKey uniqueidentifier NULL,
  835. flag int NULL
  836. CONSTRAINT BIT_ZERO3166
  837. DEFAULT 0,
  838. CONSTRAINT XPKUDC_addresses
  839. PRIMARY KEY (addressID),
  840. CONSTRAINT R_132
  841. FOREIGN KEY (contactID)
  842. REFERENCES UDC_contacts
  843. )
  844. ON "UDDI_CORE"
  845. go
  846. CREATE INDEX XIF132UDC_addresses ON UDC_addresses
  847. (
  848. contactID
  849. )
  850. go
  851. CREATE TABLE UDC_emails (
  852. contactID bigint NOT NULL,
  853. seqNo int IDENTITY NOT FOR REPLICATION,
  854. useType nvarchar(4000) NULL,
  855. email nvarchar(4000) NULL,
  856. flag int NULL
  857. CONSTRAINT BIT_ZERO3167
  858. DEFAULT 0,
  859. CONSTRAINT XPKUDC_emails
  860. PRIMARY KEY (contactID, seqNo),
  861. CONSTRAINT R_25
  862. FOREIGN KEY (contactID)
  863. REFERENCES UDC_contacts
  864. )
  865. ON "UDDI_CORE"
  866. go
  867. CREATE TABLE UDC_phones (
  868. contactID bigint NOT NULL,
  869. seqNo int IDENTITY NOT FOR REPLICATION,
  870. useType nvarchar(4000) NULL,
  871. phone nvarchar(4000) NULL,
  872. flag int NULL
  873. CONSTRAINT BIT_ZERO3168
  874. DEFAULT 0,
  875. CONSTRAINT XPKUDC_phones
  876. PRIMARY KEY (contactID, seqNo),
  877. CONSTRAINT R_21
  878. FOREIGN KEY (contactID)
  879. REFERENCES UDC_contacts
  880. )
  881. ON "UDDI_CORE"
  882. go
  883. CREATE TABLE UDC_contactDesc (
  884. contactID bigint NOT NULL,
  885. seqNo int IDENTITY NOT FOR REPLICATION,
  886. isoLangCode varchar(17) NOT NULL,
  887. description nvarchar(4000) NULL,
  888. flag int NULL
  889. CONSTRAINT BIT_ZERO3169
  890. DEFAULT 0,
  891. CONSTRAINT XPKUDC_contactDesc
  892. PRIMARY KEY (contactID, seqNo),
  893. CONSTRAINT R_19
  894. FOREIGN KEY (contactID)
  895. REFERENCES UDC_contacts
  896. )
  897. ON "UDDI_CORE"
  898. go
  899. CREATE TABLE UDC_addressLines (
  900. addressID bigint NOT NULL,
  901. seqNo bigint IDENTITY NOT FOR REPLICATION,
  902. addressLine nvarchar(4000) NULL,
  903. keyName nvarchar(255) NULL,
  904. keyValue nvarchar(255) NULL,
  905. flag int NULL
  906. CONSTRAINT BIT_ZERO3170
  907. DEFAULT 0,
  908. CONSTRAINT XPKUDC_addressLines
  909. PRIMARY KEY (addressID, seqNo),
  910. CONSTRAINT R_58
  911. FOREIGN KEY (addressID)
  912. REFERENCES UDC_addresses
  913. )
  914. ON "UDDI_CORE"
  915. go
  916. CREATE TABLE UDT_taxonomyValues (
  917. taxonomyID bigint NOT NULL,
  918. keyValue nvarchar(255) NOT NULL,
  919. parentKeyValue nvarchar(255) NOT NULL,
  920. keyName nvarchar(255) NULL,
  921. valid bit NOT NULL,
  922. CONSTRAINT XPKUDT_taxonomyValues
  923. PRIMARY KEY (taxonomyID, keyValue),
  924. CONSTRAINT R_100
  925. FOREIGN KEY (taxonomyID)
  926. REFERENCES UDT_taxonomies
  927. )
  928. ON "UDDI_CORE"
  929. go
  930. CREATE INDEX XIE1UDT_taxonomyValues ON UDT_taxonomyValues
  931. (
  932. parentKeyValue
  933. )
  934. go
  935. CREATE TABLE UDS_findResults (
  936. contextID uniqueidentifier NOT NULL,
  937. entityKey uniqueidentifier NOT NULL,
  938. subEntityKey uniqueidentifier NULL
  939. )
  940. ON "UDDI_STAGING"
  941. go
  942. CREATE INDEX XIE1UDS_findResults ON UDS_findResults
  943. (
  944. contextID
  945. )
  946. go
  947. CREATE TABLE UDS_replResults (
  948. contextID uniqueidentifier NOT NULL,
  949. seqNo bigint NOT NULL
  950. )
  951. ON "UDDI_STAGING"
  952. go
  953. CREATE INDEX XIE1UDS_replResults ON UDS_replResults
  954. (
  955. contextID
  956. )
  957. go
  958. CREATE TABLE UDS_sessionCache (
  959. seqNo bigint IDENTITY NOT FOR REPLICATION,
  960. PUID nvarchar(450) NULL,
  961. context nvarchar(20) NULL,
  962. cacheValue ntext NULL,
  963. saveDate datetime NULL
  964. CONSTRAINT GETUTCDATE383
  965. DEFAULT GETUTCDATE(),
  966. CONSTRAINT XPKUDS_sessionCache
  967. PRIMARY KEY NONCLUSTERED (seqNo)
  968. )
  969. ON "UDDI_STAGING"
  970. go
  971. CREATE INDEX XIE1UDS_sessionCache ON UDS_sessionCache
  972. (
  973. PUID
  974. )
  975. go
  976. CREATE INDEX XIE2UDS_sessionCache ON UDS_sessionCache
  977. (
  978. PUID
  979. )
  980. go
  981. CREATE TABLE UDO_reportStatus (
  982. reportStatusID tinyint NOT NULL,
  983. reportStatus nvarchar(20) NOT NULL,
  984. CONSTRAINT XPKUDO_reportStatus
  985. PRIMARY KEY NONCLUSTERED (reportStatusID)
  986. )
  987. ON "UDDI_CORE"
  988. go
  989. CREATE TABLE UDO_reports (
  990. reportID sysname NOT NULL,
  991. reportStatusID tinyint NULL,
  992. lastChange datetime NOT NULL
  993. CONSTRAINT CURRENT_TIMESTAMP34
  994. DEFAULT CURRENT_TIMESTAMP,
  995. CONSTRAINT XPKUDO_reports
  996. PRIMARY KEY NONCLUSTERED (reportID),
  997. CONSTRAINT R_5
  998. FOREIGN KEY (reportStatusID)
  999. REFERENCES UDO_reportStatus
  1000. )
  1001. ON "UDDI_CORE"
  1002. go
  1003. CREATE INDEX XIF43UDO_reports ON UDO_reports
  1004. (
  1005. reportStatusID
  1006. )
  1007. go
  1008. CREATE TABLE UDO_reportLines (
  1009. seqNo bigint IDENTITY NOT FOR REPLICATION,
  1010. reportID sysname NULL,
  1011. section nvarchar(250) NULL,
  1012. label nvarchar(250) NULL,
  1013. value nvarchar(3000) NULL,
  1014. CONSTRAINT XPKUDO_reportLines
  1015. PRIMARY KEY (seqNo),
  1016. CONSTRAINT R_3
  1017. FOREIGN KEY (reportID)
  1018. REFERENCES UDO_reports
  1019. )
  1020. ON "UDDI_CORE"
  1021. go
  1022. CREATE INDEX XIF42UDO_reportLines ON UDO_reportLines
  1023. (
  1024. reportID
  1025. )
  1026. go