PageRenderTime 70ms CodeModel.GetById 33ms RepoModel.GetById 1ms app.codeStats 0ms

/sql/portal-tables.sql

https://github.com/edgonzales/liferay-portal
SQL | 2390 lines | 2222 code | 168 blank | 0 comment | 0 complexity | b28943f9a9df7019d750722f9074b8cf MD5 | raw file
  1. create table Account_ (
  2. accountId LONG not null primary key,
  3. companyId LONG,
  4. userId LONG,
  5. userName VARCHAR(75) null,
  6. createDate DATE null,
  7. modifiedDate DATE null,
  8. parentAccountId LONG,
  9. name VARCHAR(75) null,
  10. legalName VARCHAR(75) null,
  11. legalId VARCHAR(75) null,
  12. legalType VARCHAR(75) null,
  13. sicCode VARCHAR(75) null,
  14. tickerSymbol VARCHAR(75) null,
  15. industry VARCHAR(75) null,
  16. type_ VARCHAR(75) null,
  17. size_ VARCHAR(75) null
  18. );
  19. create table Address (
  20. uuid_ VARCHAR(75) null,
  21. addressId LONG not null primary key,
  22. companyId LONG,
  23. userId LONG,
  24. userName VARCHAR(75) null,
  25. createDate DATE null,
  26. modifiedDate DATE null,
  27. classNameId LONG,
  28. classPK LONG,
  29. street1 VARCHAR(75) null,
  30. street2 VARCHAR(75) null,
  31. street3 VARCHAR(75) null,
  32. city VARCHAR(75) null,
  33. zip VARCHAR(75) null,
  34. regionId LONG,
  35. countryId LONG,
  36. typeId INTEGER,
  37. mailing BOOLEAN,
  38. primary_ BOOLEAN
  39. );
  40. create table AnnouncementsDelivery (
  41. deliveryId LONG not null primary key,
  42. companyId LONG,
  43. userId LONG,
  44. type_ VARCHAR(75) null,
  45. email BOOLEAN,
  46. sms BOOLEAN,
  47. website BOOLEAN
  48. );
  49. create table AnnouncementsEntry (
  50. uuid_ VARCHAR(75) null,
  51. entryId LONG not null primary key,
  52. companyId LONG,
  53. userId LONG,
  54. userName VARCHAR(75) null,
  55. createDate DATE null,
  56. modifiedDate DATE null,
  57. classNameId LONG,
  58. classPK LONG,
  59. title VARCHAR(75) null,
  60. content TEXT null,
  61. url STRING null,
  62. type_ VARCHAR(75) null,
  63. displayDate DATE null,
  64. expirationDate DATE null,
  65. priority INTEGER,
  66. alert BOOLEAN
  67. );
  68. create table AnnouncementsFlag (
  69. flagId LONG not null primary key,
  70. userId LONG,
  71. createDate DATE null,
  72. entryId LONG,
  73. value INTEGER
  74. );
  75. create table AssetCategory (
  76. uuid_ VARCHAR(75) null,
  77. categoryId LONG not null primary key,
  78. groupId LONG,
  79. companyId LONG,
  80. userId LONG,
  81. userName VARCHAR(75) null,
  82. createDate DATE null,
  83. modifiedDate DATE null,
  84. parentCategoryId LONG,
  85. leftCategoryId LONG,
  86. rightCategoryId LONG,
  87. name VARCHAR(75) null,
  88. title STRING null,
  89. description STRING null,
  90. vocabularyId LONG
  91. );
  92. create table AssetCategoryProperty (
  93. categoryPropertyId LONG not null primary key,
  94. companyId LONG,
  95. userId LONG,
  96. userName VARCHAR(75) null,
  97. createDate DATE null,
  98. modifiedDate DATE null,
  99. categoryId LONG,
  100. key_ VARCHAR(75) null,
  101. value VARCHAR(75) null
  102. );
  103. create table AssetEntries_AssetCategories (
  104. categoryId LONG not null,
  105. entryId LONG not null,
  106. primary key (categoryId, entryId)
  107. );
  108. create table AssetEntries_AssetTags (
  109. entryId LONG not null,
  110. tagId LONG not null,
  111. primary key (entryId, tagId)
  112. );
  113. create table AssetEntry (
  114. entryId LONG not null primary key,
  115. groupId LONG,
  116. companyId LONG,
  117. userId LONG,
  118. userName VARCHAR(75) null,
  119. createDate DATE null,
  120. modifiedDate DATE null,
  121. classNameId LONG,
  122. classPK LONG,
  123. classUuid VARCHAR(75) null,
  124. classTypeId LONG,
  125. visible BOOLEAN,
  126. startDate DATE null,
  127. endDate DATE null,
  128. publishDate DATE null,
  129. expirationDate DATE null,
  130. mimeType VARCHAR(75) null,
  131. title STRING null,
  132. description STRING null,
  133. summary STRING null,
  134. url STRING null,
  135. layoutUuid VARCHAR(75) null,
  136. height INTEGER,
  137. width INTEGER,
  138. priority DOUBLE,
  139. viewCount INTEGER
  140. );
  141. create table AssetLink (
  142. linkId LONG not null primary key,
  143. companyId LONG,
  144. userId LONG,
  145. userName VARCHAR(75) null,
  146. createDate DATE null,
  147. entryId1 LONG,
  148. entryId2 LONG,
  149. type_ INTEGER,
  150. weight INTEGER
  151. );
  152. create table AssetTag (
  153. tagId LONG not null primary key,
  154. groupId LONG,
  155. companyId LONG,
  156. userId LONG,
  157. userName VARCHAR(75) null,
  158. createDate DATE null,
  159. modifiedDate DATE null,
  160. name VARCHAR(75) null,
  161. assetCount INTEGER
  162. );
  163. create table AssetTagProperty (
  164. tagPropertyId LONG not null primary key,
  165. companyId LONG,
  166. userId LONG,
  167. userName VARCHAR(75) null,
  168. createDate DATE null,
  169. modifiedDate DATE null,
  170. tagId LONG,
  171. key_ VARCHAR(75) null,
  172. value VARCHAR(255) null
  173. );
  174. create table AssetTagStats (
  175. tagStatsId LONG not null primary key,
  176. tagId LONG,
  177. classNameId LONG,
  178. assetCount INTEGER
  179. );
  180. create table AssetVocabulary (
  181. uuid_ VARCHAR(75) null,
  182. vocabularyId LONG not null primary key,
  183. groupId LONG,
  184. companyId LONG,
  185. userId LONG,
  186. userName VARCHAR(75) null,
  187. createDate DATE null,
  188. modifiedDate DATE null,
  189. name VARCHAR(75) null,
  190. title STRING null,
  191. description STRING null,
  192. settings_ STRING null
  193. );
  194. create table BackgroundTask (
  195. backgroundTaskId LONG not null primary key,
  196. groupId LONG,
  197. companyId LONG,
  198. userId LONG,
  199. userName VARCHAR(75) null,
  200. createDate DATE null,
  201. modifiedDate DATE null,
  202. name VARCHAR(75) null,
  203. servletContextNames VARCHAR(255) null,
  204. taskExecutorClassName VARCHAR(200) null,
  205. taskContext TEXT null,
  206. completed BOOLEAN,
  207. completionDate DATE null,
  208. status INTEGER,
  209. statusMessage TEXT null
  210. );
  211. create table BlogsEntry (
  212. uuid_ VARCHAR(75) null,
  213. entryId LONG not null primary key,
  214. groupId LONG,
  215. companyId LONG,
  216. userId LONG,
  217. userName VARCHAR(75) null,
  218. createDate DATE null,
  219. modifiedDate DATE null,
  220. title VARCHAR(150) null,
  221. urlTitle VARCHAR(150) null,
  222. description STRING null,
  223. content TEXT null,
  224. displayDate DATE null,
  225. allowPingbacks BOOLEAN,
  226. allowTrackbacks BOOLEAN,
  227. trackbacks TEXT null,
  228. smallImage BOOLEAN,
  229. smallImageId LONG,
  230. smallImageURL STRING null,
  231. status INTEGER,
  232. statusByUserId LONG,
  233. statusByUserName VARCHAR(75) null,
  234. statusDate DATE null
  235. );
  236. create table BlogsStatsUser (
  237. statsUserId LONG not null primary key,
  238. groupId LONG,
  239. companyId LONG,
  240. userId LONG,
  241. entryCount INTEGER,
  242. lastPostDate DATE null,
  243. ratingsTotalEntries INTEGER,
  244. ratingsTotalScore DOUBLE,
  245. ratingsAverageScore DOUBLE
  246. );
  247. create table BookmarksEntry (
  248. uuid_ VARCHAR(75) null,
  249. entryId LONG not null primary key,
  250. groupId LONG,
  251. companyId LONG,
  252. userId LONG,
  253. userName VARCHAR(75) null,
  254. createDate DATE null,
  255. modifiedDate DATE null,
  256. resourceBlockId LONG,
  257. folderId LONG,
  258. treePath STRING null,
  259. name VARCHAR(255) null,
  260. url STRING null,
  261. description STRING null,
  262. visits INTEGER,
  263. priority INTEGER,
  264. status INTEGER,
  265. statusByUserId LONG,
  266. statusByUserName VARCHAR(75) null,
  267. statusDate DATE null
  268. );
  269. create table BookmarksFolder (
  270. uuid_ VARCHAR(75) null,
  271. folderId LONG not null primary key,
  272. groupId LONG,
  273. companyId LONG,
  274. userId LONG,
  275. userName VARCHAR(75) null,
  276. createDate DATE null,
  277. modifiedDate DATE null,
  278. resourceBlockId LONG,
  279. parentFolderId LONG,
  280. treePath STRING null,
  281. name VARCHAR(75) null,
  282. description STRING null,
  283. status INTEGER,
  284. statusByUserId LONG,
  285. statusByUserName VARCHAR(75) null,
  286. statusDate DATE null
  287. );
  288. create table BrowserTracker (
  289. browserTrackerId LONG not null primary key,
  290. userId LONG,
  291. browserKey LONG
  292. );
  293. create table CalEvent (
  294. uuid_ VARCHAR(75) null,
  295. eventId LONG not null primary key,
  296. groupId LONG,
  297. companyId LONG,
  298. userId LONG,
  299. userName VARCHAR(75) null,
  300. createDate DATE null,
  301. modifiedDate DATE null,
  302. title VARCHAR(75) null,
  303. description STRING null,
  304. location STRING null,
  305. startDate DATE null,
  306. endDate DATE null,
  307. durationHour INTEGER,
  308. durationMinute INTEGER,
  309. allDay BOOLEAN,
  310. timeZoneSensitive BOOLEAN,
  311. type_ VARCHAR(75) null,
  312. repeating BOOLEAN,
  313. recurrence TEXT null,
  314. remindBy INTEGER,
  315. firstReminder INTEGER,
  316. secondReminder INTEGER
  317. );
  318. create table ClassName_ (
  319. classNameId LONG not null primary key,
  320. value VARCHAR(200) null
  321. );
  322. create table ClusterGroup (
  323. clusterGroupId LONG not null primary key,
  324. name VARCHAR(75) null,
  325. clusterNodeIds VARCHAR(75) null,
  326. wholeCluster BOOLEAN
  327. );
  328. create table Company (
  329. companyId LONG not null primary key,
  330. accountId LONG,
  331. webId VARCHAR(75) null,
  332. key_ TEXT null,
  333. mx VARCHAR(75) null,
  334. homeURL STRING null,
  335. logoId LONG,
  336. system BOOLEAN,
  337. maxUsers INTEGER,
  338. active_ BOOLEAN
  339. );
  340. create table Contact_ (
  341. contactId LONG not null primary key,
  342. companyId LONG,
  343. userId LONG,
  344. userName VARCHAR(75) null,
  345. createDate DATE null,
  346. modifiedDate DATE null,
  347. classNameId LONG,
  348. classPK LONG,
  349. accountId LONG,
  350. parentContactId LONG,
  351. emailAddress VARCHAR(75) null,
  352. firstName VARCHAR(75) null,
  353. middleName VARCHAR(75) null,
  354. lastName VARCHAR(75) null,
  355. prefixId INTEGER,
  356. suffixId INTEGER,
  357. male BOOLEAN,
  358. birthday DATE null,
  359. smsSn VARCHAR(75) null,
  360. aimSn VARCHAR(75) null,
  361. facebookSn VARCHAR(75) null,
  362. icqSn VARCHAR(75) null,
  363. jabberSn VARCHAR(75) null,
  364. msnSn VARCHAR(75) null,
  365. mySpaceSn VARCHAR(75) null,
  366. skypeSn VARCHAR(75) null,
  367. twitterSn VARCHAR(75) null,
  368. ymSn VARCHAR(75) null,
  369. employeeStatusId VARCHAR(75) null,
  370. employeeNumber VARCHAR(75) null,
  371. jobTitle VARCHAR(100) null,
  372. jobClass VARCHAR(75) null,
  373. hoursOfOperation VARCHAR(75) null
  374. );
  375. create table Counter (
  376. name VARCHAR(75) not null primary key,
  377. currentId LONG
  378. );
  379. create table Country (
  380. countryId LONG not null primary key,
  381. name VARCHAR(75) null,
  382. a2 VARCHAR(75) null,
  383. a3 VARCHAR(75) null,
  384. number_ VARCHAR(75) null,
  385. idd_ VARCHAR(75) null,
  386. zipRequired BOOLEAN,
  387. active_ BOOLEAN
  388. );
  389. create table CyrusUser (
  390. userId VARCHAR(75) not null primary key,
  391. password_ VARCHAR(75) not null
  392. );
  393. create table CyrusVirtual (
  394. emailAddress VARCHAR(75) not null primary key,
  395. userId VARCHAR(75) not null
  396. );
  397. create table DDLRecord (
  398. uuid_ VARCHAR(75) null,
  399. recordId LONG not null primary key,
  400. groupId LONG,
  401. companyId LONG,
  402. userId LONG,
  403. userName VARCHAR(75) null,
  404. versionUserId LONG,
  405. versionUserName VARCHAR(75) null,
  406. createDate DATE null,
  407. modifiedDate DATE null,
  408. DDMStorageId LONG,
  409. recordSetId LONG,
  410. version VARCHAR(75) null,
  411. displayIndex INTEGER
  412. );
  413. create table DDLRecordSet (
  414. uuid_ VARCHAR(75) null,
  415. recordSetId LONG not null primary key,
  416. groupId LONG,
  417. companyId LONG,
  418. userId LONG,
  419. userName VARCHAR(75) null,
  420. createDate DATE null,
  421. modifiedDate DATE null,
  422. DDMStructureId LONG,
  423. recordSetKey VARCHAR(75) null,
  424. name STRING null,
  425. description STRING null,
  426. minDisplayRows INTEGER,
  427. scope INTEGER
  428. );
  429. create table DDLRecordVersion (
  430. recordVersionId LONG not null primary key,
  431. groupId LONG,
  432. companyId LONG,
  433. userId LONG,
  434. userName VARCHAR(75) null,
  435. createDate DATE null,
  436. DDMStorageId LONG,
  437. recordSetId LONG,
  438. recordId LONG,
  439. version VARCHAR(75) null,
  440. displayIndex INTEGER,
  441. status INTEGER,
  442. statusByUserId LONG,
  443. statusByUserName VARCHAR(75) null,
  444. statusDate DATE null
  445. );
  446. create table DDMContent (
  447. uuid_ VARCHAR(75) null,
  448. contentId LONG not null primary key,
  449. groupId LONG,
  450. companyId LONG,
  451. userId LONG,
  452. userName VARCHAR(75) null,
  453. createDate DATE null,
  454. modifiedDate DATE null,
  455. name STRING null,
  456. description STRING null,
  457. xml TEXT null
  458. );
  459. create table DDMStorageLink (
  460. uuid_ VARCHAR(75) null,
  461. storageLinkId LONG not null primary key,
  462. classNameId LONG,
  463. classPK LONG,
  464. structureId LONG
  465. );
  466. create table DDMStructure (
  467. uuid_ VARCHAR(75) null,
  468. structureId LONG not null primary key,
  469. groupId LONG,
  470. companyId LONG,
  471. userId LONG,
  472. userName VARCHAR(75) null,
  473. createDate DATE null,
  474. modifiedDate DATE null,
  475. parentStructureId LONG,
  476. classNameId LONG,
  477. structureKey VARCHAR(75) null,
  478. name STRING null,
  479. description STRING null,
  480. xsd TEXT null,
  481. storageType VARCHAR(75) null,
  482. type_ INTEGER
  483. );
  484. create table DDMStructureLink (
  485. structureLinkId LONG not null primary key,
  486. classNameId LONG,
  487. classPK LONG,
  488. structureId LONG
  489. );
  490. create table DDMTemplate (
  491. uuid_ VARCHAR(75) null,
  492. templateId LONG not null primary key,
  493. groupId LONG,
  494. companyId LONG,
  495. userId LONG,
  496. userName VARCHAR(75) null,
  497. createDate DATE null,
  498. modifiedDate DATE null,
  499. classNameId LONG,
  500. classPK LONG,
  501. templateKey VARCHAR(75) null,
  502. name STRING null,
  503. description STRING null,
  504. type_ VARCHAR(75) null,
  505. mode_ VARCHAR(75) null,
  506. language VARCHAR(75) null,
  507. script TEXT null,
  508. cacheable BOOLEAN,
  509. smallImage BOOLEAN,
  510. smallImageId LONG,
  511. smallImageURL VARCHAR(75) null
  512. );
  513. create table DLContent (
  514. contentId LONG not null primary key,
  515. groupId LONG,
  516. companyId LONG,
  517. repositoryId LONG,
  518. path_ VARCHAR(255) null,
  519. version VARCHAR(75) null,
  520. data_ BLOB,
  521. size_ LONG
  522. );
  523. create table DLFileEntry (
  524. uuid_ VARCHAR(75) null,
  525. fileEntryId LONG not null primary key,
  526. groupId LONG,
  527. companyId LONG,
  528. userId LONG,
  529. userName VARCHAR(75) null,
  530. createDate DATE null,
  531. modifiedDate DATE null,
  532. classNameId LONG,
  533. classPK LONG,
  534. repositoryId LONG,
  535. folderId LONG,
  536. treePath STRING null,
  537. name VARCHAR(255) null,
  538. extension VARCHAR(75) null,
  539. mimeType VARCHAR(75) null,
  540. title VARCHAR(255) null,
  541. description STRING null,
  542. extraSettings TEXT null,
  543. fileEntryTypeId LONG,
  544. version VARCHAR(75) null,
  545. size_ LONG,
  546. readCount INTEGER,
  547. smallImageId LONG,
  548. largeImageId LONG,
  549. custom1ImageId LONG,
  550. custom2ImageId LONG,
  551. manualCheckInRequired BOOLEAN
  552. );
  553. create table DLFileEntryMetadata (
  554. uuid_ VARCHAR(75) null,
  555. fileEntryMetadataId LONG not null primary key,
  556. DDMStorageId LONG,
  557. DDMStructureId LONG,
  558. fileEntryTypeId LONG,
  559. fileEntryId LONG,
  560. fileVersionId LONG
  561. );
  562. create table DLFileEntryType (
  563. uuid_ VARCHAR(75) null,
  564. fileEntryTypeId LONG not null primary key,
  565. groupId LONG,
  566. companyId LONG,
  567. userId LONG,
  568. userName VARCHAR(75) null,
  569. createDate DATE null,
  570. modifiedDate DATE null,
  571. fileEntryTypeKey VARCHAR(75) null,
  572. name STRING null,
  573. description STRING null
  574. );
  575. create table DLFileEntryTypes_DDMStructures (
  576. structureId LONG not null,
  577. fileEntryTypeId LONG not null,
  578. primary key (structureId, fileEntryTypeId)
  579. );
  580. create table DLFileEntryTypes_DLFolders (
  581. fileEntryTypeId LONG not null,
  582. folderId LONG not null,
  583. primary key (fileEntryTypeId, folderId)
  584. );
  585. create table DLFileRank (
  586. fileRankId LONG not null primary key,
  587. groupId LONG,
  588. companyId LONG,
  589. userId LONG,
  590. createDate DATE null,
  591. fileEntryId LONG,
  592. active_ BOOLEAN
  593. );
  594. create table DLFileShortcut (
  595. uuid_ VARCHAR(75) null,
  596. fileShortcutId LONG not null primary key,
  597. groupId LONG,
  598. companyId LONG,
  599. userId LONG,
  600. userName VARCHAR(75) null,
  601. createDate DATE null,
  602. modifiedDate DATE null,
  603. repositoryId LONG,
  604. folderId LONG,
  605. toFileEntryId LONG,
  606. treePath STRING null,
  607. active_ BOOLEAN,
  608. status INTEGER,
  609. statusByUserId LONG,
  610. statusByUserName VARCHAR(75) null,
  611. statusDate DATE null
  612. );
  613. create table DLFileVersion (
  614. uuid_ VARCHAR(75) null,
  615. fileVersionId LONG not null primary key,
  616. groupId LONG,
  617. companyId LONG,
  618. userId LONG,
  619. userName VARCHAR(75) null,
  620. createDate DATE null,
  621. modifiedDate DATE null,
  622. repositoryId LONG,
  623. folderId LONG,
  624. fileEntryId LONG,
  625. treePath STRING null,
  626. extension VARCHAR(75) null,
  627. mimeType VARCHAR(75) null,
  628. title VARCHAR(255) null,
  629. description STRING null,
  630. changeLog VARCHAR(75) null,
  631. extraSettings TEXT null,
  632. fileEntryTypeId LONG,
  633. version VARCHAR(75) null,
  634. size_ LONG,
  635. checksum VARCHAR(75) null,
  636. status INTEGER,
  637. statusByUserId LONG,
  638. statusByUserName VARCHAR(75) null,
  639. statusDate DATE null
  640. );
  641. create table DLFolder (
  642. uuid_ VARCHAR(75) null,
  643. folderId LONG not null primary key,
  644. groupId LONG,
  645. companyId LONG,
  646. userId LONG,
  647. userName VARCHAR(75) null,
  648. createDate DATE null,
  649. modifiedDate DATE null,
  650. repositoryId LONG,
  651. mountPoint BOOLEAN,
  652. parentFolderId LONG,
  653. treePath STRING null,
  654. name VARCHAR(100) null,
  655. description STRING null,
  656. lastPostDate DATE null,
  657. defaultFileEntryTypeId LONG,
  658. hidden_ BOOLEAN,
  659. overrideFileEntryTypes BOOLEAN,
  660. status INTEGER,
  661. statusByUserId LONG,
  662. statusByUserName VARCHAR(75) null,
  663. statusDate DATE null
  664. );
  665. create table DLSyncEvent (
  666. syncEventId LONG not null primary key,
  667. modifiedTime LONG,
  668. event VARCHAR(75) null,
  669. type_ VARCHAR(75) null,
  670. typePK LONG
  671. );
  672. create table EmailAddress (
  673. uuid_ VARCHAR(75) null,
  674. emailAddressId LONG not null primary key,
  675. companyId LONG,
  676. userId LONG,
  677. userName VARCHAR(75) null,
  678. createDate DATE null,
  679. modifiedDate DATE null,
  680. classNameId LONG,
  681. classPK LONG,
  682. address VARCHAR(75) null,
  683. typeId INTEGER,
  684. primary_ BOOLEAN
  685. );
  686. create table ExpandoColumn (
  687. columnId LONG not null primary key,
  688. companyId LONG,
  689. tableId LONG,
  690. name VARCHAR(75) null,
  691. type_ INTEGER,
  692. defaultData STRING null,
  693. typeSettings TEXT null
  694. );
  695. create table ExpandoRow (
  696. rowId_ LONG not null primary key,
  697. companyId LONG,
  698. modifiedDate DATE null,
  699. tableId LONG,
  700. classPK LONG
  701. );
  702. create table ExpandoTable (
  703. tableId LONG not null primary key,
  704. companyId LONG,
  705. classNameId LONG,
  706. name VARCHAR(75) null
  707. );
  708. create table ExpandoValue (
  709. valueId LONG not null primary key,
  710. companyId LONG,
  711. tableId LONG,
  712. columnId LONG,
  713. rowId_ LONG,
  714. classNameId LONG,
  715. classPK LONG,
  716. data_ STRING null
  717. );
  718. create table Group_ (
  719. uuid_ VARCHAR(75) null,
  720. groupId LONG not null primary key,
  721. companyId LONG,
  722. creatorUserId LONG,
  723. classNameId LONG,
  724. classPK LONG,
  725. parentGroupId LONG,
  726. liveGroupId LONG,
  727. treePath STRING null,
  728. name VARCHAR(150) null,
  729. description STRING null,
  730. type_ INTEGER,
  731. typeSettings TEXT null,
  732. manualMembership BOOLEAN,
  733. membershipRestriction INTEGER,
  734. friendlyURL VARCHAR(255) null,
  735. site BOOLEAN,
  736. remoteStagingGroupCount INTEGER,
  737. active_ BOOLEAN
  738. );
  739. create table Groups_Orgs (
  740. groupId LONG not null,
  741. organizationId LONG not null,
  742. primary key (groupId, organizationId)
  743. );
  744. create table Groups_Roles (
  745. groupId LONG not null,
  746. roleId LONG not null,
  747. primary key (groupId, roleId)
  748. );
  749. create table Groups_UserGroups (
  750. groupId LONG not null,
  751. userGroupId LONG not null,
  752. primary key (groupId, userGroupId)
  753. );
  754. create table Image (
  755. imageId LONG not null primary key,
  756. modifiedDate DATE null,
  757. type_ VARCHAR(75) null,
  758. height INTEGER,
  759. width INTEGER,
  760. size_ INTEGER
  761. );
  762. create table JournalArticle (
  763. uuid_ VARCHAR(75) null,
  764. id_ LONG not null primary key,
  765. resourcePrimKey LONG,
  766. groupId LONG,
  767. companyId LONG,
  768. userId LONG,
  769. userName VARCHAR(75) null,
  770. createDate DATE null,
  771. modifiedDate DATE null,
  772. folderId LONG,
  773. classNameId LONG,
  774. classPK LONG,
  775. treePath STRING null,
  776. articleId VARCHAR(75) null,
  777. version DOUBLE,
  778. title STRING null,
  779. urlTitle VARCHAR(150) null,
  780. description STRING null,
  781. content TEXT null,
  782. type_ VARCHAR(75) null,
  783. structureId VARCHAR(75) null,
  784. templateId VARCHAR(75) null,
  785. layoutUuid VARCHAR(75) null,
  786. displayDate DATE null,
  787. expirationDate DATE null,
  788. reviewDate DATE null,
  789. indexable BOOLEAN,
  790. smallImage BOOLEAN,
  791. smallImageId LONG,
  792. smallImageURL STRING null,
  793. status INTEGER,
  794. statusByUserId LONG,
  795. statusByUserName VARCHAR(75) null,
  796. statusDate DATE null
  797. );
  798. create table JournalArticleImage (
  799. articleImageId LONG not null primary key,
  800. groupId LONG,
  801. articleId VARCHAR(75) null,
  802. version DOUBLE,
  803. elInstanceId VARCHAR(75) null,
  804. elName VARCHAR(75) null,
  805. languageId VARCHAR(75) null,
  806. tempImage BOOLEAN
  807. );
  808. create table JournalArticleResource (
  809. uuid_ VARCHAR(75) null,
  810. resourcePrimKey LONG not null primary key,
  811. groupId LONG,
  812. articleId VARCHAR(75) null
  813. );
  814. create table JournalContentSearch (
  815. contentSearchId LONG not null primary key,
  816. groupId LONG,
  817. companyId LONG,
  818. privateLayout BOOLEAN,
  819. layoutId LONG,
  820. portletId VARCHAR(200) null,
  821. articleId VARCHAR(75) null
  822. );
  823. create table JournalFeed (
  824. uuid_ VARCHAR(75) null,
  825. id_ LONG not null primary key,
  826. groupId LONG,
  827. companyId LONG,
  828. userId LONG,
  829. userName VARCHAR(75) null,
  830. createDate DATE null,
  831. modifiedDate DATE null,
  832. feedId VARCHAR(75) null,
  833. name VARCHAR(75) null,
  834. description STRING null,
  835. type_ VARCHAR(75) null,
  836. structureId VARCHAR(75) null,
  837. templateId VARCHAR(75) null,
  838. rendererTemplateId VARCHAR(75) null,
  839. delta INTEGER,
  840. orderByCol VARCHAR(75) null,
  841. orderByType VARCHAR(75) null,
  842. targetLayoutFriendlyUrl VARCHAR(255) null,
  843. targetPortletId VARCHAR(75) null,
  844. contentField VARCHAR(75) null,
  845. feedFormat VARCHAR(75) null,
  846. feedVersion DOUBLE
  847. );
  848. create table JournalFolder (
  849. uuid_ VARCHAR(75) null,
  850. folderId LONG not null primary key,
  851. groupId LONG,
  852. companyId LONG,
  853. userId LONG,
  854. userName VARCHAR(75) null,
  855. createDate DATE null,
  856. modifiedDate DATE null,
  857. parentFolderId LONG,
  858. treePath STRING null,
  859. name VARCHAR(100) null,
  860. description STRING null,
  861. status INTEGER,
  862. statusByUserId LONG,
  863. statusByUserName VARCHAR(75) null,
  864. statusDate DATE null
  865. );
  866. create table Layout (
  867. uuid_ VARCHAR(75) null,
  868. plid LONG not null primary key,
  869. groupId LONG,
  870. companyId LONG,
  871. userId LONG,
  872. userName VARCHAR(75) null,
  873. createDate DATE null,
  874. modifiedDate DATE null,
  875. privateLayout BOOLEAN,
  876. layoutId LONG,
  877. parentLayoutId LONG,
  878. name STRING null,
  879. title STRING null,
  880. description STRING null,
  881. keywords STRING null,
  882. robots STRING null,
  883. type_ VARCHAR(75) null,
  884. typeSettings TEXT null,
  885. hidden_ BOOLEAN,
  886. friendlyURL VARCHAR(255) null,
  887. iconImage BOOLEAN,
  888. iconImageId LONG,
  889. themeId VARCHAR(75) null,
  890. colorSchemeId VARCHAR(75) null,
  891. wapThemeId VARCHAR(75) null,
  892. wapColorSchemeId VARCHAR(75) null,
  893. css TEXT null,
  894. priority INTEGER,
  895. layoutPrototypeUuid VARCHAR(75) null,
  896. layoutPrototypeLinkEnabled BOOLEAN,
  897. sourcePrototypeLayoutUuid VARCHAR(75) null
  898. );
  899. create table LayoutBranch (
  900. LayoutBranchId LONG not null primary key,
  901. groupId LONG,
  902. companyId LONG,
  903. userId LONG,
  904. userName VARCHAR(75) null,
  905. layoutSetBranchId LONG,
  906. plid LONG,
  907. name VARCHAR(75) null,
  908. description STRING null,
  909. master BOOLEAN
  910. );
  911. create table LayoutFriendlyURL (
  912. uuid_ VARCHAR(75) null,
  913. layoutFriendlyURLId LONG not null primary key,
  914. groupId LONG,
  915. companyId LONG,
  916. userId LONG,
  917. userName VARCHAR(75) null,
  918. createDate DATE null,
  919. modifiedDate DATE null,
  920. plid LONG,
  921. privateLayout BOOLEAN,
  922. friendlyURL VARCHAR(255) null,
  923. languageId VARCHAR(75) null
  924. );
  925. create table LayoutPrototype (
  926. uuid_ VARCHAR(75) null,
  927. layoutPrototypeId LONG not null primary key,
  928. companyId LONG,
  929. userId LONG,
  930. userName VARCHAR(75) null,
  931. createDate DATE null,
  932. modifiedDate DATE null,
  933. name STRING null,
  934. description STRING null,
  935. settings_ STRING null,
  936. active_ BOOLEAN
  937. );
  938. create table LayoutRevision (
  939. layoutRevisionId LONG not null primary key,
  940. groupId LONG,
  941. companyId LONG,
  942. userId LONG,
  943. userName VARCHAR(75) null,
  944. createDate DATE null,
  945. modifiedDate DATE null,
  946. layoutSetBranchId LONG,
  947. layoutBranchId LONG,
  948. parentLayoutRevisionId LONG,
  949. head BOOLEAN,
  950. major BOOLEAN,
  951. plid LONG,
  952. privateLayout BOOLEAN,
  953. name STRING null,
  954. title STRING null,
  955. description STRING null,
  956. keywords STRING null,
  957. robots STRING null,
  958. typeSettings TEXT null,
  959. iconImage BOOLEAN,
  960. iconImageId LONG,
  961. themeId VARCHAR(75) null,
  962. colorSchemeId VARCHAR(75) null,
  963. wapThemeId VARCHAR(75) null,
  964. wapColorSchemeId VARCHAR(75) null,
  965. css TEXT null,
  966. status INTEGER,
  967. statusByUserId LONG,
  968. statusByUserName VARCHAR(75) null,
  969. statusDate DATE null
  970. );
  971. create table LayoutSet (
  972. layoutSetId LONG not null primary key,
  973. groupId LONG,
  974. companyId LONG,
  975. createDate DATE null,
  976. modifiedDate DATE null,
  977. privateLayout BOOLEAN,
  978. logo BOOLEAN,
  979. logoId LONG,
  980. themeId VARCHAR(75) null,
  981. colorSchemeId VARCHAR(75) null,
  982. wapThemeId VARCHAR(75) null,
  983. wapColorSchemeId VARCHAR(75) null,
  984. css TEXT null,
  985. pageCount INTEGER,
  986. settings_ TEXT null,
  987. layoutSetPrototypeUuid VARCHAR(75) null,
  988. layoutSetPrototypeLinkEnabled BOOLEAN
  989. );
  990. create table LayoutSetBranch (
  991. layoutSetBranchId LONG not null primary key,
  992. groupId LONG,
  993. companyId LONG,
  994. userId LONG,
  995. userName VARCHAR(75) null,
  996. createDate DATE null,
  997. modifiedDate DATE null,
  998. privateLayout BOOLEAN,
  999. name VARCHAR(75) null,
  1000. description STRING null,
  1001. master BOOLEAN,
  1002. logo BOOLEAN,
  1003. logoId LONG,
  1004. themeId VARCHAR(75) null,
  1005. colorSchemeId VARCHAR(75) null,
  1006. wapThemeId VARCHAR(75) null,
  1007. wapColorSchemeId VARCHAR(75) null,
  1008. css TEXT null,
  1009. settings_ TEXT null,
  1010. layoutSetPrototypeUuid VARCHAR(75) null,
  1011. layoutSetPrototypeLinkEnabled BOOLEAN
  1012. );
  1013. create table LayoutSetPrototype (
  1014. uuid_ VARCHAR(75) null,
  1015. layoutSetPrototypeId LONG not null primary key,
  1016. companyId LONG,
  1017. userId LONG,
  1018. userName VARCHAR(75) null,
  1019. createDate DATE null,
  1020. modifiedDate DATE null,
  1021. name STRING null,
  1022. description STRING null,
  1023. settings_ STRING null,
  1024. active_ BOOLEAN
  1025. );
  1026. create table ListType (
  1027. listTypeId INTEGER not null primary key,
  1028. name VARCHAR(75) null,
  1029. type_ VARCHAR(75) null
  1030. );
  1031. create table Lock_ (
  1032. uuid_ VARCHAR(75) null,
  1033. lockId LONG not null primary key,
  1034. companyId LONG,
  1035. userId LONG,
  1036. userName VARCHAR(75) null,
  1037. createDate DATE null,
  1038. className VARCHAR(75) null,
  1039. key_ VARCHAR(200) null,
  1040. owner VARCHAR(255) null,
  1041. inheritable BOOLEAN,
  1042. expirationDate DATE null
  1043. );
  1044. create table MBBan (
  1045. uuid_ VARCHAR(75) null,
  1046. banId LONG not null primary key,
  1047. groupId LONG,
  1048. companyId LONG,
  1049. userId LONG,
  1050. userName VARCHAR(75) null,
  1051. createDate DATE null,
  1052. modifiedDate DATE null,
  1053. banUserId LONG
  1054. );
  1055. create table MBCategory (
  1056. uuid_ VARCHAR(75) null,
  1057. categoryId LONG not null primary key,
  1058. groupId LONG,
  1059. companyId LONG,
  1060. userId LONG,
  1061. userName VARCHAR(75) null,
  1062. createDate DATE null,
  1063. modifiedDate DATE null,
  1064. parentCategoryId LONG,
  1065. name VARCHAR(75) null,
  1066. description STRING null,
  1067. displayStyle VARCHAR(75) null,
  1068. threadCount INTEGER,
  1069. messageCount INTEGER,
  1070. lastPostDate DATE null,
  1071. status INTEGER,
  1072. statusByUserId LONG,
  1073. statusByUserName VARCHAR(75) null,
  1074. statusDate DATE null
  1075. );
  1076. create table MBDiscussion (
  1077. uuid_ VARCHAR(75) null,
  1078. discussionId LONG not null primary key,
  1079. groupId LONG,
  1080. companyId LONG,
  1081. userId LONG,
  1082. userName VARCHAR(75) null,
  1083. createDate DATE null,
  1084. modifiedDate DATE null,
  1085. classNameId LONG,
  1086. classPK LONG,
  1087. threadId LONG
  1088. );
  1089. create table MBMailingList (
  1090. uuid_ VARCHAR(75) null,
  1091. mailingListId LONG not null primary key,
  1092. groupId LONG,
  1093. companyId LONG,
  1094. userId LONG,
  1095. userName VARCHAR(75) null,
  1096. createDate DATE null,
  1097. modifiedDate DATE null,
  1098. categoryId LONG,
  1099. emailAddress VARCHAR(75) null,
  1100. inProtocol VARCHAR(75) null,
  1101. inServerName VARCHAR(75) null,
  1102. inServerPort INTEGER,
  1103. inUseSSL BOOLEAN,
  1104. inUserName VARCHAR(75) null,
  1105. inPassword VARCHAR(75) null,
  1106. inReadInterval INTEGER,
  1107. outEmailAddress VARCHAR(75) null,
  1108. outCustom BOOLEAN,
  1109. outServerName VARCHAR(75) null,
  1110. outServerPort INTEGER,
  1111. outUseSSL BOOLEAN,
  1112. outUserName VARCHAR(75) null,
  1113. outPassword VARCHAR(75) null,
  1114. allowAnonymous BOOLEAN,
  1115. active_ BOOLEAN
  1116. );
  1117. create table MBMessage (
  1118. uuid_ VARCHAR(75) null,
  1119. messageId LONG not null primary key,
  1120. groupId LONG,
  1121. companyId LONG,
  1122. userId LONG,
  1123. userName VARCHAR(75) null,
  1124. createDate DATE null,
  1125. modifiedDate DATE null,
  1126. classNameId LONG,
  1127. classPK LONG,
  1128. categoryId LONG,
  1129. threadId LONG,
  1130. rootMessageId LONG,
  1131. parentMessageId LONG,
  1132. subject VARCHAR(75) null,
  1133. body TEXT null,
  1134. format VARCHAR(75) null,
  1135. anonymous BOOLEAN,
  1136. priority DOUBLE,
  1137. allowPingbacks BOOLEAN,
  1138. answer BOOLEAN,
  1139. status INTEGER,
  1140. statusByUserId LONG,
  1141. statusByUserName VARCHAR(75) null,
  1142. statusDate DATE null
  1143. );
  1144. create table MBStatsUser (
  1145. statsUserId LONG not null primary key,
  1146. groupId LONG,
  1147. userId LONG,
  1148. messageCount INTEGER,
  1149. lastPostDate DATE null
  1150. );
  1151. create table MBThread (
  1152. uuid_ VARCHAR(75) null,
  1153. threadId LONG not null primary key,
  1154. groupId LONG,
  1155. companyId LONG,
  1156. userId LONG,
  1157. userName VARCHAR(75) null,
  1158. createDate DATE null,
  1159. modifiedDate DATE null,
  1160. categoryId LONG,
  1161. rootMessageId LONG,
  1162. rootMessageUserId LONG,
  1163. messageCount INTEGER,
  1164. viewCount INTEGER,
  1165. lastPostByUserId LONG,
  1166. lastPostDate DATE null,
  1167. priority DOUBLE,
  1168. question BOOLEAN,
  1169. status INTEGER,
  1170. statusByUserId LONG,
  1171. statusByUserName VARCHAR(75) null,
  1172. statusDate DATE null
  1173. );
  1174. create table MBThreadFlag (
  1175. uuid_ VARCHAR(75) null,
  1176. threadFlagId LONG not null primary key,
  1177. groupId LONG,
  1178. companyId LONG,
  1179. userId LONG,
  1180. userName VARCHAR(75) null,
  1181. createDate DATE null,
  1182. modifiedDate DATE null,
  1183. threadId LONG
  1184. );
  1185. create table MDRAction (
  1186. uuid_ VARCHAR(75) null,
  1187. actionId LONG not null primary key,
  1188. groupId LONG,
  1189. companyId LONG,
  1190. userId LONG,
  1191. userName VARCHAR(75) null,
  1192. createDate DATE null,
  1193. modifiedDate DATE null,
  1194. classNameId LONG,
  1195. classPK LONG,
  1196. ruleGroupInstanceId LONG,
  1197. name STRING null,
  1198. description STRING null,
  1199. type_ VARCHAR(255) null,
  1200. typeSettings TEXT null
  1201. );
  1202. create table MDRRule (
  1203. uuid_ VARCHAR(75) null,
  1204. ruleId LONG not null primary key,
  1205. groupId LONG,
  1206. companyId LONG,
  1207. userId LONG,
  1208. userName VARCHAR(75) null,
  1209. createDate DATE null,
  1210. modifiedDate DATE null,
  1211. ruleGroupId LONG,
  1212. name STRING null,
  1213. description STRING null,
  1214. type_ VARCHAR(255) null,
  1215. typeSettings TEXT null
  1216. );
  1217. create table MDRRuleGroup (
  1218. uuid_ VARCHAR(75) null,
  1219. ruleGroupId LONG not null primary key,
  1220. groupId LONG,
  1221. companyId LONG,
  1222. userId LONG,
  1223. userName VARCHAR(75) null,
  1224. createDate DATE null,
  1225. modifiedDate DATE null,
  1226. name STRING null,
  1227. description STRING null
  1228. );
  1229. create table MDRRuleGroupInstance (
  1230. uuid_ VARCHAR(75) null,
  1231. ruleGroupInstanceId LONG not null primary key,
  1232. groupId LONG,
  1233. companyId LONG,
  1234. userId LONG,
  1235. userName VARCHAR(75) null,
  1236. createDate DATE null,
  1237. modifiedDate DATE null,
  1238. classNameId LONG,
  1239. classPK LONG,
  1240. ruleGroupId LONG,
  1241. priority INTEGER
  1242. );
  1243. create table MembershipRequest (
  1244. membershipRequestId LONG not null primary key,
  1245. groupId LONG,
  1246. companyId LONG,
  1247. userId LONG,
  1248. createDate DATE null,
  1249. comments STRING null,
  1250. replyComments STRING null,
  1251. replyDate DATE null,
  1252. replierUserId LONG,
  1253. statusId INTEGER
  1254. );
  1255. create table Organization_ (
  1256. uuid_ VARCHAR(75) null,
  1257. organizationId LONG not null primary key,
  1258. companyId LONG,
  1259. userId LONG,
  1260. userName VARCHAR(75) null,
  1261. createDate DATE null,
  1262. modifiedDate DATE null,
  1263. parentOrganizationId LONG,
  1264. treePath STRING null,
  1265. name VARCHAR(100) null,
  1266. type_ VARCHAR(75) null,
  1267. recursable BOOLEAN,
  1268. regionId LONG,
  1269. countryId LONG,
  1270. statusId INTEGER,
  1271. comments STRING null
  1272. );
  1273. create table OrgGroupRole (
  1274. organizationId LONG not null,
  1275. groupId LONG not null,
  1276. roleId LONG not null,
  1277. primary key (organizationId, groupId, roleId)
  1278. );
  1279. create table OrgLabor (
  1280. orgLaborId LONG not null primary key,
  1281. organizationId LONG,
  1282. typeId INTEGER,
  1283. sunOpen INTEGER,
  1284. sunClose INTEGER,
  1285. monOpen INTEGER,
  1286. monClose INTEGER,
  1287. tueOpen INTEGER,
  1288. tueClose INTEGER,
  1289. wedOpen INTEGER,
  1290. wedClose INTEGER,
  1291. thuOpen INTEGER,
  1292. thuClose INTEGER,
  1293. friOpen INTEGER,
  1294. friClose INTEGER,
  1295. satOpen INTEGER,
  1296. satClose INTEGER
  1297. );
  1298. create table PasswordPolicy (
  1299. uuid_ VARCHAR(75) null,
  1300. passwordPolicyId LONG not null primary key,
  1301. companyId LONG,
  1302. userId LONG,
  1303. userName VARCHAR(75) null,
  1304. createDate DATE null,
  1305. modifiedDate DATE null,
  1306. defaultPolicy BOOLEAN,
  1307. name VARCHAR(75) null,
  1308. description STRING null,
  1309. changeable BOOLEAN,
  1310. changeRequired BOOLEAN,
  1311. minAge LONG,
  1312. checkSyntax BOOLEAN,
  1313. allowDictionaryWords BOOLEAN,
  1314. minAlphanumeric INTEGER,
  1315. minLength INTEGER,
  1316. minLowerCase INTEGER,
  1317. minNumbers INTEGER,
  1318. minSymbols INTEGER,
  1319. minUpperCase INTEGER,
  1320. regex VARCHAR(75) null,
  1321. history BOOLEAN,
  1322. historyCount INTEGER,
  1323. expireable BOOLEAN,
  1324. maxAge LONG,
  1325. warningTime LONG,
  1326. graceLimit INTEGER,
  1327. lockout BOOLEAN,
  1328. maxFailure INTEGER,
  1329. lockoutDuration LONG,
  1330. requireUnlock BOOLEAN,
  1331. resetFailureCount LONG,
  1332. resetTicketMaxAge LONG
  1333. );
  1334. create table PasswordPolicyRel (
  1335. passwordPolicyRelId LONG not null primary key,
  1336. passwordPolicyId LONG,
  1337. classNameId LONG,
  1338. classPK LONG
  1339. );
  1340. create table PasswordTracker (
  1341. passwordTrackerId LONG not null primary key,
  1342. userId LONG,
  1343. createDate DATE null,
  1344. password_ VARCHAR(75) null
  1345. );
  1346. create table Phone (
  1347. uuid_ VARCHAR(75) null,
  1348. phoneId LONG not null primary key,
  1349. companyId LONG,
  1350. userId LONG,
  1351. userName VARCHAR(75) null,
  1352. createDate DATE null,
  1353. modifiedDate DATE null,
  1354. classNameId LONG,
  1355. classPK LONG,
  1356. number_ VARCHAR(75) null,
  1357. extension VARCHAR(75) null,
  1358. typeId INTEGER,
  1359. primary_ BOOLEAN
  1360. );
  1361. create table PluginSetting (
  1362. pluginSettingId LONG not null primary key,
  1363. companyId LONG,
  1364. pluginId VARCHAR(75) null,
  1365. pluginType VARCHAR(75) null,
  1366. roles STRING null,
  1367. active_ BOOLEAN
  1368. );
  1369. create table PollsChoice (
  1370. uuid_ VARCHAR(75) null,
  1371. choiceId LONG not null primary key,
  1372. groupId LONG,
  1373. companyId LONG,
  1374. userId LONG,
  1375. userName VARCHAR(75) null,
  1376. createDate DATE null,
  1377. modifiedDate DATE null,
  1378. questionId LONG,
  1379. name VARCHAR(75) null,
  1380. description STRING null
  1381. );
  1382. create table PollsQuestion (
  1383. uuid_ VARCHAR(75) null,
  1384. questionId LONG not null primary key,
  1385. groupId LONG,
  1386. companyId LONG,
  1387. userId LONG,
  1388. userName VARCHAR(75) null,
  1389. createDate DATE null,
  1390. modifiedDate DATE null,
  1391. title STRING null,
  1392. description STRING null,
  1393. expirationDate DATE null,
  1394. lastVoteDate DATE null
  1395. );
  1396. create table PollsVote (
  1397. uuid_ VARCHAR(75) null,
  1398. voteId LONG not null primary key,
  1399. groupId LONG,
  1400. companyId LONG,
  1401. userId LONG,
  1402. userName VARCHAR(75) null,
  1403. createDate DATE null,
  1404. modifiedDate DATE null,
  1405. questionId LONG,
  1406. choiceId LONG,
  1407. voteDate DATE null
  1408. );
  1409. create table PortalPreferences (
  1410. portalPreferencesId LONG not null primary key,
  1411. ownerId LONG,
  1412. ownerType INTEGER,
  1413. preferences TEXT null
  1414. );
  1415. create table Portlet (
  1416. id_ LONG not null primary key,
  1417. companyId LONG,
  1418. portletId VARCHAR(200) null,
  1419. roles STRING null,
  1420. active_ BOOLEAN
  1421. );
  1422. create table PortletItem (
  1423. portletItemId LONG not null primary key,
  1424. groupId LONG,
  1425. companyId LONG,
  1426. userId LONG,
  1427. userName VARCHAR(75) null,
  1428. createDate DATE null,
  1429. modifiedDate DATE null,
  1430. name VARCHAR(75) null,
  1431. portletId VARCHAR(200) null,
  1432. classNameId LONG
  1433. );
  1434. create table PortletPreferences (
  1435. portletPreferencesId LONG not null primary key,
  1436. ownerId LONG,
  1437. ownerType INTEGER,
  1438. plid LONG,
  1439. portletId VARCHAR(200) null,
  1440. preferences TEXT null
  1441. );
  1442. create table RatingsEntry (
  1443. entryId LONG not null primary key,
  1444. companyId LONG,
  1445. userId LONG,
  1446. userName VARCHAR(75) null,
  1447. createDate DATE null,
  1448. modifiedDate DATE null,
  1449. classNameId LONG,
  1450. classPK LONG,
  1451. score DOUBLE
  1452. );
  1453. create table RatingsStats (
  1454. statsId LONG not null primary key,
  1455. classNameId LONG,
  1456. classPK LONG,
  1457. totalEntries INTEGER,
  1458. totalScore DOUBLE,
  1459. averageScore DOUBLE
  1460. );
  1461. create table Region (
  1462. regionId LONG not null primary key,
  1463. countryId LONG,
  1464. regionCode VARCHAR(75) null,
  1465. name VARCHAR(75) null,
  1466. active_ BOOLEAN
  1467. );
  1468. create table Release_ (
  1469. releaseId LONG not null primary key,
  1470. createDate DATE null,
  1471. modifiedDate DATE null,
  1472. servletContextName VARCHAR(75) null,
  1473. buildNumber INTEGER,
  1474. buildDate DATE null,
  1475. verified BOOLEAN,
  1476. state_ INTEGER,
  1477. testString VARCHAR(1024) null
  1478. );
  1479. create table Repository (
  1480. uuid_ VARCHAR(75) null,
  1481. repositoryId LONG not null primary key,
  1482. groupId LONG,
  1483. companyId LONG,
  1484. userId LONG,
  1485. userName VARCHAR(75) null,
  1486. createDate DATE null,
  1487. modifiedDate DATE null,
  1488. classNameId LONG,
  1489. name VARCHAR(75) null,
  1490. description STRING null,
  1491. portletId VARCHAR(200) null,
  1492. typeSettings TEXT null,
  1493. dlFolderId LONG
  1494. );
  1495. create table RepositoryEntry (
  1496. uuid_ VARCHAR(75) null,
  1497. repositoryEntryId LONG not null primary key,
  1498. groupId LONG,
  1499. companyId LONG,
  1500. userId LONG,
  1501. userName VARCHAR(75) null,
  1502. createDate DATE null,
  1503. modifiedDate DATE null,
  1504. repositoryId LONG,
  1505. mappedId VARCHAR(75) null,
  1506. manualCheckInRequired BOOLEAN
  1507. );
  1508. create table ResourceAction (
  1509. resourceActionId LONG not null primary key,
  1510. name VARCHAR(255) null,
  1511. actionId VARCHAR(75) null,
  1512. bitwiseValue LONG
  1513. );
  1514. create table ResourceBlock (
  1515. resourceBlockId LONG not null primary key,
  1516. companyId LONG,
  1517. groupId LONG,
  1518. name VARCHAR(75) null,
  1519. permissionsHash VARCHAR(75) null,
  1520. referenceCount LONG
  1521. );
  1522. create table ResourceBlockPermission (
  1523. resourceBlockPermissionId LONG not null primary key,
  1524. resourceBlockId LONG,
  1525. roleId LONG,
  1526. actionIds LONG
  1527. );
  1528. create table ResourcePermission (
  1529. resourcePermissionId LONG not null primary key,
  1530. companyId LONG,
  1531. name VARCHAR(255) null,
  1532. scope INTEGER,
  1533. primKey VARCHAR(255) null,
  1534. roleId LONG,
  1535. ownerId LONG,
  1536. actionIds LONG
  1537. );
  1538. create table ResourceTypePermission (
  1539. resourceTypePermissionId LONG not null primary key,
  1540. companyId LONG,
  1541. groupId LONG,
  1542. name VARCHAR(75) null,
  1543. roleId LONG,
  1544. actionIds LONG
  1545. );
  1546. create table Role_ (
  1547. uuid_ VARCHAR(75) null,
  1548. roleId LONG not null primary key,
  1549. companyId LONG,
  1550. userId LONG,
  1551. userName VARCHAR(75) null,
  1552. createDate DATE null,
  1553. modifiedDate DATE null,
  1554. classNameId LONG,
  1555. classPK LONG,
  1556. name VARCHAR(75) null,
  1557. title STRING null,
  1558. description STRING null,
  1559. type_ INTEGER,
  1560. subtype VARCHAR(75) null
  1561. );
  1562. create table SCFrameworkVersi_SCProductVers (
  1563. frameworkVersionId LONG not null,
  1564. productVersionId LONG not null,
  1565. primary key (frameworkVersionId, productVersionId)
  1566. );
  1567. create table SCFrameworkVersion (
  1568. frameworkVersionId LONG not null primary key,
  1569. groupId LONG,
  1570. companyId LONG,
  1571. userId LONG,
  1572. userName VARCHAR(75) null,
  1573. createDate DATE null,
  1574. modifiedDate DATE null,
  1575. name VARCHAR(75) null,
  1576. url STRING null,
  1577. active_ BOOLEAN,
  1578. priority INTEGER
  1579. );
  1580. create table SCLicense (
  1581. licenseId LONG not null primary key,
  1582. name VARCHAR(75) null,
  1583. url STRING null,
  1584. openSource BOOLEAN,
  1585. active_ BOOLEAN,
  1586. recommended BOOLEAN
  1587. );
  1588. create table SCLicenses_SCProductEntries (
  1589. licenseId LONG not null,
  1590. productEntryId LONG not null,
  1591. primary key (licenseId, productEntryId)
  1592. );
  1593. create table SCProductEntry (
  1594. productEntryId LONG not null primary key,
  1595. groupId LONG,
  1596. companyId LONG,
  1597. userId LONG,
  1598. userName VARCHAR(75) null,
  1599. createDate DATE null,
  1600. modifiedDate DATE null,
  1601. name VARCHAR(75) null,
  1602. type_ VARCHAR(75) null,
  1603. tags VARCHAR(255) null,
  1604. shortDescription STRING null,
  1605. longDescription STRING null,
  1606. pageURL STRING null,
  1607. author VARCHAR(75) null,
  1608. repoGroupId VARCHAR(75) null,
  1609. repoArtifactId VARCHAR(75) null
  1610. );
  1611. create table SCProductScreenshot (
  1612. productScreenshotId LONG not null primary key,
  1613. companyId LONG,
  1614. groupId LONG,
  1615. productEntryId LONG,
  1616. thumbnailId LONG,
  1617. fullImageId LONG,
  1618. priority INTEGER
  1619. );
  1620. create table SCProductVersion (
  1621. productVersionId LONG not null primary key,
  1622. companyId LONG,
  1623. userId LONG,
  1624. userName VARCHAR(75) null,
  1625. createDate DATE null,
  1626. modifiedDate DATE null,
  1627. productEntryId LONG,
  1628. version VARCHAR(75) null,
  1629. changeLog STRING null,
  1630. downloadPageURL STRING null,
  1631. directDownloadURL VARCHAR(2000) null,
  1632. repoStoreArtifact BOOLEAN
  1633. );
  1634. create table ServiceComponent (
  1635. serviceComponentId LONG not null primary key,
  1636. buildNamespace VARCHAR(75) null,
  1637. buildNumber LONG,
  1638. buildDate LONG,
  1639. data_ TEXT null
  1640. );
  1641. create table Shard (
  1642. shardId LONG not null primary key,
  1643. classNameId LONG,
  1644. classPK LONG,
  1645. name VARCHAR(75) null
  1646. );
  1647. create table ShoppingCart (
  1648. cartId LONG not null primary key,
  1649. groupId LONG,
  1650. companyId LONG,
  1651. userId LONG,
  1652. userName VARCHAR(75) null,
  1653. createDate DATE null,
  1654. modifiedDate DATE null,
  1655. itemIds STRING null,
  1656. couponCodes VARCHAR(75) null,
  1657. altShipping INTEGER,
  1658. insure BOOLEAN
  1659. );
  1660. create table ShoppingCategory (
  1661. categoryId LONG not null primary key,
  1662. groupId LONG,
  1663. companyId LONG,
  1664. userId LONG,
  1665. userName VARCHAR(75) null,
  1666. createDate DATE null,
  1667. modifiedDate DATE null,
  1668. parentCategoryId LONG,
  1669. name VARCHAR(75) null,
  1670. description STRING null
  1671. );
  1672. create table ShoppingCoupon (
  1673. couponId LONG not null primary key,
  1674. groupId LONG,
  1675. companyId LONG,
  1676. userId LONG,
  1677. userName VARCHAR(75) null,
  1678. createDate DATE null,
  1679. modifiedDate DATE null,
  1680. code_ VARCHAR(75) null,
  1681. name VARCHAR(75) null,
  1682. description STRING null,
  1683. startDate DATE null,
  1684. endDate DATE null,
  1685. active_ BOOLEAN,
  1686. limitCategories STRING null,
  1687. limitSkus STRING null,
  1688. minOrder DOUBLE,
  1689. discount DOUBLE,
  1690. discountType VARCHAR(75) null
  1691. );
  1692. create table ShoppingItem (
  1693. itemId LONG not null primary key,
  1694. groupId LONG,
  1695. companyId LONG,
  1696. userId LONG,
  1697. userName VARCHAR(75) null,
  1698. createDate DATE null,
  1699. modifiedDate DATE null,
  1700. categoryId LONG,
  1701. sku VARCHAR(75) null,
  1702. name VARCHAR(200) null,
  1703. description STRING null,
  1704. properties STRING null,
  1705. fields_ BOOLEAN,
  1706. fieldsQuantities STRING null,
  1707. minQuantity INTEGER,
  1708. maxQuantity INTEGER,
  1709. price DOUBLE,
  1710. discount DOUBLE,
  1711. taxable BOOLEAN,
  1712. shipping DOUBLE,
  1713. useShippingFormula BOOLEAN,
  1714. requiresShipping BOOLEAN,
  1715. stockQuantity INTEGER,
  1716. featured_ BOOLEAN,
  1717. sale_ BOOLEAN,
  1718. smallImage BOOLEAN,
  1719. smallImageId LONG,
  1720. smallImageURL STRING null,
  1721. mediumImage BOOLEAN,
  1722. mediumImageId LONG,
  1723. mediumImageURL STRING null,
  1724. largeImage BOOLEAN,
  1725. largeImageId LONG,
  1726. largeImageURL STRING null
  1727. );
  1728. create table ShoppingItemField (
  1729. itemFieldId LONG not null primary key,
  1730. itemId LONG,
  1731. name VARCHAR(75) null,
  1732. values_ STRING null,
  1733. description STRING null
  1734. );
  1735. create table ShoppingItemPrice (
  1736. itemPriceId LONG not null primary key,
  1737. itemId LONG,
  1738. minQuantity INTEGER,
  1739. maxQuantity INTEGER,
  1740. price DOUBLE,
  1741. discount DOUBLE,
  1742. taxable BOOLEAN,
  1743. shipping DOUBLE,
  1744. useShippingFormula BOOLEAN,
  1745. status INTEGER
  1746. );
  1747. create table ShoppingOrder (
  1748. orderId LONG not null primary key,
  1749. groupId LONG,
  1750. companyId LONG,
  1751. userId LONG,
  1752. userName VARCHAR(75) null,
  1753. createDate DATE null,
  1754. modifiedDate DATE null,
  1755. number_ VARCHAR(75) null,
  1756. tax DOUBLE,
  1757. shipping DOUBLE,
  1758. altShipping VARCHAR(75) null,
  1759. requiresShipping BOOLEAN,
  1760. insure BOOLEAN,
  1761. insurance DOUBLE,
  1762. couponCodes VARCHAR(75) null,
  1763. couponDiscount DOUBLE,
  1764. billingFirstName VARCHAR(75) null,
  1765. billingLastName VARCHAR(75) null,
  1766. billingEmailAddress VARCHAR(75) null,
  1767. billingCompany VARCHAR(75) null,
  1768. billingStreet VARCHAR(75) null,
  1769. billingCity VARCHAR(75) null,
  1770. billingState VARCHAR(75) null,
  1771. billingZip VARCHAR(75) null,
  1772. billingCountry VARCHAR(75) null,
  1773. billingPhone VARCHAR(75) null,
  1774. shipToBilling BOOLEAN,
  1775. shippingFirstName VARCHAR(75) null,
  1776. shippingLastName VARCHAR(75) null,
  1777. shippingEmailAddress VARCHAR(75) null,
  1778. shippingCompany VARCHAR(75) null,
  1779. shippingStreet VARCHAR(75) null,
  1780. shippingCity VARCHAR(75) null,
  1781. shippingState VARCHAR(75) null,
  1782. shippingZip VARCHAR(75) null,
  1783. shippingCountry VARCHAR(75) null,
  1784. shippingPhone VARCHAR(75) null,
  1785. ccName VARCHAR(75) null,
  1786. ccType VARCHAR(75) null,
  1787. ccNumber VARCHAR(75) null,
  1788. ccExpMonth INTEGER,
  1789. ccExpYear INTEGER,
  1790. ccVerNumber VARCHAR(75) null,
  1791. comments STRING null,
  1792. ppTxnId VARCHAR(75) null,
  1793. ppPaymentStatus VARCHAR(75) null,
  1794. ppPaymentGross DOUBLE,
  1795. ppReceiverEmail VARCHAR(75) null,
  1796. ppPayerEmail VARCHAR(75) null,
  1797. sendOrderEmail BOOLEAN,
  1798. sendShippingEmail BOOLEAN
  1799. );
  1800. create table ShoppingOrderItem (
  1801. orderItemId LONG not null primary key,
  1802. orderId LONG,
  1803. itemId VARCHAR(75) null,
  1804. sku VARCHAR(75) null,
  1805. name VARCHAR(200) null,
  1806. description STRING null,
  1807. properties STRING null,
  1808. price DOUBLE,
  1809. quantity INTEGER,
  1810. shippedDate DATE null
  1811. );
  1812. create table SocialActivity (
  1813. activityId LONG not null primary key,
  1814. groupId LONG,
  1815. companyId LONG,
  1816. userId LONG,
  1817. createDate LONG,
  1818. activitySetId LONG,
  1819. mirrorActivityId LONG,
  1820. classNameId LONG,
  1821. classPK LONG,
  1822. parentClassNameId LONG,
  1823. parentClassPK LONG,
  1824. type_ INTEGER,
  1825. extraData STRING null,
  1826. receiverUserId LONG
  1827. );
  1828. create table SocialActivityAchievement (
  1829. activityAchievementId LONG not null primary key,
  1830. groupId LONG,
  1831. companyId LONG,
  1832. userId LONG,
  1833. createDate LONG,
  1834. name VARCHAR(75) null,
  1835. firstInGroup BOOLEAN
  1836. );
  1837. create table SocialActivityCounter (
  1838. activityCounterId LONG not null primary key,
  1839. groupId LONG,
  1840. companyId LONG,
  1841. classNameId LONG,
  1842. classPK LONG,
  1843. name VARCHAR(75) null,
  1844. ownerType INTEGER,
  1845. currentValue INTEGER,
  1846. totalValue INTEGER,
  1847. graceValue INTEGER,
  1848. startPeriod INTEGER,
  1849. endPeriod INTEGER,
  1850. active_ BOOLEAN
  1851. );
  1852. create table SocialActivityLimit (
  1853. activityLimitId LONG not null primary key,
  1854. groupId LONG,
  1855. companyId LONG,
  1856. userId LONG,
  1857. classNameId LONG,
  1858. classPK LONG,
  1859. activityType INTEGER,
  1860. activityCounterName VARCHAR(75) null,
  1861. value VARCHAR(75) null
  1862. );
  1863. create table SocialActivitySet (
  1864. activitySetId LONG not null primary key,
  1865. groupId LONG,
  1866. companyId LONG,
  1867. userId LONG,
  1868. createDate LONG,
  1869. modifiedDate LONG,
  1870. classNameId LONG,
  1871. classPK LONG,
  1872. type_ INTEGER,
  1873. extraData STRING null,
  1874. activityCount INTEGER
  1875. );
  1876. create table SocialActivitySetting (
  1877. activitySettingId LONG not null primary key,
  1878. groupId LONG,
  1879. companyId LONG,
  1880. classNameId LONG,
  1881. activityType INTEGER,
  1882. name VARCHAR(75) null,
  1883. value VARCHAR(1024) null
  1884. );
  1885. create table SocialRelation (
  1886. uuid_ VARCHAR(75) null,
  1887. relationId LONG not null primary key,
  1888. companyId LONG,
  1889. createDate LONG,
  1890. userId1 LONG,
  1891. userId2 LONG,
  1892. type_ INTEGER
  1893. );
  1894. create table SocialRequest (
  1895. uuid_ VARCHAR(75) null,
  1896. requestId LONG not null primary key,
  1897. groupId LONG,
  1898. companyId LONG,
  1899. userId LONG,
  1900. createDate LONG,
  1901. modifiedDate LONG,
  1902. classNameId LONG,
  1903. classPK LONG,
  1904. type_ INTEGER,
  1905. extraData STRING null,
  1906. receiverUserId LONG,
  1907. status INTEGER
  1908. );
  1909. create table Subscription (
  1910. subscriptionId LONG not null primary key,
  1911. companyId LONG,
  1912. userId LONG,
  1913. userName VARCHAR(75) null,
  1914. createDate DATE null,
  1915. modifiedDate DATE null,
  1916. classNameId LONG,
  1917. classPK LONG,
  1918. frequency VARCHAR(75) null
  1919. );
  1920. create table SystemEvent (
  1921. systemEventId LONG not null primary key,
  1922. groupId LONG,
  1923. companyId LONG,
  1924. userId LONG,
  1925. userName VARCHAR(75) null,
  1926. createDate DATE null,
  1927. classNameId LONG,
  1928. classPK LONG,
  1929. classUuid VARCHAR(75) null,
  1930. referrerClassNameId LONG,
  1931. parentSystemEventId LONG,
  1932. systemEventSetKey LONG,
  1933. type_ INTEGER,
  1934. extraData TEXT null
  1935. );
  1936. create table Team (
  1937. teamId LONG not null primary key,
  1938. companyId LONG,
  1939. userId LONG,
  1940. userName VARCHAR(75) null,
  1941. createDate DATE null,
  1942. modifiedDate DATE null,
  1943. groupId LONG,
  1944. name VARCHAR(75) null,
  1945. description STRING null
  1946. );
  1947. create table Ticket (
  1948. ticketId LONG not null primary key,
  1949. companyId LONG,
  1950. createDate DATE null,
  1951. classNameId LONG,
  1952. classPK LONG,
  1953. key_ VARCHAR(75) null,
  1954. type_ INTEGER,
  1955. extraInfo TEXT null,
  1956. expirationDate DATE null
  1957. );
  1958. create table TrashEntry (
  1959. entryId LONG not null primary key,
  1960. groupId LONG,
  1961. companyId LONG,
  1962. userId LONG,
  1963. userName VARCHAR(75) null,
  1964. createDate DATE null,
  1965. classNameId LONG,
  1966. classPK LONG,
  1967. systemEventSetKey LONG,
  1968. typeSettings TEXT null,
  1969. status INTEGER
  1970. );
  1971. create table TrashVersion (
  1972. versionId LONG not null primary key,
  1973. entryId LONG,
  1974. classNameId LONG,
  1975. classPK LONG,
  1976. status INTEGER
  1977. );
  1978. create table UserNotificationDelivery (
  1979. userNotificationDeliveryId LONG not null primary key,
  1980. companyId LONG,
  1981. userId LONG,
  1982. portletId VARCHAR(200) null,
  1983. classNameId LONG,
  1984. notificationType INTEGER,
  1985. deliveryType INTEGER,
  1986. deliver BOOLEAN
  1987. );
  1988. create table User_ (
  1989. uuid_ VARCHAR(75) null,
  1990. userId LONG not null primary key,
  1991. companyId LONG,
  1992. createDate DATE null,
  1993. modifiedDate DATE null,
  1994. defaultUser BOOLEAN,
  1995. contactId LONG,
  1996. password_ VARCHAR(75) null,
  1997. passwordEncrypted BOOLEAN,
  1998. passwordReset BOOLEAN,
  1999. passwordModifiedDate DATE null,
  2000. digest VARCHAR(255) null,
  2001. reminderQueryQuestion VARCHAR(75) null,
  2002. reminderQueryAnswer VARCHAR(75) null,
  2003. graceLoginCount INTEGER,
  2004. screenName VARCHAR(75) null,
  2005. emailAddress VARCHAR(75) null,
  2006. facebookId LONG,
  2007. ldapServerId LONG,
  2008. openId VARCHAR(1024) null,
  2009. portraitId LONG,
  2010. languageId VARCHAR(75) null,
  2011. timeZoneId VARCHAR(75) null,
  2012. greeting VARCHAR(255) null,
  2013. comments STRING null,
  2014. firstName VARCHAR(75) null,
  2015. middleName VARCHAR(75) null,
  2016. lastName VARCHAR(75) null,
  2017. jobTitle VARCHAR(100) null,
  2018. loginDate DATE null,
  2019. loginIP VARCHAR(75) null,
  2020. lastLoginDate DATE null,
  2021. lastLoginIP VARCHAR(75) null,
  2022. lastFailedLoginDate DATE null,
  2023. failedLoginAttempts INTEGER,
  2024. lockout BOOLEAN,
  2025. lockoutDate DATE null,
  2026. agreedToTermsOfUse BOOLEAN,
  2027. emailAddressVerified BOOLEAN,
  2028. status INTEGER
  2029. );
  2030. create table UserGroup (
  2031. uuid_ VARCHAR(75) null,
  2032. userGroupId LONG not null primary key,
  2033. companyId LONG,
  2034. userId LONG,
  2035. userName VARCHAR(75) null,
  2036. createDate DATE null,
  2037. modifiedDate DATE null,
  2038. parentUserGroupId LONG,
  2039. name VARCHAR(75) null,
  2040. description STRING null,
  2041. addedByLDAPImport BOOLEAN
  2042. );
  2043. create table UserGroupGroupRole (
  2044. userGroupId LONG not null,
  2045. groupId LONG not null,
  2046. roleId LONG not null,
  2047. primary key (userGroupId, groupId, roleId)
  2048. );
  2049. create table UserGroupRole (
  2050. userId LONG not null,
  2051. groupId LONG not null,
  2052. roleId LONG not null,
  2053. primary key (userId, groupId, roleId)
  2054. );
  2055. create table UserGroups_Teams (
  2056. teamId LONG not null,
  2057. userGroupId LONG not null,
  2058. primary key (teamId, userGroupId)
  2059. );
  2060. create table UserIdMapper (
  2061. userIdMapperId LONG not null primary key,
  2062. userId LONG,
  2063. type_ VARCHAR(75) null,
  2064. description VARCHAR(75) null,
  2065. externalUserId VARCHAR(75) null
  2066. );
  2067. create table UserNotificationEvent (
  2068. uuid_ VARCHAR(75) null,
  2069. userNotificationEventId LONG not null primary key,
  2070. companyId LONG,
  2071. userId LONG,
  2072. type_ VARCHAR(75) null,
  2073. timestamp LONG,
  2074. deliverBy LONG,
  2075. delivered BOOLEAN,
  2076. payload TEXT null,
  2077. archived BOOLEAN
  2078. );
  2079. create table Users_Groups (
  2080. groupId LONG not null,
  2081. userId LONG not null,
  2082. primary key (groupId, userId)
  2083. );
  2084. create table Users_Orgs (
  2085. organizationId LONG not null,
  2086. userId LONG not null,
  2087. primary key (organizationId, userId)
  2088. );
  2089. create table Users_Roles (
  2090. roleId LONG not null,
  2091. userId LONG not null,
  2092. primary key (roleId, userId)
  2093. );
  2094. create table Users_Teams (
  2095. teamId LONG not null,
  2096. userId LONG not null,
  2097. primary key (teamId, userId)
  2098. );
  2099. create table Users_UserGroups (
  2100. userId LONG not null,
  2101. userGroupId LONG not null,
  2102. primary key (userId, userGroupId)
  2103. );
  2104. create table UserTracker (
  2105. userTrackerId LONG not null primary key,
  2106. companyId LONG,
  2107. userId LONG,
  2108. modifiedDate DATE null,
  2109. sessionId VARCHAR(200) null,
  2110. remoteAddr VARCHAR(75) null,
  2111. remoteHost VARCHAR(75) null,
  2112. userAgent VARCHAR(200) null
  2113. );
  2114. create table UserTrackerPath (
  2115. userTrackerPathId LONG not null primary key,
  2116. userTrackerId LONG,
  2117. path_ STRING null,
  2118. pathDate DATE null
  2119. );
  2120. create table VirtualHost (
  2121. virtualHostId LONG not null primary key,
  2122. companyId LONG,
  2123. layoutSetId LONG,
  2124. hostname VARCHAR(75) null
  2125. );
  2126. create table WebDAVProps (
  2127. webDavPropsId LONG not null primary key,
  2128. companyId LONG,
  2129. createDate DATE null,
  2130. modifiedDate DATE null,
  2131. classNameId LONG,
  2132. classPK LONG,
  2133. props TEXT null
  2134. );
  2135. create table Website (
  2136. uuid_ VARCHAR(75) null,
  2137. websiteId LONG not null primary key,
  2138. companyId LONG,
  2139. userId LONG,
  2140. userName VARCHAR(75) null,
  2141. createDate DATE null,
  2142. modifiedDate DATE null,
  2143. classNameId LONG,
  2144. classPK LONG,
  2145. url STRING null,
  2146. typeId INTEGER,
  2147. primary_ BOOLEAN
  2148. );
  2149. create table WikiNode (
  2150. uuid_ VARCHAR(75) null,
  2151. nodeId LONG not null primary key,
  2152. groupId LONG,
  2153. companyId LONG,
  2154. userId LONG,
  2155. userName VARCHAR(75) null,
  2156. createDate DATE null,
  2157. modifiedDate DATE null,
  2158. name VARCHAR(75) null,
  2159. description STRING null,
  2160. lastPostDate DATE null,
  2161. status INTEGER,
  2162. statusByUserId LONG,
  2163. statusByUserName VARCHAR(75) null,
  2164. statusDate DATE null
  2165. );
  2166. create table WikiPage (
  2167. uuid_ VARCHAR(75) null,
  2168. pageId LONG not null primary key,
  2169. resourcePrimKey LONG,
  2170. groupId LONG,
  2171. companyId LONG,
  2172. userId LONG,
  2173. userName VARCHAR(75) null,
  2174. createDate DATE null,
  2175. modifiedDate DATE null,
  2176. nodeId LONG,
  2177. title VARCHAR(255) null,
  2178. version DOUBLE,
  2179. minorEdit BOOLEAN,
  2180. content TEXT null,
  2181. summary STRING null,
  2182. format VARCHAR(75) null,
  2183. head BOOLEAN,
  2184. parentTitle VARCHAR(255) null,
  2185. redirectTitle VARCHAR(255) null,
  2186. status INTEGER,
  2187. statusByUserId LONG,
  2188. statusByUserName VARCHAR(75) null,
  2189. statusDate DATE null
  2190. );
  2191. create table WikiPageResource (
  2192. uuid_ VARCHAR(75) null,
  2193. resourcePrimKey LONG not null primary key,
  2194. nodeId LONG,
  2195. title VARCHAR(255) null
  2196. );
  2197. create table WorkflowDefinitionLink (
  2198. workflowDefinitionLinkId LONG not null primary key,
  2199. groupId LONG,
  2200. companyId LONG,
  2201. userId LONG,
  2202. userName VARCHAR(75) null,
  2203. createDate DATE null,
  2204. modifiedDate DATE null,
  2205. classNameId LONG,
  2206. classPK LONG,
  2207. typePK LONG,
  2208. workflowDefinitionName VARCHAR(75) null,
  2209. workflowDefinitionVersion INTEGER
  2210. );
  2211. create table WorkflowInstanceLink (
  2212. workflowInstanceLinkId LONG not null primary key,
  2213. groupId LONG,
  2214. companyId LONG,
  2215. userId LONG,
  2216. userName VARCHAR(75) null,
  2217. createDate DATE null,
  2218. modifiedDate DATE null,
  2219. classNameId LONG,
  2220. classPK LONG,
  2221. workflowInstanceId LONG
  2222. );