Guest User

Untitled

a guest
Oct 19th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.56 KB | None | 0 0
  1. @startuml
  2.  
  3. /'
  4. ' ****************
  5. ' *** Entities ***
  6. ' ****************
  7. '/
  8.  
  9. class AgreementDocument {
  10. id: Int
  11. title: Varchar
  12. description: Text
  13. pages: Int
  14. templateId: Varchar
  15. internalTitle: Varchar
  16. }
  17.  
  18. class AgreementEnvelope {
  19. id: Int
  20. signed: TinyInt
  21. envelopeId: Varchar
  22. lastChecked: BigInt
  23. }
  24.  
  25. class AgreementToSign {
  26. id: Int
  27. userId: Int
  28. documentId: Int
  29. envelopeId: Int
  30. }
  31.  
  32. class AllowedEmail {
  33. id: Int
  34. email: Varchar
  35. isPattern: TinyInt
  36. }
  37.  
  38. class ConsultationRequester {
  39. id: Int
  40. status: EnumOf(open, closed, in progress)
  41. investmentId: Int
  42. userId: Int
  43. }
  44.  
  45. class Disclosure {
  46. id: Int
  47. value: Text
  48. slug: TinyText
  49. investmentId: Int
  50. }
  51.  
  52. class DocumentCategory {
  53. id: Int
  54. name: Varchar
  55. order: Int
  56. investmentId: Int
  57. toggled: TinyInt
  58. highlighted: TinyInt
  59. }
  60.  
  61. class Email {
  62. id: Int
  63. address: Varchar
  64. active: TinyInt
  65. }
  66.  
  67. class Feedback {
  68. id: Int
  69. content: LongText
  70. }
  71.  
  72. class Follower {
  73. id: Int
  74. firstname: Varchar
  75. lastname: Varchar
  76. country: Varchar
  77. email: Varchar
  78. }
  79.  
  80. class Identification {
  81. id: Int
  82. sessionId: Varchar
  83. result: Varchar
  84. time: Varchar
  85. phone: Varchar
  86. email: Varchar
  87. firstName: Varchar
  88. lastName: Varchar
  89. birthdate: Varchar
  90. birthplace: Varchar
  91. nationality: Varchar
  92. gender: Varchar
  93. street: Varchar
  94. streetNumber: Varchar
  95. city: Varchar
  96. postCode: Varchar
  97. country: Varchar
  98. idType: Varchar
  99. idNumber: Varchar
  100. idExpiration: Varchar
  101. idIssueDate: Varchar
  102. idIssuedBy: Varchar
  103. idCountry: Varchar
  104. idFront: Varchar
  105. idBack: Varchar
  106. reason: Varchar
  107. rawDocument: Text
  108. isActive: TinyInt
  109. isPending: TinyInt
  110. userId: Int
  111. }
  112.  
  113. class Investment {
  114. id: Int
  115. name: Int
  116. description: Text
  117. details: Text
  118. state: EnumOf(open, closed, upcoming, pipeline)
  119. specificationId: Int
  120. enabled: TinyInt
  121. allocation: Int
  122. fundraisedAmount: Int
  123. hidden: TinyInt
  124. fundraisingStatus: EnumOf(open, closed)
  125. feederVehicle: Text
  126. s3folder: Varchar
  127. realizedGmm: Float
  128. realizedIrr: Float
  129. }
  130.  
  131. class InvestmentAgreement {
  132. id: Int
  133. investmentId: Int
  134. documentInt: Int
  135. }
  136.  
  137. class InvestmentConsent {
  138. id: Int
  139. required: TinyInt
  140. title: Text
  141. type: Varchar
  142. investmentId: Int
  143. }
  144.  
  145. class InvestmentDocument {
  146. id: Int
  147. displayName: Varchar
  148. fileName: Varchar
  149. categoryId: Int
  150. investmentId: Int
  151. subscribersOnly: TinyInt
  152. }
  153.  
  154. class InvestmentSpecification {
  155. id: Int
  156. assetClass: Varchar
  157. targetGrossIR: Varchar
  158. targetSize: Varchar
  159. targetGrossMM: Varchar
  160. geographies: Varchar
  161. minCommitment: Int
  162. IndustryFocus: Varchar
  163. description: Text
  164. capitalCalled: Float
  165. currency: Varchar
  166. closingDate: Varchar
  167. mostRecentClosing: Varchar
  168. totalIrrRealized: Varchar
  169. totalMoneyMultipleRealized: Varchar
  170. totalCapitalDeployed: Varchar
  171. }
  172.  
  173. class InvestmentsFollower {
  174. id: Int
  175. firstname: Varchar
  176. lastName: Varchar
  177. country: Varchar
  178. email: Varchar
  179. createdAt: DateTime
  180. investmentState: EnumOf(open, closed, upcoming, pipeline)
  181. buttonText: TinyText
  182. investmentId: Int
  183. userId: Int
  184. }
  185.  
  186. class InvestorProfile {
  187. id: Int
  188. city: Varchar
  189. country: Varchar
  190. postalCode: Varchar
  191. birthDate: Varchar
  192. taxIdNumber: Varchar
  193. address: Varchar
  194. phone: Varchar
  195. email: Varchar
  196. fullname: Varchar
  197. bankLocation: Varchar
  198. bankName: Varchar
  199. iban: Varchar
  200. nationality: Varchar
  201. passportNationality: Varchar
  202. passportNumber: Varchar
  203. swiftCode: Varchar
  204. taxResidence: Varchar
  205. investorType: EnumOf(professional, semi-professional)
  206. otherEmails: Text
  207. birthCity: Varchar
  208. birthCountry: Varchar
  209. }
  210.  
  211. class Item {
  212. id: String
  213. order: Int
  214. label: Varchar
  215. value: Varchar
  216. investmentId: Int
  217. }
  218.  
  219. class Prospect {
  220. id: Int
  221. firstname: Varchar
  222. lastName: Varchar
  223. country: Varchar
  224. city: Varchar
  225. postalCode: Varchar
  226. birthDate: Varchar
  227. bankName: Varchar
  228. iban: Varchar
  229. token: Varchar
  230. onboarded: TinyInt
  231. phone: Varchar
  232. taxId: Varchar
  233. taxResidence: Varchar
  234. address: Varchar
  235. email: Varchar
  236. companyName: Varchar
  237. documentType: Varchar
  238. documentNationality: Varchar
  239. documentNumber Varchar
  240. otherEmails Text
  241. birthCity: Varchar
  242. birthCountry: Varchar
  243. emailSent: TinyInt
  244.  
  245. }
  246.  
  247. class ProspectSubscription {
  248. id: Int
  249. commitment: Int
  250. investmentId: Int
  251. prospectId: Int
  252. commitmentDate: DateTime
  253. }
  254.  
  255. class Questionnaire {
  256. id: Int
  257. content: LongText
  258. }
  259.  
  260. class Subscription {
  261. id: Int
  262. investmentId: Int
  263. userId: Int
  264. confirmed: TinyInt
  265. commitment: BigInt
  266. feedbackId: Int
  267. approvedAt: DateTime
  268. documentsSigned: TinyInt
  269. isCompany: TinyInt
  270. approvedById: Int
  271. isAllocationRequested: TinyInt
  272. documentsSignedEmailSent: TinyInt
  273. investorInformation: Text
  274. country: Varchar
  275. }
  276.  
  277. class SubscriptionConsent {
  278. id: Int
  279. checkedAt: DateTime
  280. subscriptionId: Int
  281. consentId: Int
  282. }
  283.  
  284. class SubscriptionDocument {
  285. id: Int
  286. displayName: Varchar
  287. fileName: Varchar
  288. order: Int
  289. categoryId: Int
  290. subscriptionId: Int
  291. }
  292.  
  293. class Tab {
  294. id: Int
  295. name: Varchar
  296. slug: TinyInt
  297. order: Int
  298. data: Json
  299. sections: Text
  300. investmentId: Int
  301. }
  302.  
  303. class User {
  304. id: Int
  305. firstname: Varchar
  306. lastname: Varchar
  307. companyName: Varchar
  308. password: Varchar
  309. verified: Int
  310. emailId: Int
  311. questionnaireId: Int
  312. passwordChangeRequestTimestamp: BigInt
  313. passwordChanged: TinyInt
  314. investorProfileId: Int
  315. loginAttempts: TinyInt
  316. country: Varchar
  317. roles: Text
  318. terms: TinyInt
  319. nda: TinyInt
  320. note: MediumText
  321. suitabilityChecked: TinyInt
  322. isTestUser: TinyInt
  323. confirmationsSent: TinyInt
  324. allocationRemaindersSent: TinyInt
  325. profileCompletedMailSent: TinyInt
  326. isAccredited: TinyInt
  327. }
  328.  
  329. /'
  330. ' ****************************************************************************************
  331. '/
  332.  
  333. /'
  334. ' *****************
  335. ' *** Relations ***
  336. ' *****************
  337. '/
  338.  
  339.  
  340. /'
  341. ' AgreementDocument
  342. '/
  343.  
  344.  
  345. /'
  346. ' AgreementEnvelope
  347. '/
  348.  
  349. AgreementEnvelope "1" *-- "1" User:> uses
  350. AgreementEnvelope "1" *-- "1" Investment:> uses
  351.  
  352. /'
  353. ' AgreementToSign
  354. '/
  355.  
  356. /'
  357. ' AllowedEmail
  358. '/
  359.  
  360. /'
  361. ' ConsultationRequester
  362. '/
  363.  
  364. ConsultationRequester "1" *-- "1" Investment:> uses
  365. ConsultationRequester "1" *-- "1" User:> uses
  366.  
  367. /'
  368. ' Disclosure
  369. '/
  370.  
  371. /'
  372. ' DocumentCategory
  373. '/
  374.  
  375. DocumentCategory "1" o-- "1..n" InvestmentDocument:> is composed of
  376. DocumentCategory "1" o-- "1..n" SubscriptionDocument:> is composed of
  377.  
  378. /'
  379. ' Email
  380. '/
  381.  
  382. /'
  383. ' Feedback
  384. '/
  385.  
  386. /'
  387. ' Follower
  388. '/
  389.  
  390. /'
  391. ' Identification
  392. '/
  393.  
  394. /'
  395. ' Investment
  396. '/
  397.  
  398. Investment "1" o-- "1..n" InvestmentAgreement:> has
  399. Investment "1" *-- "1" Disclosure:> uses
  400. Investment "1" o-- "1..n" DocumentCategory:> is composed of
  401. Investment "1" o-- "1..n" InvestmentConsent:> is composed of
  402. Investment "1" o-- "1..n" InvestmentDocument:> is composed of
  403. Investment "1" *-- "1" InvestmentSpecification:> has (add cascade to be (is composed of))
  404. Investment "1" o-- "1..n" InvestmentDocument:> has
  405. Investment "1" o-- "1..n" InvestmentsFollower:> is composed of
  406. Investment "1" o-- "1..n" Item:> has (add cascade to be (is composed of))
  407. Investment "1" o-- "1..n" ProspectSubscription:> has
  408. Investment "1" o-- "1..n" Subscription:> has
  409. Investment "1" o-- "1..n" Tab:> has (add cascade to be (is composed of))
  410.  
  411. /'
  412. ' InvestmentAgreement
  413. '/
  414.  
  415. /'
  416. ' InvestmentConsent
  417. '/
  418.  
  419. /'
  420. ' InvestmentDocument
  421. '/
  422.  
  423. /'
  424. ' InvestorProfile
  425. '/
  426.  
  427. /'
  428. ' Item
  429. '/
  430.  
  431. /'
  432. ' Prospect
  433. '/
  434.  
  435. Prospect "1" o-- "1..n" ProspectSubscription:> has (add cascade to be (is composed of))
  436.  
  437. /'
  438. ' ProspectSubscription
  439. '/
  440.  
  441. /'
  442. ' Questionnaire
  443. '/
  444.  
  445. /'
  446. ' Subscription
  447. '/
  448.  
  449. Subscription "1" o-- "1" Feedback:> is composed of
  450. Subscription "1" o-- "1..n" SubscriptionConsent:> is composed of
  451. Subscription "1" o-- "1..n" SubscriptionDocument:> has
  452.  
  453. /'
  454. ' SubscriptionConsent
  455. '/
  456.  
  457. /'
  458. ' SubscriptionDocument
  459. '/
  460.  
  461. /'
  462. ' Tab
  463. '/
  464.  
  465. /'
  466. ' User
  467. '/
  468.  
  469. User "1" o-- "1..n" Identification:> has
  470. User "1" o-- "1..n" Subscription:> has
  471.  
  472. @enduml
Add Comment
Please, Sign In to add comment