summaryrefslogtreecommitdiff
path: root/doc/database/ledgersmb.html
blob: 1011d507158ef34f4029c538522d90bf4b7539fb (plain)
  1. <!-- $Header: /cvsroot/autodoc/autodoc/html.tmpl,v 1.4 2006/05/16 19:01:27 rbt Exp $ -->
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  3. "http://www.w3.org/TR/html4/strict.dtd">
  4. <html>
  5. <head>
  6. <title>Index for ledgersmb</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  8. <style type="text/css">
  9. BODY {
  10. color: #000000;
  11. background-color: #FFFFFF;
  12. font-family: Helvetica, sans-serif;
  13. }
  14. P {
  15. margin-top: 5px;
  16. margin-bottom: 5px;
  17. }
  18. P.w3ref {
  19. font-size: 8pt;
  20. font-style: italic;
  21. text-align: right;
  22. }
  23. P.detail {
  24. font-size: 10pt;
  25. }
  26. .error {
  27. color: #FFFFFF;
  28. background-color: #FF0000;
  29. }
  30. H1, H2, H3, H4, H5, H6 {
  31. }
  32. OL {
  33. list-style-type: upper-alpha;
  34. }
  35. UL.topic {
  36. list-style-type: upper-alpha;
  37. }
  38. LI.topic {
  39. font-weight : bold;
  40. }
  41. HR {
  42. color: #00FF00;
  43. background-color: #808080;
  44. }
  45. TABLE {
  46. border-width: medium;
  47. padding: 3px;
  48. background-color: #000000;
  49. width: 90%;
  50. }
  51. CAPTION {
  52. text-transform: capitalize;
  53. font-weight : bold;
  54. font-size: 14pt;
  55. }
  56. TH {
  57. color: #FFFFFF;
  58. background-color: #000000;
  59. text-align: left;
  60. }
  61. TR {
  62. color: #000000;
  63. background-color: #000000;
  64. vertical-align: top;
  65. }
  66. TR.tr0 {
  67. background-color: #F0F0F0;
  68. }
  69. TR.tr1 {
  70. background-color: #D8D8D8;
  71. }
  72. TD {
  73. font-size: 12pt;
  74. }
  75. TD.col0 {
  76. font-weight : bold;
  77. width: 20%;
  78. }
  79. TD.col1 {
  80. font-style: italic;
  81. width: 15%;
  82. }
  83. TD.col2 {
  84. font-size: 12px;
  85. }
  86. </style>
  87. <link rel="stylesheet" type="text/css" media="all" href="all.css">
  88. <link rel="stylesheet" type="text/css" media="screen" href="screen.css">
  89. <link rel="stylesheet" type="text/css" media="print" href="print.css">
  90. <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
  91. </head>
  92. <body>
  93. <!-- Primary Index -->
  94. <p><br><br>Dumped on 2007-03-22</p>
  95. <h1><a name="index">Index of database - ledgersmb</a></h1>
  96. <ul>
  97. <li><a name="public.schema">public</a></li><ul>
  98. <li><a href="#public.table.acc-trans">acc_trans</a></li><li><a href="#public.table.ap">ap</a></li><li><a href="#public.table.ar">ar</a></li><li><a href="#public.table.assembly">assembly</a></li><li><a href="#public.table.audittrail">audittrail</a></li><li><a href="#public.table.business">business</a></li><li><a href="#public.table.chart">chart</a></li><li><a href="#public.table.custom-field-catalog">custom_field_catalog</a></li><li><a href="#public.table.custom-table-catalog">custom_table_catalog</a></li><li><a href="#public.table.customer">customer</a></li><li><a href="#public.table.customertax">customertax</a></li><li><a href="#public.table.defaults">defaults</a></li><li><a href="#public.table.department">department</a></li><li><a href="#public.table.dpt-trans">dpt_trans</a></li><li><a href="#public.table.employee">employee</a></li><li><a href="#public.table.exchangerate">exchangerate</a></li><li><a href="#public.table.gifi">gifi</a></li><li><a href="#public.table.gl">gl</a></li><li><a href="#public.table.inventory">inventory</a></li><li><a href="#public.table.invoice">invoice</a></li><li><a href="#public.table.jcitems">jcitems</a></li><li><a href="#public.table.language">language</a></li><li><a href="#public.table.makemodel">makemodel</a></li><li><a href="#public.table.oe">oe</a></li><li><a href="#public.table.orderitems">orderitems</a></li><li><a href="#public.table.parts">parts</a></li><li><a href="#public.table.partscustomer">partscustomer</a></li><li><a href="#public.table.partsgroup">partsgroup</a></li><li><a href="#public.table.partstax">partstax</a></li><li><a href="#public.table.partsvendor">partsvendor</a></li><li><a href="#public.table.pricegroup">pricegroup</a></li><li><a href="#public.table.project">project</a></li><li><a href="#public.table.recurring">recurring</a></li><li><a href="#public.table.recurringemail">recurringemail</a></li><li><a href="#public.table.recurringprint">recurringprint</a></li><li><a href="#public.table.shipto">shipto</a></li><li><a href="#public.table.sic">sic</a></li><li><a href="#public.table.status">status</a></li><li><a href="#public.table.tax">tax</a></li><li><a href="#public.table.taxcategory">taxcategory</a></li><li><a href="#public.table.taxmodule">taxmodule</a></li><li><a href="#public.table.transactions">transactions</a></li><li><a href="#public.table.translation">translation</a></li><li><a href="#public.table.vendor">vendor</a></li><li><a href="#public.table.vendortax">vendortax</a></li><li><a href="#public.table.warehouse">warehouse</a></li><li><a href="#public.table.yearend">yearend</a></li>
  99. <li><a href="#public.function.add-custom-field-character-varying-character-varying-character-varying">add_custom_field( character varying, character varying, character varying )</a></li><li><a href="#public.function.avgcost-integer">avgcost( integer )</a></li><li><a href="#public.function.check-department">check_department( )</a></li><li><a href="#public.function.check-inventory">check_inventory( )</a></li><li><a href="#public.function.del-customer">del_customer( )</a></li><li><a href="#public.function.del-department">del_department( )</a></li><li><a href="#public.function.del-exchangerate">del_exchangerate( )</a></li><li><a href="#public.function.del-recurring">del_recurring( )</a></li><li><a href="#public.function.del-vendor">del_vendor( )</a></li><li><a href="#public.function.del-yearend">del_yearend( )</a></li><li><a href="#public.function.drop-custom-field-character-varying-character-varying">drop_custom_field( character varying, character varying )</a></li><li><a href="#public.function.lastcost-integer">lastcost( integer )</a></li><li><a href="#public.function.trigger-parts-short">trigger_parts_short( )</a></li><li><a href="#public.function.update-user-integer-text">update_user( integer, text )</a></li>
  100. </ul>
  101. </ul>
  102. <!-- Schema Creation -->
  103. <!-- publicpublic -->
  104. <hr>
  105. <h2>Table:
  106. <a name="public.table.acc-trans">acc_trans</a>
  107. </h2>
  108. <table width="100%" cellspacing="0" cellpadding="3">
  109. <caption>acc_trans Structure</caption>
  110. <tr>
  111. <th>F-Key</th>
  112. <th>Name</th>
  113. <th>Type</th>
  114. <th>Description</th>
  115. </tr>
  116. <tr class="tr0">
  117. <td>
  118. </td>
  119. <td>trans_id</td>
  120. <td>integer</td>
  121. <td><i>
  122. </i>
  123. </td>
  124. </tr>
  125. <tr class="tr1">
  126. <td>
  127. <a href="#public.table.chart">chart.id</a>
  128. </td>
  129. <td>chart_id</td>
  130. <td>integer</td>
  131. <td><i>
  132. NOT NULL
  133. </i>
  134. </td>
  135. </tr>
  136. <tr class="tr0">
  137. <td>
  138. </td>
  139. <td>amount</td>
  140. <td>numeric</td>
  141. <td><i>
  142. </i>
  143. </td>
  144. </tr>
  145. <tr class="tr1">
  146. <td>
  147. </td>
  148. <td>transdate</td>
  149. <td>date</td>
  150. <td><i>
  151. DEFAULT (&#39;now&#39;::text)::date
  152. </i>
  153. </td>
  154. </tr>
  155. <tr class="tr0">
  156. <td>
  157. </td>
  158. <td>source</td>
  159. <td>text</td>
  160. <td><i>
  161. </i>
  162. </td>
  163. </tr>
  164. <tr class="tr1">
  165. <td>
  166. </td>
  167. <td>cleared</td>
  168. <td>boolean</td>
  169. <td><i>
  170. DEFAULT false
  171. </i>
  172. </td>
  173. </tr>
  174. <tr class="tr0">
  175. <td>
  176. </td>
  177. <td>fx_transaction</td>
  178. <td>boolean</td>
  179. <td><i>
  180. DEFAULT false
  181. </i>
  182. </td>
  183. </tr>
  184. <tr class="tr1">
  185. <td>
  186. </td>
  187. <td>project_id</td>
  188. <td>integer</td>
  189. <td><i>
  190. </i>
  191. </td>
  192. </tr>
  193. <tr class="tr0">
  194. <td>
  195. </td>
  196. <td>memo</td>
  197. <td>text</td>
  198. <td><i>
  199. </i>
  200. </td>
  201. </tr>
  202. <tr class="tr1">
  203. <td>
  204. </td>
  205. <td>invoice_id</td>
  206. <td>integer</td>
  207. <td><i>
  208. </i>
  209. </td>
  210. </tr>
  211. <tr class="tr0">
  212. <td>
  213. </td>
  214. <td>entry_id</td>
  215. <td>serial</td>
  216. <td><i>
  217. PRIMARY KEY
  218. </i>
  219. </td>
  220. </tr>
  221. </table>
  222. <!-- Inherits -->
  223. <!-- Constraint List -->
  224. <!-- Foreign Key Discovery -->
  225. <!-- Indexes -->
  226. acc_trans_chart_id_key chart_id
  227. acc_trans_source_key lower(source)
  228. acc_trans_trans_id_key trans_id
  229. acc_trans_transdate_key transdate
  230. <!-- View Definition -->
  231. <!-- List off permissions -->
  232. <p>
  233. <a href="#index">Index</a> -
  234. <a href="#public.schema">Schema public</a>
  235. </p>
  236. <hr>
  237. <h2>Table:
  238. <a name="public.table.ap">ap</a>
  239. </h2>
  240. <table width="100%" cellspacing="0" cellpadding="3">
  241. <caption>ap Structure</caption>
  242. <tr>
  243. <th>F-Key</th>
  244. <th>Name</th>
  245. <th>Type</th>
  246. <th>Description</th>
  247. </tr>
  248. <tr class="tr0">
  249. <td>
  250. </td>
  251. <td>id</td>
  252. <td>integer</td>
  253. <td><i>
  254. PRIMARY KEY
  255. DEFAULT nextval(&#39;id&#39;::regclass)
  256. </i>
  257. </td>
  258. </tr>
  259. <tr class="tr1">
  260. <td>
  261. </td>
  262. <td>invnumber</td>
  263. <td>text</td>
  264. <td><i>
  265. </i>
  266. </td>
  267. </tr>
  268. <tr class="tr0">
  269. <td>
  270. </td>
  271. <td>transdate</td>
  272. <td>date</td>
  273. <td><i>
  274. DEFAULT (&#39;now&#39;::text)::date
  275. </i>
  276. </td>
  277. </tr>
  278. <tr class="tr1">
  279. <td>
  280. </td>
  281. <td>vendor_id</td>
  282. <td>integer</td>
  283. <td><i>
  284. </i>
  285. </td>
  286. </tr>
  287. <tr class="tr0">
  288. <td>
  289. </td>
  290. <td>taxincluded</td>
  291. <td>boolean</td>
  292. <td><i>
  293. DEFAULT false
  294. </i>
  295. </td>
  296. </tr>
  297. <tr class="tr1">
  298. <td>
  299. </td>
  300. <td>amount</td>
  301. <td>numeric</td>
  302. <td><i>
  303. </i>
  304. </td>
  305. </tr>
  306. <tr class="tr0">
  307. <td>
  308. </td>
  309. <td>netamount</td>
  310. <td>numeric</td>
  311. <td><i>
  312. </i>
  313. </td>
  314. </tr>
  315. <tr class="tr1">
  316. <td>
  317. </td>
  318. <td>paid</td>
  319. <td>numeric</td>
  320. <td><i>
  321. </i>
  322. </td>
  323. </tr>
  324. <tr class="tr0">
  325. <td>
  326. </td>
  327. <td>datepaid</td>
  328. <td>date</td>
  329. <td><i>
  330. </i>
  331. </td>
  332. </tr>
  333. <tr class="tr1">
  334. <td>
  335. </td>
  336. <td>duedate</td>
  337. <td>date</td>
  338. <td><i>
  339. </i>
  340. </td>
  341. </tr>
  342. <tr class="tr0">
  343. <td>
  344. </td>
  345. <td>invoice</td>
  346. <td>boolean</td>
  347. <td><i>
  348. DEFAULT false
  349. </i>
  350. </td>
  351. </tr>
  352. <tr class="tr1">
  353. <td>
  354. </td>
  355. <td>ordnumber</td>
  356. <td>text</td>
  357. <td><i>
  358. </i>
  359. </td>
  360. </tr>
  361. <tr class="tr0">
  362. <td>
  363. </td>
  364. <td>curr</td>
  365. <td>character(3)</td>
  366. <td><i>
  367. </i>
  368. </td>
  369. </tr>
  370. <tr class="tr1">
  371. <td>
  372. </td>
  373. <td>notes</td>
  374. <td>text</td>
  375. <td><i>
  376. </i>
  377. </td>
  378. </tr>
  379. <tr class="tr0">
  380. <td>
  381. </td>
  382. <td>employee_id</td>
  383. <td>integer</td>
  384. <td><i>
  385. </i>
  386. </td>
  387. </tr>
  388. <tr class="tr1">
  389. <td>
  390. </td>
  391. <td>till</td>
  392. <td>character varying(20)</td>
  393. <td><i>
  394. </i>
  395. </td>
  396. </tr>
  397. <tr class="tr0">
  398. <td>
  399. </td>
  400. <td>quonumber</td>
  401. <td>text</td>
  402. <td><i>
  403. </i>
  404. </td>
  405. </tr>
  406. <tr class="tr1">
  407. <td>
  408. </td>
  409. <td>intnotes</td>
  410. <td>text</td>
  411. <td><i>
  412. </i>
  413. </td>
  414. </tr>
  415. <tr class="tr0">
  416. <td>
  417. </td>
  418. <td>department_id</td>
  419. <td>integer</td>
  420. <td><i>
  421. </i>
  422. </td>
  423. </tr>
  424. <tr class="tr1">
  425. <td>
  426. </td>
  427. <td>shipvia</td>
  428. <td>text</td>
  429. <td><i>
  430. </i>
  431. </td>
  432. </tr>
  433. <tr class="tr0">
  434. <td>
  435. </td>
  436. <td>language_code</td>
  437. <td>character varying(6)</td>
  438. <td><i>
  439. </i>
  440. </td>
  441. </tr>
  442. <tr class="tr1">
  443. <td>
  444. </td>
  445. <td>ponumber</td>
  446. <td>text</td>
  447. <td><i>
  448. </i>
  449. </td>
  450. </tr>
  451. <tr class="tr0">
  452. <td>
  453. </td>
  454. <td>shippingpoint</td>
  455. <td>text</td>
  456. <td><i>
  457. </i>
  458. </td>
  459. </tr>
  460. <tr class="tr1">
  461. <td>
  462. </td>
  463. <td>terms</td>
  464. <td>smallint</td>
  465. <td><i>
  466. </i>
  467. </td>
  468. </tr>
  469. </table>
  470. <!-- Inherits -->
  471. <!-- Constraint List -->
  472. <!-- Foreign Key Discovery -->
  473. <!-- Indexes -->
  474. ap_employee_id_key employee_id
  475. ap_id_key id
  476. ap_invnumber_key invnumber
  477. ap_ordnumber_key ordnumber
  478. ap_quonumber_key quonumber
  479. ap_transdate_key transdate
  480. ap_vendor_id_key vendor_id
  481. <!-- View Definition -->
  482. <!-- List off permissions -->
  483. <p>
  484. <a href="#index">Index</a> -
  485. <a href="#public.schema">Schema public</a>
  486. </p>
  487. <hr>
  488. <h2>Table:
  489. <a name="public.table.ar">ar</a>
  490. </h2>
  491. <table width="100%" cellspacing="0" cellpadding="3">
  492. <caption>ar Structure</caption>
  493. <tr>
  494. <th>F-Key</th>
  495. <th>Name</th>
  496. <th>Type</th>
  497. <th>Description</th>
  498. </tr>
  499. <tr class="tr0">
  500. <td>
  501. </td>
  502. <td>id</td>
  503. <td>integer</td>
  504. <td><i>
  505. PRIMARY KEY
  506. DEFAULT nextval(&#39;id&#39;::regclass)
  507. </i>
  508. </td>
  509. </tr>
  510. <tr class="tr1">
  511. <td>
  512. </td>
  513. <td>invnumber</td>
  514. <td>text</td>
  515. <td><i>
  516. </i>
  517. </td>
  518. </tr>
  519. <tr class="tr0">
  520. <td>
  521. </td>
  522. <td>transdate</td>
  523. <td>date</td>
  524. <td><i>
  525. DEFAULT (&#39;now&#39;::text)::date
  526. </i>
  527. </td>
  528. </tr>
  529. <tr class="tr1">
  530. <td>
  531. </td>
  532. <td>customer_id</td>
  533. <td>integer</td>
  534. <td><i>
  535. </i>
  536. </td>
  537. </tr>
  538. <tr class="tr0">
  539. <td>
  540. </td>
  541. <td>taxincluded</td>
  542. <td>boolean</td>
  543. <td><i>
  544. </i>
  545. </td>
  546. </tr>
  547. <tr class="tr1">
  548. <td>
  549. </td>
  550. <td>amount</td>
  551. <td>numeric</td>
  552. <td><i>
  553. </i>
  554. </td>
  555. </tr>
  556. <tr class="tr0">
  557. <td>
  558. </td>
  559. <td>netamount</td>
  560. <td>numeric</td>
  561. <td><i>
  562. </i>
  563. </td>
  564. </tr>
  565. <tr class="tr1">
  566. <td>
  567. </td>
  568. <td>paid</td>
  569. <td>numeric</td>
  570. <td><i>
  571. </i>
  572. </td>
  573. </tr>
  574. <tr class="tr0">
  575. <td>
  576. </td>
  577. <td>datepaid</td>
  578. <td>date</td>
  579. <td><i>
  580. </i>
  581. </td>
  582. </tr>
  583. <tr class="tr1">
  584. <td>
  585. </td>
  586. <td>duedate</td>
  587. <td>date</td>
  588. <td><i>
  589. </i>
  590. </td>
  591. </tr>
  592. <tr class="tr0">
  593. <td>
  594. </td>
  595. <td>invoice</td>
  596. <td>boolean</td>
  597. <td><i>
  598. DEFAULT false
  599. </i>
  600. </td>
  601. </tr>
  602. <tr class="tr1">
  603. <td>
  604. </td>
  605. <td>shippingpoint</td>
  606. <td>text</td>
  607. <td><i>
  608. </i>
  609. </td>
  610. </tr>
  611. <tr class="tr0">
  612. <td>
  613. </td>
  614. <td>terms</td>
  615. <td>smallint</td>
  616. <td><i>
  617. </i>
  618. </td>
  619. </tr>
  620. <tr class="tr1">
  621. <td>
  622. </td>
  623. <td>notes</td>
  624. <td>text</td>
  625. <td><i>
  626. </i>
  627. </td>
  628. </tr>
  629. <tr class="tr0">
  630. <td>
  631. </td>
  632. <td>curr</td>
  633. <td>character(3)</td>
  634. <td><i>
  635. </i>
  636. </td>
  637. </tr>
  638. <tr class="tr1">
  639. <td>
  640. </td>
  641. <td>ordnumber</td>
  642. <td>text</td>
  643. <td><i>
  644. </i>
  645. </td>
  646. </tr>
  647. <tr class="tr0">
  648. <td>
  649. </td>
  650. <td>employee_id</td>
  651. <td>integer</td>
  652. <td><i>
  653. </i>
  654. </td>
  655. </tr>
  656. <tr class="tr1">
  657. <td>
  658. </td>
  659. <td>till</td>
  660. <td>character varying(20)</td>
  661. <td><i>
  662. </i>
  663. </td>
  664. </tr>
  665. <tr class="tr0">
  666. <td>
  667. </td>
  668. <td>quonumber</td>
  669. <td>text</td>
  670. <td><i>
  671. </i>
  672. </td>
  673. </tr>
  674. <tr class="tr1">
  675. <td>
  676. </td>
  677. <td>intnotes</td>
  678. <td>text</td>
  679. <td><i>
  680. </i>
  681. </td>
  682. </tr>
  683. <tr class="tr0">
  684. <td>
  685. </td>
  686. <td>department_id</td>
  687. <td>integer</td>
  688. <td><i>
  689. </i>
  690. </td>
  691. </tr>
  692. <tr class="tr1">
  693. <td>
  694. </td>
  695. <td>shipvia</td>
  696. <td>text</td>
  697. <td><i>
  698. </i>
  699. </td>
  700. </tr>
  701. <tr class="tr0">
  702. <td>
  703. </td>
  704. <td>language_code</td>
  705. <td>character varying(6)</td>
  706. <td><i>
  707. </i>
  708. </td>
  709. </tr>
  710. <tr class="tr1">
  711. <td>
  712. </td>
  713. <td>ponumber</td>
  714. <td>text</td>
  715. <td><i>
  716. </i>
  717. </td>
  718. </tr>
  719. </table>
  720. <!-- Inherits -->
  721. <!-- Constraint List -->
  722. <!-- Foreign Key Discovery -->
  723. <!-- Indexes -->
  724. ar_customer_id_key customer_id
  725. ar_employee_id_key employee_id
  726. ar_id_key id
  727. ar_invnumber_key invnumber
  728. ar_ordnumber_key ordnumber
  729. ar_quonumber_key quonumber
  730. ar_transdate_key transdate
  731. <!-- View Definition -->
  732. <!-- List off permissions -->
  733. <p>
  734. <a href="#index">Index</a> -
  735. <a href="#public.schema">Schema public</a>
  736. </p>
  737. <hr>
  738. <h2>Table:
  739. <a name="public.table.assembly">assembly</a>
  740. </h2>
  741. <table width="100%" cellspacing="0" cellpadding="3">
  742. <caption>assembly Structure</caption>
  743. <tr>
  744. <th>F-Key</th>
  745. <th>Name</th>
  746. <th>Type</th>
  747. <th>Description</th>
  748. </tr>
  749. <tr class="tr0">
  750. <td>
  751. </td>
  752. <td>id</td>
  753. <td>integer</td>
  754. <td><i>
  755. PRIMARY KEY
  756. </i>
  757. </td>
  758. </tr>
  759. <tr class="tr1">
  760. <td>
  761. </td>
  762. <td>parts_id</td>
  763. <td>integer</td>
  764. <td><i>
  765. PRIMARY KEY
  766. </i>
  767. </td>
  768. </tr>
  769. <tr class="tr0">
  770. <td>
  771. </td>
  772. <td>qty</td>
  773. <td>numeric</td>
  774. <td><i>
  775. </i>
  776. </td>
  777. </tr>
  778. <tr class="tr1">
  779. <td>
  780. </td>
  781. <td>bom</td>
  782. <td>boolean</td>
  783. <td><i>
  784. </i>
  785. </td>
  786. </tr>
  787. <tr class="tr0">
  788. <td>
  789. </td>
  790. <td>adj</td>
  791. <td>boolean</td>
  792. <td><i>
  793. </i>
  794. </td>
  795. </tr>
  796. </table>
  797. <!-- Inherits -->
  798. <!-- Constraint List -->
  799. <!-- Foreign Key Discovery -->
  800. <!-- Indexes -->
  801. assembly_id_key id
  802. <!-- View Definition -->
  803. <!-- List off permissions -->
  804. <p>
  805. <a href="#index">Index</a> -
  806. <a href="#public.schema">Schema public</a>
  807. </p>
  808. <hr>
  809. <h2>Table:
  810. <a name="public.table.audittrail">audittrail</a>
  811. </h2>
  812. <table width="100%" cellspacing="0" cellpadding="3">
  813. <caption>audittrail Structure</caption>
  814. <tr>
  815. <th>F-Key</th>
  816. <th>Name</th>
  817. <th>Type</th>
  818. <th>Description</th>
  819. </tr>
  820. <tr class="tr0">
  821. <td>
  822. </td>
  823. <td>trans_id</td>
  824. <td>integer</td>
  825. <td><i>
  826. </i>
  827. </td>
  828. </tr>
  829. <tr class="tr1">
  830. <td>
  831. </td>
  832. <td>tablename</td>
  833. <td>text</td>
  834. <td><i>
  835. </i>
  836. </td>
  837. </tr>
  838. <tr class="tr0">
  839. <td>
  840. </td>
  841. <td>reference</td>
  842. <td>text</td>
  843. <td><i>
  844. </i>
  845. </td>
  846. </tr>
  847. <tr class="tr1">
  848. <td>
  849. </td>
  850. <td>formname</td>
  851. <td>text</td>
  852. <td><i>
  853. </i>
  854. </td>
  855. </tr>
  856. <tr class="tr0">
  857. <td>
  858. </td>
  859. <td>action</td>
  860. <td>text</td>
  861. <td><i>
  862. </i>
  863. </td>
  864. </tr>
  865. <tr class="tr1">
  866. <td>
  867. </td>
  868. <td>transdate</td>
  869. <td>timestamp without time zone</td>
  870. <td><i>
  871. DEFAULT now()
  872. </i>
  873. </td>
  874. </tr>
  875. <tr class="tr0">
  876. <td>
  877. </td>
  878. <td>employee_id</td>
  879. <td>integer</td>
  880. <td><i>
  881. </i>
  882. </td>
  883. </tr>
  884. <tr class="tr1">
  885. <td>
  886. </td>
  887. <td>entry_id</td>
  888. <td>bigserial</td>
  889. <td><i>
  890. PRIMARY KEY
  891. </i>
  892. </td>
  893. </tr>
  894. </table>
  895. <!-- Inherits -->
  896. <!-- Constraint List -->
  897. <!-- Foreign Key Discovery -->
  898. <!-- Indexes -->
  899. audittrail_trans_id_key trans_id
  900. <!-- View Definition -->
  901. <!-- List off permissions -->
  902. <p>
  903. <a href="#index">Index</a> -
  904. <a href="#public.schema">Schema public</a>
  905. </p>
  906. <hr>
  907. <h2>Table:
  908. <a name="public.table.business">business</a>
  909. </h2>
  910. <table width="100%" cellspacing="0" cellpadding="3">
  911. <caption>business Structure</caption>
  912. <tr>
  913. <th>F-Key</th>
  914. <th>Name</th>
  915. <th>Type</th>
  916. <th>Description</th>
  917. </tr>
  918. <tr class="tr0">
  919. <td>
  920. </td>
  921. <td>id</td>
  922. <td>integer</td>
  923. <td><i>
  924. PRIMARY KEY
  925. DEFAULT nextval(&#39;id&#39;::regclass)
  926. </i>
  927. </td>
  928. </tr>
  929. <tr class="tr1">
  930. <td>
  931. </td>
  932. <td>description</td>
  933. <td>text</td>
  934. <td><i>
  935. </i>
  936. </td>
  937. </tr>
  938. <tr class="tr0">
  939. <td>
  940. </td>
  941. <td>discount</td>
  942. <td>numeric</td>
  943. <td><i>
  944. </i>
  945. </td>
  946. </tr>
  947. </table>
  948. <!-- Inherits -->
  949. <!-- Constraint List -->
  950. <!-- Foreign Key Discovery -->
  951. <!-- Indexes -->
  952. <!-- View Definition -->
  953. <!-- List off permissions -->
  954. <p>
  955. <a href="#index">Index</a> -
  956. <a href="#public.schema">Schema public</a>
  957. </p>
  958. <hr>
  959. <h2>Table:
  960. <a name="public.table.chart">chart</a>
  961. </h2>
  962. <table width="100%" cellspacing="0" cellpadding="3">
  963. <caption>chart Structure</caption>
  964. <tr>
  965. <th>F-Key</th>
  966. <th>Name</th>
  967. <th>Type</th>
  968. <th>Description</th>
  969. </tr>
  970. <tr class="tr0">
  971. <td>
  972. </td>
  973. <td>id</td>
  974. <td>integer</td>
  975. <td><i>
  976. PRIMARY KEY
  977. DEFAULT nextval(&#39;id&#39;::regclass)
  978. </i>
  979. </td>
  980. </tr>
  981. <tr class="tr1">
  982. <td>
  983. </td>
  984. <td>accno</td>
  985. <td>text</td>
  986. <td><i>
  987. NOT NULL
  988. </i>
  989. </td>
  990. </tr>
  991. <tr class="tr0">
  992. <td>
  993. </td>
  994. <td>description</td>
  995. <td>text</td>
  996. <td><i>
  997. </i>
  998. </td>
  999. </tr>
  1000. <tr class="tr1">
  1001. <td>
  1002. </td>
  1003. <td>charttype</td>
  1004. <td>character(1)</td>
  1005. <td><i>
  1006. DEFAULT &#39;A&#39;::bpchar
  1007. </i>
  1008. </td>
  1009. </tr>
  1010. <tr class="tr0">
  1011. <td>
  1012. </td>
  1013. <td>category</td>
  1014. <td>character(1)</td>
  1015. <td><i>
  1016. </i>
  1017. </td>
  1018. </tr>
  1019. <tr class="tr1">
  1020. <td>
  1021. </td>
  1022. <td>link</td>
  1023. <td>text</td>
  1024. <td><i>
  1025. </i>
  1026. </td>
  1027. </tr>
  1028. <tr class="tr0">
  1029. <td>
  1030. </td>
  1031. <td>gifi_accno</td>
  1032. <td>text</td>
  1033. <td><i>
  1034. </i>
  1035. </td>
  1036. </tr>
  1037. <tr class="tr1">
  1038. <td>
  1039. </td>
  1040. <td>contra</td>
  1041. <td>boolean</td>
  1042. <td><i>
  1043. DEFAULT false
  1044. </i>
  1045. </td>
  1046. </tr>
  1047. </table>
  1048. <!-- Inherits -->
  1049. <!-- Constraint List -->
  1050. <!-- Foreign Key Discovery -->
  1051. <p>Tables referencing this one via Foreign Key Constraints:</p>
  1052. <ul>
  1053. <li><a href="#public.table.acc-trans">acc_trans</a></li>
  1054. </ul>
  1055. <ul>
  1056. <li><a href="#public.table.partstax">partstax</a></li>
  1057. </ul>
  1058. <ul>
  1059. <li><a href="#public.table.tax">tax</a></li>
  1060. </ul>
  1061. <!-- Indexes -->
  1062. chart_category_key category
  1063. chart_gifi_accno_key gifi_accno
  1064. chart_id_key id
  1065. chart_link_key link
  1066. <!-- View Definition -->
  1067. <!-- List off permissions -->
  1068. <p>
  1069. <a href="#index">Index</a> -
  1070. <a href="#public.schema">Schema public</a>
  1071. </p>
  1072. <hr>
  1073. <h2>Table:
  1074. <a name="public.table.custom-field-catalog">custom_field_catalog</a>
  1075. </h2>
  1076. <table width="100%" cellspacing="0" cellpadding="3">
  1077. <caption>custom_field_catalog Structure</caption>
  1078. <tr>
  1079. <th>F-Key</th>
  1080. <th>Name</th>
  1081. <th>Type</th>
  1082. <th>Description</th>
  1083. </tr>
  1084. <tr class="tr0">
  1085. <td>
  1086. </td>
  1087. <td>field_id</td>
  1088. <td>serial</td>
  1089. <td><i>
  1090. PRIMARY KEY
  1091. </i>
  1092. </td>
  1093. </tr>
  1094. <tr class="tr1">
  1095. <td>
  1096. <a href="#public.table.custom-table-catalog">custom_table_catalog.table_id</a>
  1097. </td>
  1098. <td>table_id</td>
  1099. <td>integer</td>
  1100. <td><i>
  1101. </i>
  1102. </td>
  1103. </tr>
  1104. <tr class="tr0">
  1105. <td>
  1106. </td>
  1107. <td>field_name</td>
  1108. <td>text</td>
  1109. <td><i>
  1110. </i>
  1111. </td>
  1112. </tr>
  1113. </table>
  1114. <!-- Inherits -->
  1115. <!-- Constraint List -->
  1116. <!-- Foreign Key Discovery -->
  1117. <!-- Indexes -->
  1118. <!-- View Definition -->
  1119. <!-- List off permissions -->
  1120. <p>
  1121. <a href="#index">Index</a> -
  1122. <a href="#public.schema">Schema public</a>
  1123. </p>
  1124. <hr>
  1125. <h2>Table:
  1126. <a name="public.table.custom-table-catalog">custom_table_catalog</a>
  1127. </h2>
  1128. <table width="100%" cellspacing="0" cellpadding="3">
  1129. <caption>custom_table_catalog Structure</caption>
  1130. <tr>
  1131. <th>F-Key</th>
  1132. <th>Name</th>
  1133. <th>Type</th>
  1134. <th>Description</th>
  1135. </tr>
  1136. <tr class="tr0">
  1137. <td>
  1138. </td>
  1139. <td>table_id</td>
  1140. <td>serial</td>
  1141. <td><i>
  1142. PRIMARY KEY
  1143. </i>
  1144. </td>
  1145. </tr>
  1146. <tr class="tr1">
  1147. <td>
  1148. </td>
  1149. <td>extends</td>
  1150. <td>text</td>
  1151. <td><i>
  1152. </i>
  1153. </td>
  1154. </tr>
  1155. <tr class="tr0">
  1156. <td>
  1157. </td>
  1158. <td>table_name</td>
  1159. <td>text</td>
  1160. <td><i>
  1161. </i>
  1162. </td>
  1163. </tr>
  1164. </table>
  1165. <!-- Inherits -->
  1166. <!-- Constraint List -->
  1167. <!-- Foreign Key Discovery -->
  1168. <p>Tables referencing this one via Foreign Key Constraints:</p>
  1169. <ul>
  1170. <li><a href="#public.table.custom-field-catalog">custom_field_catalog</a></li>
  1171. </ul>
  1172. <!-- Indexes -->
  1173. <!-- View Definition -->
  1174. <!-- List off permissions -->
  1175. <p>
  1176. <a href="#index">Index</a> -
  1177. <a href="#public.schema">Schema public</a>
  1178. </p>
  1179. <hr>
  1180. <h2>Table:
  1181. <a name="public.table.customer">customer</a>
  1182. </h2>
  1183. <table width="100%" cellspacing="0" cellpadding="3">
  1184. <caption>customer Structure</caption>
  1185. <tr>
  1186. <th>F-Key</th>
  1187. <th>Name</th>
  1188. <th>Type</th>
  1189. <th>Description</th>
  1190. </tr>
  1191. <tr class="tr0">
  1192. <td>
  1193. </td>
  1194. <td>id</td>
  1195. <td>integer</td>
  1196. <td><i>
  1197. PRIMARY KEY
  1198. DEFAULT nextval(&#39;id&#39;::regclass)
  1199. </i>
  1200. </td>
  1201. </tr>
  1202. <tr class="tr1">
  1203. <td>
  1204. </td>
  1205. <td>name</td>
  1206. <td>character varying(64)</td>
  1207. <td><i>
  1208. </i>
  1209. </td>
  1210. </tr>
  1211. <tr class="tr0">
  1212. <td>
  1213. </td>
  1214. <td>address1</td>
  1215. <td>character varying(32)</td>
  1216. <td><i>
  1217. </i>
  1218. </td>
  1219. </tr>
  1220. <tr class="tr1">
  1221. <td>
  1222. </td>
  1223. <td>address2</td>
  1224. <td>character varying(32)</td>
  1225. <td><i>
  1226. </i>
  1227. </td>
  1228. </tr>
  1229. <tr class="tr0">
  1230. <td>
  1231. </td>
  1232. <td>city</td>
  1233. <td>character varying(32)</td>
  1234. <td><i>
  1235. </i>
  1236. </td>
  1237. </tr>
  1238. <tr class="tr1">
  1239. <td>
  1240. </td>
  1241. <td>state</td>
  1242. <td>character varying(32)</td>
  1243. <td><i>
  1244. </i>
  1245. </td>
  1246. </tr>
  1247. <tr class="tr0">
  1248. <td>
  1249. </td>
  1250. <td>zipcode</td>
  1251. <td>character varying(10)</td>
  1252. <td><i>
  1253. </i>
  1254. </td>
  1255. </tr>
  1256. <tr class="tr1">
  1257. <td>
  1258. </td>
  1259. <td>country</td>
  1260. <td>character varying(32)</td>
  1261. <td><i>
  1262. </i>
  1263. </td>
  1264. </tr>
  1265. <tr class="tr0">
  1266. <td>
  1267. </td>
  1268. <td>contact</td>
  1269. <td>character varying(64)</td>
  1270. <td><i>
  1271. </i>
  1272. </td>
  1273. </tr>
  1274. <tr class="tr1">
  1275. <td>
  1276. </td>
  1277. <td>phone</td>
  1278. <td>character varying(20)</td>
  1279. <td><i>
  1280. </i>
  1281. </td>
  1282. </tr>
  1283. <tr class="tr0">
  1284. <td>
  1285. </td>
  1286. <td>fax</td>
  1287. <td>character varying(20)</td>
  1288. <td><i>
  1289. </i>
  1290. </td>
  1291. </tr>
  1292. <tr class="tr1">
  1293. <td>
  1294. </td>
  1295. <td>email</td>
  1296. <td>text</td>
  1297. <td><i>
  1298. </i>
  1299. </td>
  1300. </tr>
  1301. <tr class="tr0">
  1302. <td>
  1303. </td>
  1304. <td>notes</td>
  1305. <td>text</td>
  1306. <td><i>
  1307. </i>
  1308. </td>
  1309. </tr>
  1310. <tr class="tr1">
  1311. <td>
  1312. </td>
  1313. <td>discount</td>
  1314. <td>numeric</td>
  1315. <td><i>
  1316. </i>
  1317. </td>
  1318. </tr>
  1319. <tr class="tr0">
  1320. <td>
  1321. </td>
  1322. <td>taxincluded</td>
  1323. <td>boolean</td>
  1324. <td><i>
  1325. DEFAULT false
  1326. </i>
  1327. </td>
  1328. </tr>
  1329. <tr class="tr1">
  1330. <td>
  1331. </td>
  1332. <td>creditlimit</td>
  1333. <td>numeric</td>
  1334. <td><i>
  1335. </i>
  1336. </td>
  1337. </tr>
  1338. <tr class="tr0">
  1339. <td>
  1340. </td>
  1341. <td>terms</td>
  1342. <td>smallint</td>
  1343. <td><i>
  1344. </i>
  1345. </td>
  1346. </tr>
  1347. <tr class="tr1">
  1348. <td>
  1349. </td>
  1350. <td>customernumber</td>
  1351. <td>character varying(32)</td>
  1352. <td><i>
  1353. </i>
  1354. </td>
  1355. </tr>
  1356. <tr class="tr0">
  1357. <td>
  1358. </td>
  1359. <td>cc</td>
  1360. <td>text</td>
  1361. <td><i>
  1362. </i>
  1363. </td>
  1364. </tr>
  1365. <tr class="tr1">
  1366. <td>
  1367. </td>
  1368. <td>bcc</td>
  1369. <td>text</td>
  1370. <td><i>
  1371. </i>
  1372. </td>
  1373. </tr>
  1374. <tr class="tr0">
  1375. <td>
  1376. </td>
  1377. <td>business_id</td>
  1378. <td>integer</td>
  1379. <td><i>
  1380. </i>
  1381. </td>
  1382. </tr>
  1383. <tr class="tr1">
  1384. <td>
  1385. </td>
  1386. <td>taxnumber</td>
  1387. <td>character varying(32)</td>
  1388. <td><i>
  1389. </i>
  1390. </td>
  1391. </tr>
  1392. <tr class="tr0">
  1393. <td>
  1394. </td>
  1395. <td>sic_code</td>
  1396. <td>character varying(6)</td>
  1397. <td><i>
  1398. </i>
  1399. </td>
  1400. </tr>
  1401. <tr class="tr1">
  1402. <td>
  1403. </td>
  1404. <td>iban</td>
  1405. <td>character varying(34)</td>
  1406. <td><i>
  1407. </i>
  1408. </td>
  1409. </tr>
  1410. <tr class="tr0">
  1411. <td>
  1412. </td>
  1413. <td>bic</td>
  1414. <td>character varying(11)</td>
  1415. <td><i>
  1416. </i>
  1417. </td>
  1418. </tr>
  1419. <tr class="tr1">
  1420. <td>
  1421. </td>
  1422. <td>employee_id</td>
  1423. <td>integer</td>
  1424. <td><i>
  1425. </i>
  1426. </td>
  1427. </tr>
  1428. <tr class="tr0">
  1429. <td>
  1430. </td>
  1431. <td>language_code</td>
  1432. <td>character varying(6)</td>
  1433. <td><i>
  1434. </i>
  1435. </td>
  1436. </tr>
  1437. <tr class="tr1">
  1438. <td>
  1439. </td>
  1440. <td>pricegroup_id</td>
  1441. <td>integer</td>
  1442. <td><i>
  1443. </i>
  1444. </td>
  1445. </tr>
  1446. <tr class="tr0">
  1447. <td>
  1448. </td>
  1449. <td>curr</td>
  1450. <td>character(3)</td>
  1451. <td><i>
  1452. </i>
  1453. </td>
  1454. </tr>
  1455. <tr class="tr1">
  1456. <td>
  1457. </td>
  1458. <td>startdate</td>
  1459. <td>date</td>
  1460. <td><i>
  1461. </i>
  1462. </td>
  1463. </tr>
  1464. <tr class="tr0">
  1465. <td>
  1466. </td>
  1467. <td>enddate</td>
  1468. <td>date</td>
  1469. <td><i>
  1470. </i>
  1471. </td>
  1472. </tr>
  1473. </table>
  1474. <!-- Inherits -->
  1475. <!-- Constraint List -->
  1476. <!-- Foreign Key Discovery -->
  1477. <!-- Indexes -->
  1478. customer_contact_key lower((contact)::text)
  1479. customer_customernumber_key customernumber
  1480. customer_id_key id
  1481. customer_name_key lower((name)::text)
  1482. <!-- View Definition -->
  1483. <!-- List off permissions -->
  1484. <p>
  1485. <a href="#index">Index</a> -
  1486. <a href="#public.schema">Schema public</a>
  1487. </p>
  1488. <hr>
  1489. <h2>Table:
  1490. <a name="public.table.customertax">customertax</a>
  1491. </h2>
  1492. <table width="100%" cellspacing="0" cellpadding="3">
  1493. <caption>customertax Structure</caption>
  1494. <tr>
  1495. <th>F-Key</th>
  1496. <th>Name</th>
  1497. <th>Type</th>
  1498. <th>Description</th>
  1499. </tr>
  1500. <tr class="tr0">
  1501. <td>
  1502. </td>
  1503. <td>customer_id</td>
  1504. <td>integer</td>
  1505. <td><i>
  1506. PRIMARY KEY
  1507. </i>
  1508. </td>
  1509. </tr>
  1510. <tr class="tr1">
  1511. <td>
  1512. </td>
  1513. <td>chart_id</td>
  1514. <td>integer</td>
  1515. <td><i>
  1516. PRIMARY KEY
  1517. </i>
  1518. </td>
  1519. </tr>
  1520. </table>
  1521. <!-- Inherits -->
  1522. <!-- Constraint List -->
  1523. <!-- Foreign Key Discovery -->
  1524. <!-- Indexes -->
  1525. customer_customer_id_key customer_id
  1526. <!-- View Definition -->
  1527. <!-- List off permissions -->
  1528. <p>
  1529. <a href="#index">Index</a> -
  1530. <a href="#public.schema">Schema public</a>
  1531. </p>
  1532. <hr>
  1533. <h2>Table:
  1534. <a name="public.table.defaults">defaults</a>
  1535. </h2>
  1536. <table width="100%" cellspacing="0" cellpadding="3">
  1537. <caption>defaults Structure</caption>
  1538. <tr>
  1539. <th>F-Key</th>
  1540. <th>Name</th>
  1541. <th>Type</th>
  1542. <th>Description</th>
  1543. </tr>
  1544. <tr class="tr0">
  1545. <td>
  1546. </td>
  1547. <td>setting_key</td>
  1548. <td>text</td>
  1549. <td><i>
  1550. PRIMARY KEY
  1551. </i>
  1552. </td>
  1553. </tr>
  1554. <tr class="tr1">
  1555. <td>
  1556. </td>
  1557. <td>value</td>
  1558. <td>text</td>
  1559. <td><i>
  1560. </i>
  1561. </td>
  1562. </tr>
  1563. </table>
  1564. <!-- Inherits -->
  1565. <!-- Constraint List -->
  1566. <!-- Foreign Key Discovery -->
  1567. <!-- Indexes -->
  1568. <!-- View Definition -->
  1569. <!-- List off permissions -->
  1570. <p>
  1571. <a href="#index">Index</a> -
  1572. <a href="#public.schema">Schema public</a>
  1573. </p>
  1574. <hr>
  1575. <h2>Table:
  1576. <a name="public.table.department">department</a>
  1577. </h2>
  1578. <table width="100%" cellspacing="0" cellpadding="3">
  1579. <caption>department Structure</caption>
  1580. <tr>
  1581. <th>F-Key</th>
  1582. <th>Name</th>
  1583. <th>Type</th>
  1584. <th>Description</th>
  1585. </tr>
  1586. <tr class="tr0">
  1587. <td>
  1588. </td>
  1589. <td>id</td>
  1590. <td>integer</td>
  1591. <td><i>
  1592. PRIMARY KEY
  1593. DEFAULT nextval(&#39;id&#39;::regclass)
  1594. </i>
  1595. </td>
  1596. </tr>
  1597. <tr class="tr1">
  1598. <td>
  1599. </td>
  1600. <td>description</td>
  1601. <td>text</td>
  1602. <td><i>
  1603. </i>
  1604. </td>
  1605. </tr>
  1606. <tr class="tr0">
  1607. <td>
  1608. </td>
  1609. <td>role</td>
  1610. <td>character(1)</td>
  1611. <td><i>
  1612. DEFAULT &#39;P&#39;::bpchar
  1613. </i>
  1614. </td>
  1615. </tr>
  1616. </table>
  1617. <!-- Inherits -->
  1618. <!-- Constraint List -->
  1619. <!-- Foreign Key Discovery -->
  1620. <!-- Indexes -->
  1621. department_id_key id
  1622. <!-- View Definition -->
  1623. <!-- List off permissions -->
  1624. <p>
  1625. <a href="#index">Index</a> -
  1626. <a href="#public.schema">Schema public</a>
  1627. </p>
  1628. <hr>
  1629. <h2>Table:
  1630. <a name="public.table.dpt-trans">dpt_trans</a>
  1631. </h2>
  1632. <table width="100%" cellspacing="0" cellpadding="3">
  1633. <caption>dpt_trans Structure</caption>
  1634. <tr>
  1635. <th>F-Key</th>
  1636. <th>Name</th>
  1637. <th>Type</th>
  1638. <th>Description</th>
  1639. </tr>
  1640. <tr class="tr0">
  1641. <td>
  1642. </td>
  1643. <td>trans_id</td>
  1644. <td>integer</td>
  1645. <td><i>
  1646. PRIMARY KEY
  1647. </i>
  1648. </td>
  1649. </tr>
  1650. <tr class="tr1">
  1651. <td>
  1652. </td>
  1653. <td>department_id</td>
  1654. <td>integer</td>
  1655. <td><i>
  1656. </i>
  1657. </td>
  1658. </tr>
  1659. </table>
  1660. <!-- Inherits -->
  1661. <!-- Constraint List -->
  1662. <!-- Foreign Key Discovery -->
  1663. <!-- Indexes -->
  1664. <!-- View Definition -->
  1665. <!-- List off permissions -->
  1666. <p>
  1667. <a href="#index">Index</a> -
  1668. <a href="#public.schema">Schema public</a>
  1669. </p>
  1670. <hr>
  1671. <h2>Table:
  1672. <a name="public.table.employee">employee</a>
  1673. </h2>
  1674. <table width="100%" cellspacing="0" cellpadding="3">
  1675. <caption>employee Structure</caption>
  1676. <tr>
  1677. <th>F-Key</th>
  1678. <th>Name</th>
  1679. <th>Type</th>
  1680. <th>Description</th>
  1681. </tr>
  1682. <tr class="tr0">
  1683. <td>
  1684. </td>
  1685. <td>id</td>
  1686. <td>integer</td>
  1687. <td><i>
  1688. PRIMARY KEY
  1689. DEFAULT nextval(&#39;id&#39;::regclass)
  1690. </i>
  1691. </td>
  1692. </tr>
  1693. <tr class="tr1">
  1694. <td>
  1695. </td>
  1696. <td>login</td>
  1697. <td>text</td>
  1698. <td><i>
  1699. </i>
  1700. </td>
  1701. </tr>
  1702. <tr class="tr0">
  1703. <td>
  1704. </td>
  1705. <td>name</td>
  1706. <td>character varying(64)</td>
  1707. <td><i>
  1708. </i>
  1709. </td>
  1710. </tr>
  1711. <tr class="tr1">
  1712. <td>
  1713. </td>
  1714. <td>address1</td>
  1715. <td>character varying(32)</td>
  1716. <td><i>
  1717. </i>
  1718. </td>
  1719. </tr>
  1720. <tr class="tr0">
  1721. <td>
  1722. </td>
  1723. <td>address2</td>
  1724. <td>character varying(32)</td>
  1725. <td><i>
  1726. </i>
  1727. </td>
  1728. </tr>
  1729. <tr class="tr1">
  1730. <td>
  1731. </td>
  1732. <td>city</td>
  1733. <td>character varying(32)</td>
  1734. <td><i>
  1735. </i>
  1736. </td>
  1737. </tr>
  1738. <tr class="tr0">
  1739. <td>
  1740. </td>
  1741. <td>state</td>
  1742. <td>character varying(32)</td>
  1743. <td><i>
  1744. </i>
  1745. </td>
  1746. </tr>
  1747. <tr class="tr1">
  1748. <td>
  1749. </td>
  1750. <td>zipcode</td>
  1751. <td>character varying(10)</td>
  1752. <td><i>
  1753. </i>
  1754. </td>
  1755. </tr>
  1756. <tr class="tr0">
  1757. <td>
  1758. </td>
  1759. <td>country</td>
  1760. <td>character varying(32)</td>
  1761. <td><i>
  1762. </i>
  1763. </td>
  1764. </tr>
  1765. <tr class="tr1">
  1766. <td>
  1767. </td>
  1768. <td>workphone</td>
  1769. <td>character varying(20)</td>
  1770. <td><i>
  1771. </i>
  1772. </td>
  1773. </tr>
  1774. <tr class="tr0">
  1775. <td>
  1776. </td>
  1777. <td>homephone</td>
  1778. <td>character varying(20)</td>
  1779. <td><i>
  1780. </i>
  1781. </td>
  1782. </tr>
  1783. <tr class="tr1">
  1784. <td>
  1785. </td>
  1786. <td>startdate</td>
  1787. <td>date</td>
  1788. <td><i>
  1789. DEFAULT (&#39;now&#39;::text)::date
  1790. </i>
  1791. </td>
  1792. </tr>
  1793. <tr class="tr0">
  1794. <td>
  1795. </td>
  1796. <td>enddate</td>
  1797. <td>date</td>
  1798. <td><i>
  1799. </i>
  1800. </td>
  1801. </tr>
  1802. <tr class="tr1">
  1803. <td>
  1804. </td>
  1805. <td>notes</td>
  1806. <td>text</td>
  1807. <td><i>
  1808. </i>
  1809. </td>
  1810. </tr>
  1811. <tr class="tr0">
  1812. <td>
  1813. </td>
  1814. <td>role</td>
  1815. <td>character varying(20)</td>
  1816. <td><i>
  1817. </i>
  1818. </td>
  1819. </tr>
  1820. <tr class="tr1">
  1821. <td>
  1822. </td>
  1823. <td>sales</td>
  1824. <td>boolean</td>
  1825. <td><i>
  1826. DEFAULT false
  1827. </i>
  1828. </td>
  1829. </tr>
  1830. <tr class="tr0">
  1831. <td>
  1832. </td>
  1833. <td>email</td>
  1834. <td>text</td>
  1835. <td><i>
  1836. </i>
  1837. </td>
  1838. </tr>
  1839. <tr class="tr1">
  1840. <td>
  1841. </td>
  1842. <td>ssn</td>
  1843. <td>character varying(20)</td>
  1844. <td><i>
  1845. </i>
  1846. </td>
  1847. </tr>
  1848. <tr class="tr0">
  1849. <td>
  1850. </td>
  1851. <td>iban</td>
  1852. <td>character varying(34)</td>
  1853. <td><i>
  1854. </i>
  1855. </td>
  1856. </tr>
  1857. <tr class="tr1">
  1858. <td>
  1859. </td>
  1860. <td>bic</td>
  1861. <td>character varying(11)</td>
  1862. <td><i>
  1863. </i>
  1864. </td>
  1865. </tr>
  1866. <tr class="tr0">
  1867. <td>
  1868. </td>
  1869. <td>managerid</td>
  1870. <td>integer</td>
  1871. <td><i>
  1872. </i>
  1873. </td>
  1874. </tr>
  1875. <tr class="tr1">
  1876. <td>
  1877. </td>
  1878. <td>employeenumber</td>
  1879. <td>character varying(32)</td>
  1880. <td><i>
  1881. </i>
  1882. </td>
  1883. </tr>
  1884. <tr class="tr0">
  1885. <td>
  1886. </td>
  1887. <td>dob</td>
  1888. <td>date</td>
  1889. <td><i>
  1890. </i>
  1891. </td>
  1892. </tr>
  1893. </table>
  1894. <!-- Inherits -->
  1895. <!-- Constraint List -->
  1896. <!-- Foreign Key Discovery -->
  1897. <!-- Indexes -->
  1898. employee_id_key id
  1899. employee_name_key lower((name)::text)
  1900. <!-- View Definition -->
  1901. <!-- List off permissions -->
  1902. <p>
  1903. <a href="#index">Index</a> -
  1904. <a href="#public.schema">Schema public</a>
  1905. </p>
  1906. <hr>
  1907. <h2>Table:
  1908. <a name="public.table.exchangerate">exchangerate</a>
  1909. </h2>
  1910. <table width="100%" cellspacing="0" cellpadding="3">
  1911. <caption>exchangerate Structure</caption>
  1912. <tr>
  1913. <th>F-Key</th>
  1914. <th>Name</th>
  1915. <th>Type</th>
  1916. <th>Description</th>
  1917. </tr>
  1918. <tr class="tr0">
  1919. <td>
  1920. </td>
  1921. <td>curr</td>
  1922. <td>character(3)</td>
  1923. <td><i>
  1924. PRIMARY KEY
  1925. </i>
  1926. </td>
  1927. </tr>
  1928. <tr class="tr1">
  1929. <td>
  1930. </td>
  1931. <td>transdate</td>
  1932. <td>date</td>
  1933. <td><i>
  1934. PRIMARY KEY
  1935. </i>
  1936. </td>
  1937. </tr>
  1938. <tr class="tr0">
  1939. <td>
  1940. </td>
  1941. <td>buy</td>
  1942. <td>numeric</td>
  1943. <td><i>
  1944. </i>
  1945. </td>
  1946. </tr>
  1947. <tr class="tr1">
  1948. <td>
  1949. </td>
  1950. <td>sell</td>
  1951. <td>numeric</td>
  1952. <td><i>
  1953. </i>
  1954. </td>
  1955. </tr>
  1956. </table>
  1957. <!-- Inherits -->
  1958. <!-- Constraint List -->
  1959. <!-- Foreign Key Discovery -->
  1960. <!-- Indexes -->
  1961. exchangerate_ct_key curr, transdate
  1962. <!-- View Definition -->
  1963. <!-- List off permissions -->
  1964. <p>
  1965. <a href="#index">Index</a> -
  1966. <a href="#public.schema">Schema public</a>
  1967. </p>
  1968. <hr>
  1969. <h2>Table:
  1970. <a name="public.table.gifi">gifi</a>
  1971. </h2>
  1972. <table width="100%" cellspacing="0" cellpadding="3">
  1973. <caption>gifi Structure</caption>
  1974. <tr>
  1975. <th>F-Key</th>
  1976. <th>Name</th>
  1977. <th>Type</th>
  1978. <th>Description</th>
  1979. </tr>
  1980. <tr class="tr0">
  1981. <td>
  1982. </td>
  1983. <td>accno</td>
  1984. <td>text</td>
  1985. <td><i>
  1986. PRIMARY KEY
  1987. </i>
  1988. </td>
  1989. </tr>
  1990. <tr class="tr1">
  1991. <td>
  1992. </td>
  1993. <td>description</td>
  1994. <td>text</td>
  1995. <td><i>
  1996. </i>
  1997. </td>
  1998. </tr>
  1999. </table>
  2000. <!-- Inherits -->
  2001. <!-- Constraint List -->
  2002. <!-- Foreign Key Discovery -->
  2003. <!-- Indexes -->
  2004. <!-- View Definition -->
  2005. <!-- List off permissions -->
  2006. <p>
  2007. <a href="#index">Index</a> -
  2008. <a href="#public.schema">Schema public</a>
  2009. </p>
  2010. <hr>
  2011. <h2>Table:
  2012. <a name="public.table.gl">gl</a>
  2013. </h2>
  2014. <table width="100%" cellspacing="0" cellpadding="3">
  2015. <caption>gl Structure</caption>
  2016. <tr>
  2017. <th>F-Key</th>
  2018. <th>Name</th>
  2019. <th>Type</th>
  2020. <th>Description</th>
  2021. </tr>
  2022. <tr class="tr0">
  2023. <td>
  2024. </td>
  2025. <td>id</td>
  2026. <td>integer</td>
  2027. <td><i>
  2028. PRIMARY KEY
  2029. DEFAULT nextval(&#39;id&#39;::regclass)
  2030. </i>
  2031. </td>
  2032. </tr>
  2033. <tr class="tr1">
  2034. <td>
  2035. </td>
  2036. <td>reference</td>
  2037. <td>text</td>
  2038. <td><i>
  2039. </i>
  2040. </td>
  2041. </tr>
  2042. <tr class="tr0">
  2043. <td>
  2044. </td>
  2045. <td>description</td>
  2046. <td>text</td>
  2047. <td><i>
  2048. </i>
  2049. </td>
  2050. </tr>
  2051. <tr class="tr1">
  2052. <td>
  2053. </td>
  2054. <td>transdate</td>
  2055. <td>date</td>
  2056. <td><i>
  2057. DEFAULT (&#39;now&#39;::text)::date
  2058. </i>
  2059. </td>
  2060. </tr>
  2061. <tr class="tr0">
  2062. <td>
  2063. </td>
  2064. <td>employee_id</td>
  2065. <td>integer</td>
  2066. <td><i>
  2067. </i>
  2068. </td>
  2069. </tr>
  2070. <tr class="tr1">
  2071. <td>
  2072. </td>
  2073. <td>notes</td>
  2074. <td>text</td>
  2075. <td><i>
  2076. </i>
  2077. </td>
  2078. </tr>
  2079. <tr class="tr0">
  2080. <td>
  2081. </td>
  2082. <td>department_id</td>
  2083. <td>integer</td>
  2084. <td><i>
  2085. </i>
  2086. </td>
  2087. </tr>
  2088. </table>
  2089. <!-- Inherits -->
  2090. <!-- Constraint List -->
  2091. <!-- Foreign Key Discovery -->
  2092. <!-- Indexes -->
  2093. gl_description_key lower(description)
  2094. gl_employee_id_key employee_id
  2095. gl_id_key id
  2096. gl_reference_key reference
  2097. gl_transdate_key transdate
  2098. <!-- View Definition -->
  2099. <!-- List off permissions -->
  2100. <p>
  2101. <a href="#index">Index</a> -
  2102. <a href="#public.schema">Schema public</a>
  2103. </p>
  2104. <hr>
  2105. <h2>Table:
  2106. <a name="public.table.inventory">inventory</a>
  2107. </h2>
  2108. <table width="100%" cellspacing="0" cellpadding="3">
  2109. <caption>inventory Structure</caption>
  2110. <tr>
  2111. <th>F-Key</th>
  2112. <th>Name</th>
  2113. <th>Type</th>
  2114. <th>Description</th>
  2115. </tr>
  2116. <tr class="tr0">
  2117. <td>
  2118. </td>
  2119. <td>warehouse_id</td>
  2120. <td>integer</td>
  2121. <td><i>
  2122. </i>
  2123. </td>
  2124. </tr>
  2125. <tr class="tr1">
  2126. <td>
  2127. </td>
  2128. <td>parts_id</td>
  2129. <td>integer</td>
  2130. <td><i>
  2131. </i>
  2132. </td>
  2133. </tr>
  2134. <tr class="tr0">
  2135. <td>
  2136. </td>
  2137. <td>trans_id</td>
  2138. <td>integer</td>
  2139. <td><i>
  2140. </i>
  2141. </td>
  2142. </tr>
  2143. <tr class="tr1">
  2144. <td>
  2145. </td>
  2146. <td>orderitems_id</td>
  2147. <td>integer</td>
  2148. <td><i>
  2149. </i>
  2150. </td>
  2151. </tr>
  2152. <tr class="tr0">
  2153. <td>
  2154. </td>
  2155. <td>qty</td>
  2156. <td>numeric</td>
  2157. <td><i>
  2158. </i>
  2159. </td>
  2160. </tr>
  2161. <tr class="tr1">
  2162. <td>
  2163. </td>
  2164. <td>shippingdate</td>
  2165. <td>date</td>
  2166. <td><i>
  2167. </i>
  2168. </td>
  2169. </tr>
  2170. <tr class="tr0">
  2171. <td>
  2172. </td>
  2173. <td>employee_id</td>
  2174. <td>integer</td>
  2175. <td><i>
  2176. </i>
  2177. </td>
  2178. </tr>
  2179. <tr class="tr1">
  2180. <td>
  2181. </td>
  2182. <td>entry_id</td>
  2183. <td>serial</td>
  2184. <td><i>
  2185. PRIMARY KEY
  2186. </i>
  2187. </td>
  2188. </tr>
  2189. </table>
  2190. <!-- Inherits -->
  2191. <!-- Constraint List -->
  2192. <!-- Foreign Key Discovery -->
  2193. <!-- Indexes -->
  2194. <!-- View Definition -->
  2195. <!-- List off permissions -->
  2196. <p>
  2197. <a href="#index">Index</a> -
  2198. <a href="#public.schema">Schema public</a>
  2199. </p>
  2200. <hr>
  2201. <h2>Table:
  2202. <a name="public.table.invoice">invoice</a>
  2203. </h2>
  2204. <table width="100%" cellspacing="0" cellpadding="3">
  2205. <caption>invoice Structure</caption>
  2206. <tr>
  2207. <th>F-Key</th>
  2208. <th>Name</th>
  2209. <th>Type</th>
  2210. <th>Description</th>
  2211. </tr>
  2212. <tr class="tr0">
  2213. <td>
  2214. </td>
  2215. <td>id</td>
  2216. <td>integer</td>
  2217. <td><i>
  2218. PRIMARY KEY
  2219. DEFAULT nextval(&#39;invoiceid&#39;::regclass)
  2220. </i>
  2221. </td>
  2222. </tr>
  2223. <tr class="tr1">
  2224. <td>
  2225. </td>
  2226. <td>trans_id</td>
  2227. <td>integer</td>
  2228. <td><i>
  2229. </i>
  2230. </td>
  2231. </tr>
  2232. <tr class="tr0">
  2233. <td>
  2234. </td>
  2235. <td>parts_id</td>
  2236. <td>integer</td>
  2237. <td><i>
  2238. </i>
  2239. </td>
  2240. </tr>
  2241. <tr class="tr1">
  2242. <td>
  2243. </td>
  2244. <td>description</td>
  2245. <td>text</td>
  2246. <td><i>
  2247. </i>
  2248. </td>
  2249. </tr>
  2250. <tr class="tr0">
  2251. <td>
  2252. </td>
  2253. <td>qty</td>
  2254. <td>integer</td>
  2255. <td><i>
  2256. </i>
  2257. </td>
  2258. </tr>
  2259. <tr class="tr1">
  2260. <td>
  2261. </td>
  2262. <td>allocated</td>
  2263. <td>integer</td>
  2264. <td><i>
  2265. </i>
  2266. </td>
  2267. </tr>
  2268. <tr class="tr0">
  2269. <td>
  2270. </td>
  2271. <td>sellprice</td>
  2272. <td>numeric</td>
  2273. <td><i>
  2274. </i>
  2275. </td>
  2276. </tr>
  2277. <tr class="tr1">
  2278. <td>
  2279. </td>
  2280. <td>fxsellprice</td>
  2281. <td>numeric</td>
  2282. <td><i>
  2283. </i>
  2284. </td>
  2285. </tr>
  2286. <tr class="tr0">
  2287. <td>
  2288. </td>
  2289. <td>discount</td>
  2290. <td>real</td>
  2291. <td><i>
  2292. </i>
  2293. </td>
  2294. </tr>
  2295. <tr class="tr1">
  2296. <td>
  2297. </td>
  2298. <td>assemblyitem</td>
  2299. <td>boolean</td>
  2300. <td><i>
  2301. DEFAULT false
  2302. </i>
  2303. </td>
  2304. </tr>
  2305. <tr class="tr0">
  2306. <td>
  2307. </td>
  2308. <td>unit</td>
  2309. <td>character varying(5)</td>
  2310. <td><i>
  2311. </i>
  2312. </td>
  2313. </tr>
  2314. <tr class="tr1">
  2315. <td>
  2316. </td>
  2317. <td>project_id</td>
  2318. <td>integer</td>
  2319. <td><i>
  2320. </i>
  2321. </td>
  2322. </tr>
  2323. <tr class="tr0">
  2324. <td>
  2325. </td>
  2326. <td>deliverydate</td>
  2327. <td>date</td>
  2328. <td><i>
  2329. </i>
  2330. </td>
  2331. </tr>
  2332. <tr class="tr1">
  2333. <td>
  2334. </td>
  2335. <td>serialnumber</td>
  2336. <td>text</td>
  2337. <td><i>
  2338. </i>
  2339. </td>
  2340. </tr>
  2341. <tr class="tr0">
  2342. <td>
  2343. </td>
  2344. <td>notes</td>
  2345. <td>text</td>
  2346. <td><i>
  2347. </i>
  2348. </td>
  2349. </tr>
  2350. </table>
  2351. <!-- Inherits -->
  2352. <!-- Constraint List -->
  2353. <!-- Foreign Key Discovery -->
  2354. <!-- Indexes -->
  2355. invoice_id_key id
  2356. invoice_trans_id_key trans_id
  2357. <!-- View Definition -->
  2358. <!-- List off permissions -->
  2359. <p>
  2360. <a href="#index">Index</a> -
  2361. <a href="#public.schema">Schema public</a>
  2362. </p>
  2363. <hr>
  2364. <h2>Table:
  2365. <a name="public.table.jcitems">jcitems</a>
  2366. </h2>
  2367. <table width="100%" cellspacing="0" cellpadding="3">
  2368. <caption>jcitems Structure</caption>
  2369. <tr>
  2370. <th>F-Key</th>
  2371. <th>Name</th>
  2372. <th>Type</th>
  2373. <th>Description</th>
  2374. </tr>
  2375. <tr class="tr0">
  2376. <td>
  2377. </td>
  2378. <td>id</td>
  2379. <td>integer</td>
  2380. <td><i>
  2381. PRIMARY KEY
  2382. DEFAULT nextval(&#39;jcitemsid&#39;::regclass)
  2383. </i>
  2384. </td>
  2385. </tr>
  2386. <tr class="tr1">
  2387. <td>
  2388. </td>
  2389. <td>project_id</td>
  2390. <td>integer</td>
  2391. <td><i>
  2392. </i>
  2393. </td>
  2394. </tr>
  2395. <tr class="tr0">
  2396. <td>
  2397. </td>
  2398. <td>parts_id</td>
  2399. <td>integer</td>
  2400. <td><i>
  2401. </i>
  2402. </td>
  2403. </tr>
  2404. <tr class="tr1">
  2405. <td>
  2406. </td>
  2407. <td>description</td>
  2408. <td>text</td>
  2409. <td><i>
  2410. </i>
  2411. </td>
  2412. </tr>
  2413. <tr class="tr0">
  2414. <td>
  2415. </td>
  2416. <td>qty</td>
  2417. <td>numeric</td>
  2418. <td><i>
  2419. </i>
  2420. </td>
  2421. </tr>
  2422. <tr class="tr1">
  2423. <td>
  2424. </td>
  2425. <td>allocated</td>
  2426. <td>numeric</td>
  2427. <td><i>
  2428. </i>
  2429. </td>
  2430. </tr>
  2431. <tr class="tr0">
  2432. <td>
  2433. </td>
  2434. <td>sellprice</td>
  2435. <td>numeric</td>
  2436. <td><i>
  2437. </i>
  2438. </td>
  2439. </tr>
  2440. <tr class="tr1">
  2441. <td>
  2442. </td>
  2443. <td>fxsellprice</td>
  2444. <td>numeric</td>
  2445. <td><i>
  2446. </i>
  2447. </td>
  2448. </tr>
  2449. <tr class="tr0">
  2450. <td>
  2451. </td>
  2452. <td>serialnumber</td>
  2453. <td>text</td>
  2454. <td><i>
  2455. </i>
  2456. </td>
  2457. </tr>
  2458. <tr class="tr1">
  2459. <td>
  2460. </td>
  2461. <td>checkedin</td>
  2462. <td>timestamp with time zone</td>
  2463. <td><i>
  2464. </i>
  2465. </td>
  2466. </tr>
  2467. <tr class="tr0">
  2468. <td>
  2469. </td>
  2470. <td>checkedout</td>
  2471. <td>timestamp with time zone</td>
  2472. <td><i>
  2473. </i>
  2474. </td>
  2475. </tr>
  2476. <tr class="tr1">
  2477. <td>
  2478. </td>
  2479. <td>employee_id</td>
  2480. <td>integer</td>
  2481. <td><i>
  2482. </i>
  2483. </td>
  2484. </tr>
  2485. <tr class="tr0">
  2486. <td>
  2487. </td>
  2488. <td>notes</td>
  2489. <td>text</td>
  2490. <td><i>
  2491. </i>
  2492. </td>
  2493. </tr>
  2494. </table>
  2495. <!-- Inherits -->
  2496. <!-- Constraint List -->
  2497. <!-- Foreign Key Discovery -->
  2498. <!-- Indexes -->
  2499. jcitems_id_key id
  2500. <!-- View Definition -->
  2501. <!-- List off permissions -->
  2502. <p>
  2503. <a href="#index">Index</a> -
  2504. <a href="#public.schema">Schema public</a>
  2505. </p>
  2506. <hr>
  2507. <h2>Table:
  2508. <a name="public.table.language">language</a>
  2509. </h2>
  2510. <table width="100%" cellspacing="0" cellpadding="3">
  2511. <caption>language Structure</caption>
  2512. <tr>
  2513. <th>F-Key</th>
  2514. <th>Name</th>
  2515. <th>Type</th>
  2516. <th>Description</th>
  2517. </tr>
  2518. <tr class="tr0">
  2519. <td>
  2520. </td>
  2521. <td>code</td>
  2522. <td>character varying(6)</td>
  2523. <td><i>
  2524. PRIMARY KEY
  2525. </i>
  2526. </td>
  2527. </tr>
  2528. <tr class="tr1">
  2529. <td>
  2530. </td>
  2531. <td>description</td>
  2532. <td>text</td>
  2533. <td><i>
  2534. </i>
  2535. </td>
  2536. </tr>
  2537. </table>
  2538. <!-- Inherits -->
  2539. <!-- Constraint List -->
  2540. <!-- Foreign Key Discovery -->
  2541. <!-- Indexes -->
  2542. <!-- View Definition -->
  2543. <!-- List off permissions -->
  2544. <p>
  2545. <a href="#index">Index</a> -
  2546. <a href="#public.schema">Schema public</a>
  2547. </p>
  2548. <hr>
  2549. <h2>Table:
  2550. <a name="public.table.makemodel">makemodel</a>
  2551. </h2>
  2552. <table width="100%" cellspacing="0" cellpadding="3">
  2553. <caption>makemodel Structure</caption>
  2554. <tr>
  2555. <th>F-Key</th>
  2556. <th>Name</th>
  2557. <th>Type</th>
  2558. <th>Description</th>
  2559. </tr>
  2560. <tr class="tr0">
  2561. <td>
  2562. </td>
  2563. <td>parts_id</td>
  2564. <td>integer</td>
  2565. <td><i>
  2566. PRIMARY KEY
  2567. </i>
  2568. </td>
  2569. </tr>
  2570. <tr class="tr1">
  2571. <td>
  2572. </td>
  2573. <td>make</td>
  2574. <td>text</td>
  2575. <td><i>
  2576. </i>
  2577. </td>
  2578. </tr>
  2579. <tr class="tr0">
  2580. <td>
  2581. </td>
  2582. <td>model</td>
  2583. <td>text</td>
  2584. <td><i>
  2585. </i>
  2586. </td>
  2587. </tr>
  2588. </table>
  2589. <!-- Inherits -->
  2590. <!-- Constraint List -->
  2591. <!-- Foreign Key Discovery -->
  2592. <!-- Indexes -->
  2593. makemodel_make_key lower(make)
  2594. makemodel_model_key lower(model)
  2595. makemodel_parts_id_key parts_id
  2596. <!-- View Definition -->
  2597. <!-- List off permissions -->
  2598. <p>
  2599. <a href="#index">Index</a> -
  2600. <a href="#public.schema">Schema public</a>
  2601. </p>
  2602. <hr>
  2603. <h2>Table:
  2604. <a name="public.table.oe">oe</a>
  2605. </h2>
  2606. <table width="100%" cellspacing="0" cellpadding="3">
  2607. <caption>oe Structure</caption>
  2608. <tr>
  2609. <th>F-Key</th>
  2610. <th>Name</th>
  2611. <th>Type</th>
  2612. <th>Description</th>
  2613. </tr>
  2614. <tr class="tr0">
  2615. <td>
  2616. </td>
  2617. <td>id</td>
  2618. <td>integer</td>
  2619. <td><i>
  2620. PRIMARY KEY
  2621. DEFAULT nextval(&#39;id&#39;::regclass)
  2622. </i>
  2623. </td>
  2624. </tr>
  2625. <tr class="tr1">
  2626. <td>
  2627. </td>
  2628. <td>ordnumber</td>
  2629. <td>text</td>
  2630. <td><i>
  2631. </i>
  2632. </td>
  2633. </tr>
  2634. <tr class="tr0">
  2635. <td>
  2636. </td>
  2637. <td>transdate</td>
  2638. <td>date</td>
  2639. <td><i>
  2640. DEFAULT (&#39;now&#39;::text)::date
  2641. </i>
  2642. </td>
  2643. </tr>
  2644. <tr class="tr1">
  2645. <td>
  2646. </td>
  2647. <td>vendor_id</td>
  2648. <td>integer</td>
  2649. <td><i>
  2650. </i>
  2651. </td>
  2652. </tr>
  2653. <tr class="tr0">
  2654. <td>
  2655. </td>
  2656. <td>customer_id</td>
  2657. <td>integer</td>
  2658. <td><i>
  2659. </i>
  2660. </td>
  2661. </tr>
  2662. <tr class="tr1">
  2663. <td>
  2664. </td>
  2665. <td>amount</td>
  2666. <td>numeric</td>
  2667. <td><i>
  2668. </i>
  2669. </td>
  2670. </tr>
  2671. <tr class="tr0">
  2672. <td>
  2673. </td>
  2674. <td>netamount</td>
  2675. <td>numeric</td>
  2676. <td><i>
  2677. </i>
  2678. </td>
  2679. </tr>
  2680. <tr class="tr1">
  2681. <td>
  2682. </td>
  2683. <td>reqdate</td>
  2684. <td>date</td>
  2685. <td><i>
  2686. </i>
  2687. </td>
  2688. </tr>
  2689. <tr class="tr0">
  2690. <td>
  2691. </td>
  2692. <td>taxincluded</td>
  2693. <td>boolean</td>
  2694. <td><i>
  2695. </i>
  2696. </td>
  2697. </tr>
  2698. <tr class="tr1">
  2699. <td>
  2700. </td>
  2701. <td>shippingpoint</td>
  2702. <td>text</td>
  2703. <td><i>
  2704. </i>
  2705. </td>
  2706. </tr>
  2707. <tr class="tr0">
  2708. <td>
  2709. </td>
  2710. <td>notes</td>
  2711. <td>text</td>
  2712. <td><i>
  2713. </i>
  2714. </td>
  2715. </tr>
  2716. <tr class="tr1">
  2717. <td>
  2718. </td>
  2719. <td>curr</td>
  2720. <td>character(3)</td>
  2721. <td><i>
  2722. </i>
  2723. </td>
  2724. </tr>
  2725. <tr class="tr0">
  2726. <td>
  2727. </td>
  2728. <td>employee_id</td>
  2729. <td>integer</td>
  2730. <td><i>
  2731. </i>
  2732. </td>
  2733. </tr>
  2734. <tr class="tr1">
  2735. <td>
  2736. </td>
  2737. <td>closed</td>
  2738. <td>boolean</td>
  2739. <td><i>
  2740. DEFAULT false
  2741. </i>
  2742. </td>
  2743. </tr>
  2744. <tr class="tr0">
  2745. <td>
  2746. </td>
  2747. <td>quotation</td>
  2748. <td>boolean</td>
  2749. <td><i>
  2750. DEFAULT false
  2751. </i>
  2752. </td>
  2753. </tr>
  2754. <tr class="tr1">
  2755. <td>
  2756. </td>
  2757. <td>quonumber</td>
  2758. <td>text</td>
  2759. <td><i>
  2760. </i>
  2761. </td>
  2762. </tr>
  2763. <tr class="tr0">
  2764. <td>
  2765. </td>
  2766. <td>intnotes</td>
  2767. <td>text</td>
  2768. <td><i>
  2769. </i>
  2770. </td>
  2771. </tr>
  2772. <tr class="tr1">
  2773. <td>
  2774. </td>
  2775. <td>department_id</td>
  2776. <td>integer</td>
  2777. <td><i>
  2778. </i>
  2779. </td>
  2780. </tr>
  2781. <tr class="tr0">
  2782. <td>
  2783. </td>
  2784. <td>shipvia</td>
  2785. <td>text</td>
  2786. <td><i>
  2787. </i>
  2788. </td>
  2789. </tr>
  2790. <tr class="tr1">
  2791. <td>
  2792. </td>
  2793. <td>language_code</td>
  2794. <td>character varying(6)</td>
  2795. <td><i>
  2796. </i>
  2797. </td>
  2798. </tr>
  2799. <tr class="tr0">
  2800. <td>
  2801. </td>
  2802. <td>ponumber</td>
  2803. <td>text</td>
  2804. <td><i>
  2805. </i>
  2806. </td>
  2807. </tr>
  2808. <tr class="tr1">
  2809. <td>
  2810. </td>
  2811. <td>terms</td>
  2812. <td>smallint</td>
  2813. <td><i>
  2814. </i>
  2815. </td>
  2816. </tr>
  2817. </table>
  2818. <!-- Inherits -->
  2819. <!-- Constraint List -->
  2820. <!-- Foreign Key Discovery -->
  2821. <!-- Indexes -->
  2822. oe_employee_id_key employee_id
  2823. oe_id_key id
  2824. oe_ordnumber_key ordnumber
  2825. oe_transdate_key transdate
  2826. <!-- View Definition -->
  2827. <!-- List off permissions -->
  2828. <p>
  2829. <a href="#index">Index</a> -
  2830. <a href="#public.schema">Schema public</a>
  2831. </p>
  2832. <hr>
  2833. <h2>Table:
  2834. <a name="public.table.orderitems">orderitems</a>
  2835. </h2>
  2836. <table width="100%" cellspacing="0" cellpadding="3">
  2837. <caption>orderitems Structure</caption>
  2838. <tr>
  2839. <th>F-Key</th>
  2840. <th>Name</th>
  2841. <th>Type</th>
  2842. <th>Description</th>
  2843. </tr>
  2844. <tr class="tr0">
  2845. <td>
  2846. </td>
  2847. <td>id</td>
  2848. <td>integer</td>
  2849. <td><i>
  2850. PRIMARY KEY
  2851. DEFAULT nextval(&#39;orderitemsid&#39;::regclass)
  2852. </i>
  2853. </td>
  2854. </tr>
  2855. <tr class="tr1">
  2856. <td>
  2857. </td>
  2858. <td>trans_id</td>
  2859. <td>integer</td>
  2860. <td><i>
  2861. </i>
  2862. </td>
  2863. </tr>
  2864. <tr class="tr0">
  2865. <td>
  2866. </td>
  2867. <td>parts_id</td>
  2868. <td>integer</td>
  2869. <td><i>
  2870. </i>
  2871. </td>
  2872. </tr>
  2873. <tr class="tr1">
  2874. <td>
  2875. </td>
  2876. <td>description</td>
  2877. <td>text</td>
  2878. <td><i>
  2879. </i>
  2880. </td>
  2881. </tr>
  2882. <tr class="tr0">
  2883. <td>
  2884. </td>
  2885. <td>qty</td>
  2886. <td>numeric</td>
  2887. <td><i>
  2888. </i>
  2889. </td>
  2890. </tr>
  2891. <tr class="tr1">
  2892. <td>
  2893. </td>
  2894. <td>sellprice</td>
  2895. <td>numeric</td>
  2896. <td><i>
  2897. </i>
  2898. </td>
  2899. </tr>
  2900. <tr class="tr0">
  2901. <td>
  2902. </td>
  2903. <td>discount</td>
  2904. <td>numeric</td>
  2905. <td><i>
  2906. </i>
  2907. </td>
  2908. </tr>
  2909. <tr class="tr1">
  2910. <td>
  2911. </td>
  2912. <td>unit</td>
  2913. <td>character varying(5)</td>
  2914. <td><i>
  2915. </i>
  2916. </td>
  2917. </tr>
  2918. <tr class="tr0">
  2919. <td>
  2920. </td>
  2921. <td>project_id</td>
  2922. <td>integer</td>
  2923. <td><i>
  2924. </i>
  2925. </td>
  2926. </tr>
  2927. <tr class="tr1">
  2928. <td>
  2929. </td>
  2930. <td>reqdate</td>
  2931. <td>date</td>
  2932. <td><i>
  2933. </i>
  2934. </td>
  2935. </tr>
  2936. <tr class="tr0">
  2937. <td>
  2938. </td>
  2939. <td>ship</td>
  2940. <td>numeric</td>
  2941. <td><i>
  2942. </i>
  2943. </td>
  2944. </tr>
  2945. <tr class="tr1">
  2946. <td>
  2947. </td>
  2948. <td>serialnumber</td>
  2949. <td>text</td>
  2950. <td><i>
  2951. </i>
  2952. </td>
  2953. </tr>
  2954. <tr class="tr0">
  2955. <td>
  2956. </td>
  2957. <td>notes</td>
  2958. <td>text</td>
  2959. <td><i>
  2960. </i>
  2961. </td>
  2962. </tr>
  2963. </table>
  2964. <!-- Inherits -->
  2965. <!-- Constraint List -->
  2966. <!-- Foreign Key Discovery -->
  2967. <!-- Indexes -->
  2968. orderitems_id_key id
  2969. orderitems_trans_id_key trans_id
  2970. <!-- View Definition -->
  2971. <!-- List off permissions -->
  2972. <p>
  2973. <a href="#index">Index</a> -
  2974. <a href="#public.schema">Schema public</a>
  2975. </p>
  2976. <hr>
  2977. <h2>Table:
  2978. <a name="public.table.parts">parts</a>
  2979. </h2>
  2980. <table width="100%" cellspacing="0" cellpadding="3">
  2981. <caption>parts Structure</caption>
  2982. <tr>
  2983. <th>F-Key</th>
  2984. <th>Name</th>
  2985. <th>Type</th>
  2986. <th>Description</th>
  2987. </tr>
  2988. <tr class="tr0">
  2989. <td>
  2990. </td>
  2991. <td>id</td>
  2992. <td>integer</td>
  2993. <td><i>
  2994. PRIMARY KEY
  2995. DEFAULT nextval(&#39;id&#39;::regclass)
  2996. </i>
  2997. </td>
  2998. </tr>
  2999. <tr class="tr1">
  3000. <td>
  3001. </td>
  3002. <td>partnumber</td>
  3003. <td>text</td>
  3004. <td><i>
  3005. </i>
  3006. </td>
  3007. </tr>
  3008. <tr class="tr0">
  3009. <td>
  3010. </td>
  3011. <td>description</td>
  3012. <td>text</td>
  3013. <td><i>
  3014. </i>
  3015. </td>
  3016. </tr>
  3017. <tr class="tr1">
  3018. <td>
  3019. </td>
  3020. <td>unit</td>
  3021. <td>character varying(5)</td>
  3022. <td><i>
  3023. </i>
  3024. </td>
  3025. </tr>
  3026. <tr class="tr0">
  3027. <td>
  3028. </td>
  3029. <td>listprice</td>
  3030. <td>numeric</td>
  3031. <td><i>
  3032. </i>
  3033. </td>
  3034. </tr>
  3035. <tr class="tr1">
  3036. <td>
  3037. </td>
  3038. <td>sellprice</td>
  3039. <td>numeric</td>
  3040. <td><i>
  3041. </i>
  3042. </td>
  3043. </tr>
  3044. <tr class="tr0">
  3045. <td>
  3046. </td>
  3047. <td>lastcost</td>
  3048. <td>numeric</td>
  3049. <td><i>
  3050. </i>
  3051. </td>
  3052. </tr>
  3053. <tr class="tr1">
  3054. <td>
  3055. </td>
  3056. <td>priceupdate</td>
  3057. <td>date</td>
  3058. <td><i>
  3059. DEFAULT (&#39;now&#39;::text)::date
  3060. </i>
  3061. </td>
  3062. </tr>
  3063. <tr class="tr0">
  3064. <td>
  3065. </td>
  3066. <td>weight</td>
  3067. <td>numeric</td>
  3068. <td><i>
  3069. </i>
  3070. </td>
  3071. </tr>
  3072. <tr class="tr1">
  3073. <td>
  3074. </td>
  3075. <td>onhand</td>
  3076. <td>numeric</td>
  3077. <td><i>
  3078. </i>
  3079. </td>
  3080. </tr>
  3081. <tr class="tr0">
  3082. <td>
  3083. </td>
  3084. <td>notes</td>
  3085. <td>text</td>
  3086. <td><i>
  3087. </i>
  3088. </td>
  3089. </tr>
  3090. <tr class="tr1">
  3091. <td>
  3092. </td>
  3093. <td>makemodel</td>
  3094. <td>boolean</td>
  3095. <td><i>
  3096. DEFAULT false
  3097. </i>
  3098. </td>
  3099. </tr>
  3100. <tr class="tr0">
  3101. <td>
  3102. </td>
  3103. <td>assembly</td>
  3104. <td>boolean</td>
  3105. <td><i>
  3106. DEFAULT false
  3107. </i>
  3108. </td>
  3109. </tr>
  3110. <tr class="tr1">
  3111. <td>
  3112. </td>
  3113. <td>alternate</td>
  3114. <td>boolean</td>
  3115. <td><i>
  3116. DEFAULT false
  3117. </i>
  3118. </td>
  3119. </tr>
  3120. <tr class="tr0">
  3121. <td>
  3122. </td>
  3123. <td>rop</td>
  3124. <td>real</td>
  3125. <td><i>
  3126. </i>
  3127. </td>
  3128. </tr>
  3129. <tr class="tr1">
  3130. <td>
  3131. </td>
  3132. <td>inventory_accno_id</td>
  3133. <td>integer</td>
  3134. <td><i>
  3135. </i>
  3136. </td>
  3137. </tr>
  3138. <tr class="tr0">
  3139. <td>
  3140. </td>
  3141. <td>income_accno_id</td>
  3142. <td>integer</td>
  3143. <td><i>
  3144. </i>
  3145. </td>
  3146. </tr>
  3147. <tr class="tr1">
  3148. <td>
  3149. </td>
  3150. <td>expense_accno_id</td>
  3151. <td>integer</td>
  3152. <td><i>
  3153. </i>
  3154. </td>
  3155. </tr>
  3156. <tr class="tr0">
  3157. <td>
  3158. </td>
  3159. <td>bin</td>
  3160. <td>text</td>
  3161. <td><i>
  3162. </i>
  3163. </td>
  3164. </tr>
  3165. <tr class="tr1">
  3166. <td>
  3167. </td>
  3168. <td>obsolete</td>
  3169. <td>boolean</td>
  3170. <td><i>
  3171. DEFAULT false
  3172. </i>
  3173. </td>
  3174. </tr>
  3175. <tr class="tr0">
  3176. <td>
  3177. </td>
  3178. <td>bom</td>
  3179. <td>boolean</td>
  3180. <td><i>
  3181. DEFAULT false
  3182. </i>
  3183. </td>
  3184. </tr>
  3185. <tr class="tr1">
  3186. <td>
  3187. </td>
  3188. <td>image</td>
  3189. <td>text</td>
  3190. <td><i>
  3191. </i>
  3192. </td>
  3193. </tr>
  3194. <tr class="tr0">
  3195. <td>
  3196. </td>
  3197. <td>drawing</td>
  3198. <td>text</td>
  3199. <td><i>
  3200. </i>
  3201. </td>
  3202. </tr>
  3203. <tr class="tr1">
  3204. <td>
  3205. </td>
  3206. <td>microfiche</td>
  3207. <td>text</td>
  3208. <td><i>
  3209. </i>
  3210. </td>
  3211. </tr>
  3212. <tr class="tr0">
  3213. <td>
  3214. </td>
  3215. <td>partsgroup_id</td>
  3216. <td>integer</td>
  3217. <td><i>
  3218. </i>
  3219. </td>
  3220. </tr>
  3221. <tr class="tr1">
  3222. <td>
  3223. </td>
  3224. <td>project_id</td>
  3225. <td>integer</td>
  3226. <td><i>
  3227. </i>
  3228. </td>
  3229. </tr>
  3230. <tr class="tr0">
  3231. <td>
  3232. </td>
  3233. <td>avgcost</td>
  3234. <td>numeric</td>
  3235. <td><i>
  3236. </i>
  3237. </td>
  3238. </tr>
  3239. </table>
  3240. <!-- Inherits -->
  3241. <!-- Constraint List -->
  3242. <!-- Foreign Key Discovery -->
  3243. <p>Tables referencing this one via Foreign Key Constraints:</p>
  3244. <ul>
  3245. <li><a href="#public.table.partstax">partstax</a></li>
  3246. </ul>
  3247. <!-- Indexes -->
  3248. parts_description_key lower(description)
  3249. parts_id_key id
  3250. parts_partnumber_key lower(partnumber)
  3251. <!-- View Definition -->
  3252. <!-- List off permissions -->
  3253. <p>
  3254. <a href="#index">Index</a> -
  3255. <a href="#public.schema">Schema public</a>
  3256. </p>
  3257. <hr>
  3258. <h2>Table:
  3259. <a name="public.table.partscustomer">partscustomer</a>
  3260. </h2>
  3261. <table width="100%" cellspacing="0" cellpadding="3">
  3262. <caption>partscustomer Structure</caption>
  3263. <tr>
  3264. <th>F-Key</th>
  3265. <th>Name</th>
  3266. <th>Type</th>
  3267. <th>Description</th>
  3268. </tr>
  3269. <tr class="tr0">
  3270. <td>
  3271. </td>
  3272. <td>parts_id</td>
  3273. <td>integer</td>
  3274. <td><i>
  3275. </i>
  3276. </td>
  3277. </tr>
  3278. <tr class="tr1">
  3279. <td>
  3280. </td>
  3281. <td>customer_id</td>
  3282. <td>integer</td>
  3283. <td><i>
  3284. </i>
  3285. </td>
  3286. </tr>
  3287. <tr class="tr0">
  3288. <td>
  3289. </td>
  3290. <td>pricegroup_id</td>
  3291. <td>integer</td>
  3292. <td><i>
  3293. </i>
  3294. </td>
  3295. </tr>
  3296. <tr class="tr1">
  3297. <td>
  3298. </td>
  3299. <td>pricebreak</td>
  3300. <td>numeric</td>
  3301. <td><i>
  3302. </i>
  3303. </td>
  3304. </tr>
  3305. <tr class="tr0">
  3306. <td>
  3307. </td>
  3308. <td>sellprice</td>
  3309. <td>numeric</td>
  3310. <td><i>
  3311. </i>
  3312. </td>
  3313. </tr>
  3314. <tr class="tr1">
  3315. <td>
  3316. </td>
  3317. <td>validfrom</td>
  3318. <td>date</td>
  3319. <td><i>
  3320. </i>
  3321. </td>
  3322. </tr>
  3323. <tr class="tr0">
  3324. <td>
  3325. </td>
  3326. <td>validto</td>
  3327. <td>date</td>
  3328. <td><i>
  3329. </i>
  3330. </td>
  3331. </tr>
  3332. <tr class="tr1">
  3333. <td>
  3334. </td>
  3335. <td>curr</td>
  3336. <td>character(3)</td>
  3337. <td><i>
  3338. </i>
  3339. </td>
  3340. </tr>
  3341. <tr class="tr0">
  3342. <td>
  3343. </td>
  3344. <td>entry_id</td>
  3345. <td>serial</td>
  3346. <td><i>
  3347. PRIMARY KEY
  3348. </i>
  3349. </td>
  3350. </tr>
  3351. </table>
  3352. <!-- Inherits -->
  3353. <!-- Constraint List -->
  3354. <!-- Foreign Key Discovery -->
  3355. <!-- Indexes -->
  3356. <!-- View Definition -->
  3357. <!-- List off permissions -->
  3358. <p>
  3359. <a href="#index">Index</a> -
  3360. <a href="#public.schema">Schema public</a>
  3361. </p>
  3362. <hr>
  3363. <h2>Table:
  3364. <a name="public.table.partsgroup">partsgroup</a>
  3365. </h2>
  3366. <table width="100%" cellspacing="0" cellpadding="3">
  3367. <caption>partsgroup Structure</caption>
  3368. <tr>
  3369. <th>F-Key</th>
  3370. <th>Name</th>
  3371. <th>Type</th>
  3372. <th>Description</th>
  3373. </tr>
  3374. <tr class="tr0">
  3375. <td>
  3376. </td>
  3377. <td>id</td>
  3378. <td>integer</td>
  3379. <td><i>
  3380. PRIMARY KEY
  3381. DEFAULT nextval(&#39;id&#39;::regclass)
  3382. </i>
  3383. </td>
  3384. </tr>
  3385. <tr class="tr1">
  3386. <td>
  3387. </td>
  3388. <td>partsgroup</td>
  3389. <td>text</td>
  3390. <td><i>
  3391. </i>
  3392. </td>
  3393. </tr>
  3394. </table>
  3395. <!-- Inherits -->
  3396. <!-- Constraint List -->
  3397. <!-- Foreign Key Discovery -->
  3398. <!-- Indexes -->
  3399. partsgroup_id_key id
  3400. <!-- View Definition -->
  3401. <!-- List off permissions -->
  3402. <p>
  3403. <a href="#index">Index</a> -
  3404. <a href="#public.schema">Schema public</a>
  3405. </p>
  3406. <hr>
  3407. <h2>Table:
  3408. <a name="public.table.partstax">partstax</a>
  3409. </h2>
  3410. <table width="100%" cellspacing="0" cellpadding="3">
  3411. <caption>partstax Structure</caption>
  3412. <tr>
  3413. <th>F-Key</th>
  3414. <th>Name</th>
  3415. <th>Type</th>
  3416. <th>Description</th>
  3417. </tr>
  3418. <tr class="tr0">
  3419. <td>
  3420. <a href="#public.table.parts">parts.id</a>
  3421. </td>
  3422. <td>parts_id</td>
  3423. <td>integer</td>
  3424. <td><i>
  3425. PRIMARY KEY
  3426. </i>
  3427. </td>
  3428. </tr>
  3429. <tr class="tr1">
  3430. <td>
  3431. <a href="#public.table.chart">chart.id</a>
  3432. </td>
  3433. <td>chart_id</td>
  3434. <td>integer</td>
  3435. <td><i>
  3436. PRIMARY KEY
  3437. </i>
  3438. </td>
  3439. </tr>
  3440. <tr class="tr0">
  3441. <td>
  3442. <a href="#public.table.taxcategory">taxcategory.taxcategory_id</a>
  3443. </td>
  3444. <td>taxcategory_id</td>
  3445. <td>integer</td>
  3446. <td><i>
  3447. </i>
  3448. </td>
  3449. </tr>
  3450. </table>
  3451. <!-- Inherits -->
  3452. <!-- Constraint List -->
  3453. <!-- Foreign Key Discovery -->
  3454. <!-- Indexes -->
  3455. partstax_parts_id_key parts_id
  3456. <!-- View Definition -->
  3457. <!-- List off permissions -->
  3458. <p>
  3459. <a href="#index">Index</a> -
  3460. <a href="#public.schema">Schema public</a>
  3461. </p>
  3462. <hr>
  3463. <h2>Table:
  3464. <a name="public.table.partsvendor">partsvendor</a>
  3465. </h2>
  3466. <table width="100%" cellspacing="0" cellpadding="3">
  3467. <caption>partsvendor Structure</caption>
  3468. <tr>
  3469. <th>F-Key</th>
  3470. <th>Name</th>
  3471. <th>Type</th>
  3472. <th>Description</th>
  3473. </tr>
  3474. <tr class="tr0">
  3475. <td>
  3476. </td>
  3477. <td>vendor_id</td>
  3478. <td>integer</td>
  3479. <td><i>
  3480. </i>
  3481. </td>
  3482. </tr>
  3483. <tr class="tr1">
  3484. <td>
  3485. </td>
  3486. <td>parts_id</td>
  3487. <td>integer</td>
  3488. <td><i>
  3489. </i>
  3490. </td>
  3491. </tr>
  3492. <tr class="tr0">
  3493. <td>
  3494. </td>
  3495. <td>partnumber</td>
  3496. <td>text</td>
  3497. <td><i>
  3498. </i>
  3499. </td>
  3500. </tr>
  3501. <tr class="tr1">
  3502. <td>
  3503. </td>
  3504. <td>leadtime</td>
  3505. <td>smallint</td>
  3506. <td><i>
  3507. </i>
  3508. </td>
  3509. </tr>
  3510. <tr class="tr0">
  3511. <td>
  3512. </td>
  3513. <td>lastcost</td>
  3514. <td>numeric</td>
  3515. <td><i>
  3516. </i>
  3517. </td>
  3518. </tr>
  3519. <tr class="tr1">
  3520. <td>
  3521. </td>
  3522. <td>curr</td>
  3523. <td>character(3)</td>
  3524. <td><i>
  3525. </i>
  3526. </td>
  3527. </tr>
  3528. <tr class="tr0">
  3529. <td>
  3530. </td>
  3531. <td>entry_id</td>
  3532. <td>serial</td>
  3533. <td><i>
  3534. PRIMARY KEY
  3535. </i>
  3536. </td>
  3537. </tr>
  3538. </table>
  3539. <!-- Inherits -->
  3540. <!-- Constraint List -->
  3541. <!-- Foreign Key Discovery -->
  3542. <!-- Indexes -->
  3543. partsvendor_parts_id_key parts_id
  3544. partsvendor_vendor_id_key vendor_id
  3545. <!-- View Definition -->
  3546. <!-- List off permissions -->
  3547. <p>
  3548. <a href="#index">Index</a> -
  3549. <a href="#public.schema">Schema public</a>
  3550. </p>
  3551. <hr>
  3552. <h2>Table:
  3553. <a name="public.table.pricegroup">pricegroup</a>
  3554. </h2>
  3555. <table width="100%" cellspacing="0" cellpadding="3">
  3556. <caption>pricegroup Structure</caption>
  3557. <tr>
  3558. <th>F-Key</th>
  3559. <th>Name</th>
  3560. <th>Type</th>
  3561. <th>Description</th>
  3562. </tr>
  3563. <tr class="tr0">
  3564. <td>
  3565. </td>
  3566. <td>id</td>
  3567. <td>integer</td>
  3568. <td><i>
  3569. PRIMARY KEY
  3570. DEFAULT nextval(&#39;id&#39;::regclass)
  3571. </i>
  3572. </td>
  3573. </tr>
  3574. <tr class="tr1">
  3575. <td>
  3576. </td>
  3577. <td>pricegroup</td>
  3578. <td>text</td>
  3579. <td><i>
  3580. </i>
  3581. </td>
  3582. </tr>
  3583. </table>
  3584. <!-- Inherits -->
  3585. <!-- Constraint List -->
  3586. <!-- Foreign Key Discovery -->
  3587. <!-- Indexes -->
  3588. pricegroup_id_key id
  3589. pricegroup_pricegroup_key pricegroup
  3590. <!-- View Definition -->
  3591. <!-- List off permissions -->
  3592. <p>
  3593. <a href="#index">Index</a> -
  3594. <a href="#public.schema">Schema public</a>
  3595. </p>
  3596. <hr>
  3597. <h2>Table:
  3598. <a name="public.table.project">project</a>
  3599. </h2>
  3600. <table width="100%" cellspacing="0" cellpadding="3">
  3601. <caption>project Structure</caption>
  3602. <tr>
  3603. <th>F-Key</th>
  3604. <th>Name</th>
  3605. <th>Type</th>
  3606. <th>Description</th>
  3607. </tr>
  3608. <tr class="tr0">
  3609. <td>
  3610. </td>
  3611. <td>id</td>
  3612. <td>integer</td>
  3613. <td><i>
  3614. PRIMARY KEY
  3615. DEFAULT nextval(&#39;id&#39;::regclass)
  3616. </i>
  3617. </td>
  3618. </tr>
  3619. <tr class="tr1">
  3620. <td>
  3621. </td>
  3622. <td>projectnumber</td>
  3623. <td>text</td>
  3624. <td><i>
  3625. </i>
  3626. </td>
  3627. </tr>
  3628. <tr class="tr0">
  3629. <td>
  3630. </td>
  3631. <td>description</td>
  3632. <td>text</td>
  3633. <td><i>
  3634. </i>
  3635. </td>
  3636. </tr>
  3637. <tr class="tr1">
  3638. <td>
  3639. </td>
  3640. <td>startdate</td>
  3641. <td>date</td>
  3642. <td><i>
  3643. </i>
  3644. </td>
  3645. </tr>
  3646. <tr class="tr0">
  3647. <td>
  3648. </td>
  3649. <td>enddate</td>
  3650. <td>date</td>
  3651. <td><i>
  3652. </i>
  3653. </td>
  3654. </tr>
  3655. <tr class="tr1">
  3656. <td>
  3657. </td>
  3658. <td>parts_id</td>
  3659. <td>integer</td>
  3660. <td><i>
  3661. </i>
  3662. </td>
  3663. </tr>
  3664. <tr class="tr0">
  3665. <td>
  3666. </td>
  3667. <td>production</td>
  3668. <td>numeric</td>
  3669. <td><i>
  3670. </i>
  3671. </td>
  3672. </tr>
  3673. <tr class="tr1">
  3674. <td>
  3675. </td>
  3676. <td>completed</td>
  3677. <td>numeric</td>
  3678. <td><i>
  3679. </i>
  3680. </td>
  3681. </tr>
  3682. <tr class="tr0">
  3683. <td>
  3684. </td>
  3685. <td>customer_id</td>
  3686. <td>integer</td>
  3687. <td><i>
  3688. </i>
  3689. </td>
  3690. </tr>
  3691. </table>
  3692. <!-- Inherits -->
  3693. <!-- Constraint List -->
  3694. <!-- Foreign Key Discovery -->
  3695. <!-- Indexes -->
  3696. project_id_key id
  3697. <!-- View Definition -->
  3698. <!-- List off permissions -->
  3699. <p>
  3700. <a href="#index">Index</a> -
  3701. <a href="#public.schema">Schema public</a>
  3702. </p>
  3703. <hr>
  3704. <h2>Table:
  3705. <a name="public.table.recurring">recurring</a>
  3706. </h2>
  3707. <table width="100%" cellspacing="0" cellpadding="3">
  3708. <caption>recurring Structure</caption>
  3709. <tr>
  3710. <th>F-Key</th>
  3711. <th>Name</th>
  3712. <th>Type</th>
  3713. <th>Description</th>
  3714. </tr>
  3715. <tr class="tr0">
  3716. <td>
  3717. </td>
  3718. <td>id</td>
  3719. <td>integer</td>
  3720. <td><i>
  3721. PRIMARY KEY
  3722. </i>
  3723. </td>
  3724. </tr>
  3725. <tr class="tr1">
  3726. <td>
  3727. </td>
  3728. <td>reference</td>
  3729. <td>text</td>
  3730. <td><i>
  3731. </i>
  3732. </td>
  3733. </tr>
  3734. <tr class="tr0">
  3735. <td>
  3736. </td>
  3737. <td>startdate</td>
  3738. <td>date</td>
  3739. <td><i>
  3740. </i>
  3741. </td>
  3742. </tr>
  3743. <tr class="tr1">
  3744. <td>
  3745. </td>
  3746. <td>nextdate</td>
  3747. <td>date</td>
  3748. <td><i>
  3749. </i>
  3750. </td>
  3751. </tr>
  3752. <tr class="tr0">
  3753. <td>
  3754. </td>
  3755. <td>enddate</td>
  3756. <td>date</td>
  3757. <td><i>
  3758. </i>
  3759. </td>
  3760. </tr>
  3761. <tr class="tr1">
  3762. <td>
  3763. </td>
  3764. <td>repeat</td>
  3765. <td>smallint</td>
  3766. <td><i>
  3767. </i>
  3768. </td>
  3769. </tr>
  3770. <tr class="tr0">
  3771. <td>
  3772. </td>
  3773. <td>unit</td>
  3774. <td>character varying(6)</td>
  3775. <td><i>
  3776. </i>
  3777. </td>
  3778. </tr>
  3779. <tr class="tr1">
  3780. <td>
  3781. </td>
  3782. <td>howmany</td>
  3783. <td>integer</td>
  3784. <td><i>
  3785. </i>
  3786. </td>
  3787. </tr>
  3788. <tr class="tr0">
  3789. <td>
  3790. </td>
  3791. <td>payment</td>
  3792. <td>boolean</td>
  3793. <td><i>
  3794. DEFAULT false
  3795. </i>
  3796. </td>
  3797. </tr>
  3798. </table>
  3799. <!-- Inherits -->
  3800. <!-- Constraint List -->
  3801. <!-- Foreign Key Discovery -->
  3802. <!-- Indexes -->
  3803. <!-- View Definition -->
  3804. <!-- List off permissions -->
  3805. <p>
  3806. <a href="#index">Index</a> -
  3807. <a href="#public.schema">Schema public</a>
  3808. </p>
  3809. <hr>
  3810. <h2>Table:
  3811. <a name="public.table.recurringemail">recurringemail</a>
  3812. </h2>
  3813. <table width="100%" cellspacing="0" cellpadding="3">
  3814. <caption>recurringemail Structure</caption>
  3815. <tr>
  3816. <th>F-Key</th>
  3817. <th>Name</th>
  3818. <th>Type</th>
  3819. <th>Description</th>
  3820. </tr>
  3821. <tr class="tr0">
  3822. <td>
  3823. </td>
  3824. <td>id</td>
  3825. <td>integer</td>
  3826. <td><i>
  3827. PRIMARY KEY
  3828. </i>
  3829. </td>
  3830. </tr>
  3831. <tr class="tr1">
  3832. <td>
  3833. </td>
  3834. <td>formname</td>
  3835. <td>text</td>
  3836. <td><i>
  3837. </i>
  3838. </td>
  3839. </tr>
  3840. <tr class="tr0">
  3841. <td>
  3842. </td>
  3843. <td>format</td>
  3844. <td>text</td>
  3845. <td><i>
  3846. </i>
  3847. </td>
  3848. </tr>
  3849. <tr class="tr1">
  3850. <td>
  3851. </td>
  3852. <td>message</td>
  3853. <td>text</td>
  3854. <td><i>
  3855. </i>
  3856. </td>
  3857. </tr>
  3858. </table>
  3859. <!-- Inherits -->
  3860. <!-- Constraint List -->
  3861. <!-- Foreign Key Discovery -->
  3862. <!-- Indexes -->
  3863. <!-- View Definition -->
  3864. <!-- List off permissions -->
  3865. <p>
  3866. <a href="#index">Index</a> -
  3867. <a href="#public.schema">Schema public</a>
  3868. </p>
  3869. <hr>
  3870. <h2>Table:
  3871. <a name="public.table.recurringprint">recurringprint</a>
  3872. </h2>
  3873. <table width="100%" cellspacing="0" cellpadding="3">
  3874. <caption>recurringprint Structure</caption>
  3875. <tr>
  3876. <th>F-Key</th>
  3877. <th>Name</th>
  3878. <th>Type</th>
  3879. <th>Description</th>
  3880. </tr>
  3881. <tr class="tr0">
  3882. <td>
  3883. </td>
  3884. <td>id</td>
  3885. <td>integer</td>
  3886. <td><i>
  3887. PRIMARY KEY
  3888. </i>
  3889. </td>
  3890. </tr>
  3891. <tr class="tr1">
  3892. <td>
  3893. </td>
  3894. <td>formname</td>
  3895. <td>text</td>
  3896. <td><i>
  3897. </i>
  3898. </td>
  3899. </tr>
  3900. <tr class="tr0">
  3901. <td>
  3902. </td>
  3903. <td>format</td>
  3904. <td>text</td>
  3905. <td><i>
  3906. </i>
  3907. </td>
  3908. </tr>
  3909. <tr class="tr1">
  3910. <td>
  3911. </td>
  3912. <td>printer</td>
  3913. <td>text</td>
  3914. <td><i>
  3915. </i>
  3916. </td>
  3917. </tr>
  3918. </table>
  3919. <!-- Inherits -->
  3920. <!-- Constraint List -->
  3921. <!-- Foreign Key Discovery -->
  3922. <!-- Indexes -->
  3923. <!-- View Definition -->
  3924. <!-- List off permissions -->
  3925. <p>
  3926. <a href="#index">Index</a> -
  3927. <a href="#public.schema">Schema public</a>
  3928. </p>
  3929. <hr>
  3930. <h2>Table:
  3931. <a name="public.table.shipto">shipto</a>
  3932. </h2>
  3933. <table width="100%" cellspacing="0" cellpadding="3">
  3934. <caption>shipto Structure</caption>
  3935. <tr>
  3936. <th>F-Key</th>
  3937. <th>Name</th>
  3938. <th>Type</th>
  3939. <th>Description</th>
  3940. </tr>
  3941. <tr class="tr0">
  3942. <td>
  3943. </td>
  3944. <td>trans_id</td>
  3945. <td>integer</td>
  3946. <td><i>
  3947. </i>
  3948. </td>
  3949. </tr>
  3950. <tr class="tr1">
  3951. <td>
  3952. </td>
  3953. <td>shiptoname</td>
  3954. <td>character varying(64)</td>
  3955. <td><i>
  3956. </i>
  3957. </td>
  3958. </tr>
  3959. <tr class="tr0">
  3960. <td>
  3961. </td>
  3962. <td>shiptoaddress1</td>
  3963. <td>character varying(32)</td>
  3964. <td><i>
  3965. </i>
  3966. </td>
  3967. </tr>
  3968. <tr class="tr1">
  3969. <td>
  3970. </td>
  3971. <td>shiptoaddress2</td>
  3972. <td>character varying(32)</td>
  3973. <td><i>
  3974. </i>
  3975. </td>
  3976. </tr>
  3977. <tr class="tr0">
  3978. <td>
  3979. </td>
  3980. <td>shiptocity</td>
  3981. <td>character varying(32)</td>
  3982. <td><i>
  3983. </i>
  3984. </td>
  3985. </tr>
  3986. <tr class="tr1">
  3987. <td>
  3988. </td>
  3989. <td>shiptostate</td>
  3990. <td>character varying(32)</td>
  3991. <td><i>
  3992. </i>
  3993. </td>
  3994. </tr>
  3995. <tr class="tr0">
  3996. <td>
  3997. </td>
  3998. <td>shiptozipcode</td>
  3999. <td>character varying(10)</td>
  4000. <td><i>
  4001. </i>
  4002. </td>
  4003. </tr>
  4004. <tr class="tr1">
  4005. <td>
  4006. </td>
  4007. <td>shiptocountry</td>
  4008. <td>character varying(32)</td>
  4009. <td><i>
  4010. </i>
  4011. </td>
  4012. </tr>
  4013. <tr class="tr0">
  4014. <td>
  4015. </td>
  4016. <td>shiptocontact</td>
  4017. <td>character varying(64)</td>
  4018. <td><i>
  4019. </i>
  4020. </td>
  4021. </tr>
  4022. <tr class="tr1">
  4023. <td>
  4024. </td>
  4025. <td>shiptophone</td>
  4026. <td>character varying(20)</td>
  4027. <td><i>
  4028. </i>
  4029. </td>
  4030. </tr>
  4031. <tr class="tr0">
  4032. <td>
  4033. </td>
  4034. <td>shiptofax</td>
  4035. <td>character varying(20)</td>
  4036. <td><i>
  4037. </i>
  4038. </td>
  4039. </tr>
  4040. <tr class="tr1">
  4041. <td>
  4042. </td>
  4043. <td>shiptoemail</td>
  4044. <td>text</td>
  4045. <td><i>
  4046. </i>
  4047. </td>
  4048. </tr>
  4049. <tr class="tr0">
  4050. <td>
  4051. </td>
  4052. <td>entry_id</td>
  4053. <td>serial</td>
  4054. <td><i>
  4055. PRIMARY KEY
  4056. </i>
  4057. </td>
  4058. </tr>
  4059. </table>
  4060. <!-- Inherits -->
  4061. <!-- Constraint List -->
  4062. <!-- Foreign Key Discovery -->
  4063. <!-- Indexes -->
  4064. shipto_trans_id_key trans_id
  4065. <!-- View Definition -->
  4066. <!-- List off permissions -->
  4067. <p>
  4068. <a href="#index">Index</a> -
  4069. <a href="#public.schema">Schema public</a>
  4070. </p>
  4071. <hr>
  4072. <h2>Table:
  4073. <a name="public.table.sic">sic</a>
  4074. </h2>
  4075. <table width="100%" cellspacing="0" cellpadding="3">
  4076. <caption>sic Structure</caption>
  4077. <tr>
  4078. <th>F-Key</th>
  4079. <th>Name</th>
  4080. <th>Type</th>
  4081. <th>Description</th>
  4082. </tr>
  4083. <tr class="tr0">
  4084. <td>
  4085. </td>
  4086. <td>code</td>
  4087. <td>character varying(6)</td>
  4088. <td><i>
  4089. PRIMARY KEY
  4090. </i>
  4091. </td>
  4092. </tr>
  4093. <tr class="tr1">
  4094. <td>
  4095. </td>
  4096. <td>sictype</td>
  4097. <td>character(1)</td>
  4098. <td><i>
  4099. </i>
  4100. </td>
  4101. </tr>
  4102. <tr class="tr0">
  4103. <td>
  4104. </td>
  4105. <td>description</td>
  4106. <td>text</td>
  4107. <td><i>
  4108. </i>
  4109. </td>
  4110. </tr>
  4111. </table>
  4112. <!-- Inherits -->
  4113. <!-- Constraint List -->
  4114. <!-- Foreign Key Discovery -->
  4115. <!-- Indexes -->
  4116. <!-- View Definition -->
  4117. <!-- List off permissions -->
  4118. <p>
  4119. <a href="#index">Index</a> -
  4120. <a href="#public.schema">Schema public</a>
  4121. </p>
  4122. <hr>
  4123. <h2>Table:
  4124. <a name="public.table.status">status</a>
  4125. </h2>
  4126. <table width="100%" cellspacing="0" cellpadding="3">
  4127. <caption>status Structure</caption>
  4128. <tr>
  4129. <th>F-Key</th>
  4130. <th>Name</th>
  4131. <th>Type</th>
  4132. <th>Description</th>
  4133. </tr>
  4134. <tr class="tr0">
  4135. <td>
  4136. </td>
  4137. <td>trans_id</td>
  4138. <td>integer</td>
  4139. <td><i>
  4140. PRIMARY KEY
  4141. </i>
  4142. </td>
  4143. </tr>
  4144. <tr class="tr1">
  4145. <td>
  4146. </td>
  4147. <td>formname</td>
  4148. <td>text</td>
  4149. <td><i>
  4150. </i>
  4151. </td>
  4152. </tr>
  4153. <tr class="tr0">
  4154. <td>
  4155. </td>
  4156. <td>printed</td>
  4157. <td>boolean</td>
  4158. <td><i>
  4159. DEFAULT false
  4160. </i>
  4161. </td>
  4162. </tr>
  4163. <tr class="tr1">
  4164. <td>
  4165. </td>
  4166. <td>emailed</td>
  4167. <td>boolean</td>
  4168. <td><i>
  4169. DEFAULT false
  4170. </i>
  4171. </td>
  4172. </tr>
  4173. <tr class="tr0">
  4174. <td>
  4175. </td>
  4176. <td>spoolfile</td>
  4177. <td>text</td>
  4178. <td><i>
  4179. </i>
  4180. </td>
  4181. </tr>
  4182. </table>
  4183. <!-- Inherits -->
  4184. <!-- Constraint List -->
  4185. <!-- Foreign Key Discovery -->
  4186. <!-- Indexes -->
  4187. status_trans_id_key trans_id
  4188. <!-- View Definition -->
  4189. <!-- List off permissions -->
  4190. <p>
  4191. <a href="#index">Index</a> -
  4192. <a href="#public.schema">Schema public</a>
  4193. </p>
  4194. <hr>
  4195. <h2>Table:
  4196. <a name="public.table.tax">tax</a>
  4197. </h2>
  4198. <table width="100%" cellspacing="0" cellpadding="3">
  4199. <caption>tax Structure</caption>
  4200. <tr>
  4201. <th>F-Key</th>
  4202. <th>Name</th>
  4203. <th>Type</th>
  4204. <th>Description</th>
  4205. </tr>
  4206. <tr class="tr0">
  4207. <td>
  4208. <a href="#public.table.chart">chart.id</a>
  4209. </td>
  4210. <td>chart_id</td>
  4211. <td>integer</td>
  4212. <td><i>
  4213. PRIMARY KEY
  4214. </i>
  4215. </td>
  4216. </tr>
  4217. <tr class="tr1">
  4218. <td>
  4219. </td>
  4220. <td>rate</td>
  4221. <td>numeric</td>
  4222. <td><i>
  4223. </i>
  4224. </td>
  4225. </tr>
  4226. <tr class="tr0">
  4227. <td>
  4228. </td>
  4229. <td>taxnumber</td>
  4230. <td>text</td>
  4231. <td><i>
  4232. </i>
  4233. </td>
  4234. </tr>
  4235. <tr class="tr1">
  4236. <td>
  4237. </td>
  4238. <td>validto</td>
  4239. <td>date</td>
  4240. <td><i>
  4241. </i>
  4242. </td>
  4243. </tr>
  4244. <tr class="tr0">
  4245. <td>
  4246. </td>
  4247. <td>pass</td>
  4248. <td>integer</td>
  4249. <td><i>
  4250. NOT NULL
  4251. </i>
  4252. </td>
  4253. </tr>
  4254. <tr class="tr1">
  4255. <td>
  4256. <a href="#public.table.taxmodule">taxmodule.taxmodule_id</a>
  4257. </td>
  4258. <td>taxmodule_id</td>
  4259. <td>integer</td>
  4260. <td><i>
  4261. NOT NULL
  4262. DEFAULT 1
  4263. </i>
  4264. </td>
  4265. </tr>
  4266. </table>
  4267. <!-- Inherits -->
  4268. <!-- Constraint List -->
  4269. <!-- Foreign Key Discovery -->
  4270. <!-- Indexes -->
  4271. <!-- View Definition -->
  4272. <!-- List off permissions -->
  4273. <p>
  4274. <a href="#index">Index</a> -
  4275. <a href="#public.schema">Schema public</a>
  4276. </p>
  4277. <hr>
  4278. <h2>Table:
  4279. <a name="public.table.taxcategory">taxcategory</a>
  4280. </h2>
  4281. <table width="100%" cellspacing="0" cellpadding="3">
  4282. <caption>taxcategory Structure</caption>
  4283. <tr>
  4284. <th>F-Key</th>
  4285. <th>Name</th>
  4286. <th>Type</th>
  4287. <th>Description</th>
  4288. </tr>
  4289. <tr class="tr0">
  4290. <td>
  4291. </td>
  4292. <td>taxcategory_id</td>
  4293. <td>serial</td>
  4294. <td><i>
  4295. PRIMARY KEY
  4296. </i>
  4297. </td>
  4298. </tr>
  4299. <tr class="tr1">
  4300. <td>
  4301. </td>
  4302. <td>taxcategoryname</td>
  4303. <td>text</td>
  4304. <td><i>
  4305. NOT NULL
  4306. </i>
  4307. </td>
  4308. </tr>
  4309. <tr class="tr0">
  4310. <td>
  4311. <a href="#public.table.taxmodule">taxmodule.taxmodule_id</a>
  4312. </td>
  4313. <td>taxmodule_id</td>
  4314. <td>integer</td>
  4315. <td><i>
  4316. NOT NULL
  4317. </i>
  4318. </td>
  4319. </tr>
  4320. </table>
  4321. <!-- Inherits -->
  4322. <!-- Constraint List -->
  4323. <!-- Foreign Key Discovery -->
  4324. <p>Tables referencing this one via Foreign Key Constraints:</p>
  4325. <ul>
  4326. <li><a href="#public.table.partstax">partstax</a></li>
  4327. </ul>
  4328. <!-- Indexes -->
  4329. <!-- View Definition -->
  4330. <!-- List off permissions -->
  4331. <p>
  4332. <a href="#index">Index</a> -
  4333. <a href="#public.schema">Schema public</a>
  4334. </p>
  4335. <hr>
  4336. <h2>Table:
  4337. <a name="public.table.taxmodule">taxmodule</a>
  4338. </h2>
  4339. <table width="100%" cellspacing="0" cellpadding="3">
  4340. <caption>taxmodule Structure</caption>
  4341. <tr>
  4342. <th>F-Key</th>
  4343. <th>Name</th>
  4344. <th>Type</th>
  4345. <th>Description</th>
  4346. </tr>
  4347. <tr class="tr0">
  4348. <td>
  4349. </td>
  4350. <td>taxmodule_id</td>
  4351. <td>serial</td>
  4352. <td><i>
  4353. PRIMARY KEY
  4354. </i>
  4355. </td>
  4356. </tr>
  4357. <tr class="tr1">
  4358. <td>
  4359. </td>
  4360. <td>taxmodulename</td>
  4361. <td>text</td>
  4362. <td><i>
  4363. NOT NULL
  4364. </i>
  4365. </td>
  4366. </tr>
  4367. </table>
  4368. <!-- Inherits -->
  4369. <!-- Constraint List -->
  4370. <!-- Foreign Key Discovery -->
  4371. <p>Tables referencing this one via Foreign Key Constraints:</p>
  4372. <ul>
  4373. <li><a href="#public.table.tax">tax</a></li>
  4374. </ul>
  4375. <ul>
  4376. <li><a href="#public.table.taxcategory">taxcategory</a></li>
  4377. </ul>
  4378. <!-- Indexes -->
  4379. <!-- View Definition -->
  4380. <!-- List off permissions -->
  4381. <p>
  4382. <a href="#index">Index</a> -
  4383. <a href="#public.schema">Schema public</a>
  4384. </p>
  4385. <hr>
  4386. <h2>Table:
  4387. <a name="public.table.transactions">transactions</a>
  4388. </h2>
  4389. <table width="100%" cellspacing="0" cellpadding="3">
  4390. <caption>transactions Structure</caption>
  4391. <tr>
  4392. <th>F-Key</th>
  4393. <th>Name</th>
  4394. <th>Type</th>
  4395. <th>Description</th>
  4396. </tr>
  4397. <tr class="tr0">
  4398. <td>
  4399. </td>
  4400. <td>id</td>
  4401. <td>integer</td>
  4402. <td><i>
  4403. PRIMARY KEY
  4404. </i>
  4405. </td>
  4406. </tr>
  4407. <tr class="tr1">
  4408. <td>
  4409. </td>
  4410. <td>table_name</td>
  4411. <td>text</td>
  4412. <td><i>
  4413. </i>
  4414. </td>
  4415. </tr>
  4416. </table>
  4417. <!-- Inherits -->
  4418. <!-- Constraint List -->
  4419. <!-- Foreign Key Discovery -->
  4420. <!-- Indexes -->
  4421. <!-- View Definition -->
  4422. <!-- List off permissions -->
  4423. <p>
  4424. <a href="#index">Index</a> -
  4425. <a href="#public.schema">Schema public</a>
  4426. </p>
  4427. <hr>
  4428. <h2>Table:
  4429. <a name="public.table.translation">translation</a>
  4430. </h2>
  4431. <table width="100%" cellspacing="0" cellpadding="3">
  4432. <caption>translation Structure</caption>
  4433. <tr>
  4434. <th>F-Key</th>
  4435. <th>Name</th>
  4436. <th>Type</th>
  4437. <th>Description</th>
  4438. </tr>
  4439. <tr class="tr0">
  4440. <td>
  4441. </td>
  4442. <td>trans_id</td>
  4443. <td>integer</td>
  4444. <td><i>
  4445. PRIMARY KEY
  4446. </i>
  4447. </td>
  4448. </tr>
  4449. <tr class="tr1">
  4450. <td>
  4451. </td>
  4452. <td>language_code</td>
  4453. <td>character varying(6)</td>
  4454. <td><i>
  4455. PRIMARY KEY
  4456. </i>
  4457. </td>
  4458. </tr>
  4459. <tr class="tr0">
  4460. <td>
  4461. </td>
  4462. <td>description</td>
  4463. <td>text</td>
  4464. <td><i>
  4465. </i>
  4466. </td>
  4467. </tr>
  4468. </table>
  4469. <!-- Inherits -->
  4470. <!-- Constraint List -->
  4471. <!-- Foreign Key Discovery -->
  4472. <!-- Indexes -->
  4473. translation_trans_id_key trans_id
  4474. <!-- View Definition -->
  4475. <!-- List off permissions -->
  4476. <p>
  4477. <a href="#index">Index</a> -
  4478. <a href="#public.schema">Schema public</a>
  4479. </p>
  4480. <hr>
  4481. <h2>Table:
  4482. <a name="public.table.vendor">vendor</a>
  4483. </h2>
  4484. <table width="100%" cellspacing="0" cellpadding="3">
  4485. <caption>vendor Structure</caption>
  4486. <tr>
  4487. <th>F-Key</th>
  4488. <th>Name</th>
  4489. <th>Type</th>
  4490. <th>Description</th>
  4491. </tr>
  4492. <tr class="tr0">
  4493. <td>
  4494. </td>
  4495. <td>id</td>
  4496. <td>integer</td>
  4497. <td><i>
  4498. PRIMARY KEY
  4499. DEFAULT nextval(&#39;id&#39;::regclass)
  4500. </i>
  4501. </td>
  4502. </tr>
  4503. <tr class="tr1">
  4504. <td>
  4505. </td>
  4506. <td>name</td>
  4507. <td>character varying(64)</td>
  4508. <td><i>
  4509. </i>
  4510. </td>
  4511. </tr>
  4512. <tr class="tr0">
  4513. <td>
  4514. </td>
  4515. <td>address1</td>
  4516. <td>character varying(32)</td>
  4517. <td><i>
  4518. </i>
  4519. </td>
  4520. </tr>
  4521. <tr class="tr1">
  4522. <td>
  4523. </td>
  4524. <td>address2</td>
  4525. <td>character varying(32)</td>
  4526. <td><i>
  4527. </i>
  4528. </td>
  4529. </tr>
  4530. <tr class="tr0">
  4531. <td>
  4532. </td>
  4533. <td>city</td>
  4534. <td>character varying(32)</td>
  4535. <td><i>
  4536. </i>
  4537. </td>
  4538. </tr>
  4539. <tr class="tr1">
  4540. <td>
  4541. </td>
  4542. <td>state</td>
  4543. <td>character varying(32)</td>
  4544. <td><i>
  4545. </i>
  4546. </td>
  4547. </tr>
  4548. <tr class="tr0">
  4549. <td>
  4550. </td>
  4551. <td>zipcode</td>
  4552. <td>character varying(10)</td>
  4553. <td><i>
  4554. </i>
  4555. </td>
  4556. </tr>
  4557. <tr class="tr1">
  4558. <td>
  4559. </td>
  4560. <td>country</td>
  4561. <td>character varying(32)</td>
  4562. <td><i>
  4563. </i>
  4564. </td>
  4565. </tr>
  4566. <tr class="tr0">
  4567. <td>
  4568. </td>
  4569. <td>contact</td>
  4570. <td>character varying(64)</td>
  4571. <td><i>
  4572. </i>
  4573. </td>
  4574. </tr>
  4575. <tr class="tr1">
  4576. <td>
  4577. </td>
  4578. <td>phone</td>
  4579. <td>character varying(20)</td>
  4580. <td><i>
  4581. </i>
  4582. </td>
  4583. </tr>
  4584. <tr class="tr0">
  4585. <td>
  4586. </td>
  4587. <td>fax</td>
  4588. <td>character varying(20)</td>
  4589. <td><i>
  4590. </i>
  4591. </td>
  4592. </tr>
  4593. <tr class="tr1">
  4594. <td>
  4595. </td>
  4596. <td>email</td>
  4597. <td>text</td>
  4598. <td><i>
  4599. </i>
  4600. </td>
  4601. </tr>
  4602. <tr class="tr0">
  4603. <td>
  4604. </td>
  4605. <td>notes</td>
  4606. <td>text</td>
  4607. <td><i>
  4608. </i>
  4609. </td>
  4610. </tr>
  4611. <tr class="tr1">
  4612. <td>
  4613. </td>
  4614. <td>terms</td>
  4615. <td>smallint</td>
  4616. <td><i>
  4617. </i>
  4618. </td>
  4619. </tr>
  4620. <tr class="tr0">
  4621. <td>
  4622. </td>
  4623. <td>taxincluded</td>
  4624. <td>boolean</td>
  4625. <td><i>
  4626. DEFAULT false
  4627. </i>
  4628. </td>
  4629. </tr>
  4630. <tr class="tr1">
  4631. <td>
  4632. </td>
  4633. <td>vendornumber</td>
  4634. <td>character varying(32)</td>
  4635. <td><i>
  4636. </i>
  4637. </td>
  4638. </tr>
  4639. <tr class="tr0">
  4640. <td>
  4641. </td>
  4642. <td>cc</td>
  4643. <td>text</td>
  4644. <td><i>
  4645. </i>
  4646. </td>
  4647. </tr>
  4648. <tr class="tr1">
  4649. <td>
  4650. </td>
  4651. <td>bcc</td>
  4652. <td>text</td>
  4653. <td><i>
  4654. </i>
  4655. </td>
  4656. </tr>
  4657. <tr class="tr0">
  4658. <td>
  4659. </td>
  4660. <td>gifi_accno</td>
  4661. <td>character varying(30)</td>
  4662. <td><i>
  4663. </i>
  4664. </td>
  4665. </tr>
  4666. <tr class="tr1">
  4667. <td>
  4668. </td>
  4669. <td>business_id</td>
  4670. <td>integer</td>
  4671. <td><i>
  4672. </i>
  4673. </td>
  4674. </tr>
  4675. <tr class="tr0">
  4676. <td>
  4677. </td>
  4678. <td>taxnumber</td>
  4679. <td>character varying(32)</td>
  4680. <td><i>
  4681. </i>
  4682. </td>
  4683. </tr>
  4684. <tr class="tr1">
  4685. <td>
  4686. </td>
  4687. <td>sic_code</td>
  4688. <td>character varying(6)</td>
  4689. <td><i>
  4690. </i>
  4691. </td>
  4692. </tr>
  4693. <tr class="tr0">
  4694. <td>
  4695. </td>
  4696. <td>discount</td>
  4697. <td>numeric</td>
  4698. <td><i>
  4699. </i>
  4700. </td>
  4701. </tr>
  4702. <tr class="tr1">
  4703. <td>
  4704. </td>
  4705. <td>creditlimit</td>
  4706. <td>numeric</td>
  4707. <td><i>
  4708. </i>
  4709. </td>
  4710. </tr>
  4711. <tr class="tr0">
  4712. <td>
  4713. </td>
  4714. <td>iban</td>
  4715. <td>character varying(34)</td>
  4716. <td><i>
  4717. </i>
  4718. </td>
  4719. </tr>
  4720. <tr class="tr1">
  4721. <td>
  4722. </td>
  4723. <td>bic</td>
  4724. <td>character varying(11)</td>
  4725. <td><i>
  4726. </i>
  4727. </td>
  4728. </tr>
  4729. <tr class="tr0">
  4730. <td>
  4731. </td>
  4732. <td>employee_id</td>
  4733. <td>integer</td>
  4734. <td><i>
  4735. </i>
  4736. </td>
  4737. </tr>
  4738. <tr class="tr1">
  4739. <td>
  4740. </td>
  4741. <td>language_code</td>
  4742. <td>character varying(6)</td>
  4743. <td><i>
  4744. </i>
  4745. </td>
  4746. </tr>
  4747. <tr class="tr0">
  4748. <td>
  4749. </td>
  4750. <td>pricegroup_id</td>
  4751. <td>integer</td>
  4752. <td><i>
  4753. </i>
  4754. </td>
  4755. </tr>
  4756. <tr class="tr1">
  4757. <td>
  4758. </td>
  4759. <td>curr</td>
  4760. <td>character(3)</td>
  4761. <td><i>
  4762. </i>
  4763. </td>
  4764. </tr>
  4765. <tr class="tr0">
  4766. <td>
  4767. </td>
  4768. <td>startdate</td>
  4769. <td>date</td>
  4770. <td><i>
  4771. </i>
  4772. </td>
  4773. </tr>
  4774. <tr class="tr1">
  4775. <td>
  4776. </td>
  4777. <td>enddate</td>
  4778. <td>date</td>
  4779. <td><i>
  4780. </i>
  4781. </td>
  4782. </tr>
  4783. </table>
  4784. <!-- Inherits -->
  4785. <!-- Constraint List -->
  4786. <!-- Foreign Key Discovery -->
  4787. <!-- Indexes -->
  4788. vendor_contact_key lower((contact)::text)
  4789. vendor_id_key id
  4790. vendor_name_key lower((name)::text)
  4791. vendor_vendornumber_key vendornumber
  4792. <!-- View Definition -->
  4793. <!-- List off permissions -->
  4794. <p>
  4795. <a href="#index">Index</a> -
  4796. <a href="#public.schema">Schema public</a>
  4797. </p>
  4798. <hr>
  4799. <h2>Table:
  4800. <a name="public.table.vendortax">vendortax</a>
  4801. </h2>
  4802. <table width="100%" cellspacing="0" cellpadding="3">
  4803. <caption>vendortax Structure</caption>
  4804. <tr>
  4805. <th>F-Key</th>
  4806. <th>Name</th>
  4807. <th>Type</th>
  4808. <th>Description</th>
  4809. </tr>
  4810. <tr class="tr0">
  4811. <td>
  4812. </td>
  4813. <td>vendor_id</td>
  4814. <td>integer</td>
  4815. <td><i>
  4816. PRIMARY KEY
  4817. </i>
  4818. </td>
  4819. </tr>
  4820. <tr class="tr1">
  4821. <td>
  4822. </td>
  4823. <td>chart_id</td>
  4824. <td>integer</td>
  4825. <td><i>
  4826. PRIMARY KEY
  4827. </i>
  4828. </td>
  4829. </tr>
  4830. </table>
  4831. <!-- Inherits -->
  4832. <!-- Constraint List -->
  4833. <!-- Foreign Key Discovery -->
  4834. <!-- Indexes -->
  4835. vendortax_vendor_id_key vendor_id
  4836. <!-- View Definition -->
  4837. <!-- List off permissions -->
  4838. <p>
  4839. <a href="#index">Index</a> -
  4840. <a href="#public.schema">Schema public</a>
  4841. </p>
  4842. <hr>
  4843. <h2>Table:
  4844. <a name="public.table.warehouse">warehouse</a>
  4845. </h2>
  4846. <table width="100%" cellspacing="0" cellpadding="3">
  4847. <caption>warehouse Structure</caption>
  4848. <tr>
  4849. <th>F-Key</th>
  4850. <th>Name</th>
  4851. <th>Type</th>
  4852. <th>Description</th>
  4853. </tr>
  4854. <tr class="tr0">
  4855. <td>
  4856. </td>
  4857. <td>id</td>
  4858. <td>integer</td>
  4859. <td><i>
  4860. PRIMARY KEY
  4861. DEFAULT nextval(&#39;id&#39;::regclass)
  4862. </i>
  4863. </td>
  4864. </tr>
  4865. <tr class="tr1">
  4866. <td>
  4867. </td>
  4868. <td>description</td>
  4869. <td>text</td>
  4870. <td><i>
  4871. </i>
  4872. </td>
  4873. </tr>
  4874. </table>
  4875. <!-- Inherits -->
  4876. <!-- Constraint List -->
  4877. <!-- Foreign Key Discovery -->
  4878. <!-- Indexes -->
  4879. <!-- View Definition -->
  4880. <!-- List off permissions -->
  4881. <p>
  4882. <a href="#index">Index</a> -
  4883. <a href="#public.schema">Schema public</a>
  4884. </p>
  4885. <hr>
  4886. <h2>Table:
  4887. <a name="public.table.yearend">yearend</a>
  4888. </h2>
  4889. <table width="100%" cellspacing="0" cellpadding="3">
  4890. <caption>yearend Structure</caption>
  4891. <tr>
  4892. <th>F-Key</th>
  4893. <th>Name</th>
  4894. <th>Type</th>
  4895. <th>Description</th>
  4896. </tr>
  4897. <tr class="tr0">
  4898. <td>
  4899. </td>
  4900. <td>trans_id</td>
  4901. <td>integer</td>
  4902. <td><i>
  4903. PRIMARY KEY
  4904. </i>
  4905. </td>
  4906. </tr>
  4907. <tr class="tr1">
  4908. <td>
  4909. </td>
  4910. <td>transdate</td>
  4911. <td>date</td>
  4912. <td><i>
  4913. </i>
  4914. </td>
  4915. </tr>
  4916. </table>
  4917. <!-- Inherits -->
  4918. <!-- Constraint List -->
  4919. <!-- Foreign Key Discovery -->
  4920. <!-- Indexes -->
  4921. <!-- View Definition -->
  4922. <!-- List off permissions -->
  4923. <p>
  4924. <a href="#index">Index</a> -
  4925. <a href="#public.schema">Schema public</a>
  4926. </p>
  4927. <!-- We've gone through the table structure, now lets take a look at user functions -->
  4928. <hr>
  4929. <h2>Function:
  4930. <a href="#public.schema"><a name="public.function.add-custom-field-character-varying-character-varying-character-varying">add_custom_field( character varying, character varying, character varying )</a>
  4931. </h2>
  4932. <h3>Returns: boolean</h3>
  4933. <h3>Language: PLPGSQL</h3>
  4934. <pre>
  4935. DECLARE
  4936. table_name ALIAS FOR $1;
  4937. new_field_name ALIAS FOR $2;
  4938. field_datatype ALIAS FOR $3;
  4939. BEGIN
  4940. EXECUTE &#39;SELECT TABLE_ID FROM custom_table_catalog
  4941. WHERE extends = &#39;&#39;&#39; || table_name || &#39;&#39;&#39; &#39;;
  4942. IF NOT FOUND THEN
  4943. BEGIN
  4944. INSERT INTO custom_table_catalog (extends)
  4945. VALUES (table_name);
  4946. EXECUTE &#39;CREATE TABLE custom_&#39;||table_name ||
  4947. &#39; (row_id INT PRIMARY KEY)&#39;;
  4948. EXCEPTION WHEN duplicate_table THEN
  4949. -- do nothing
  4950. END;
  4951. END IF;
  4952. EXECUTE &#39;INSERT INTO custom_field_catalog (field_name, table_id)
  4953. VALUES ( &#39;&#39;&#39; || new_field_name ||&#39;&#39;&#39;, (SELECT table_id FROM custom_table_catalog
  4954. WHERE extends = &#39;&#39;&#39;|| table_name || &#39;&#39;&#39;))&#39;;
  4955. EXECUTE &#39;ALTER TABLE custom_&#39;||table_name || &#39; ADD COLUMN &#39;
  4956. || new_field_name || &#39; &#39; || field_datatype;
  4957. RETURN TRUE;
  4958. END;
  4959. </pre>
  4960. <hr>
  4961. <h2>Function:
  4962. <a href="#public.schema"><a name="public.function.avgcost-integer">avgcost( integer )</a>
  4963. </h2>
  4964. <h3>Returns: double precision</h3>
  4965. <h3>Language: PLPGSQL</h3>
  4966. <pre>
  4967. DECLARE
  4968. v_cost float;
  4969. v_qty float;
  4970. v_parts_id alias for $1;
  4971. BEGIN
  4972. SELECT INTO v_cost, v_qty SUM(i.sellprice * i.qty), SUM(i.qty)
  4973. FROM invoice i
  4974. JOIN ap a ON (a.id = i.trans_id)
  4975. WHERE i.parts_id = v_parts_id;
  4976. IF v_cost IS NULL THEN
  4977. v_cost := 0;
  4978. END IF;
  4979. IF NOT v_qty IS NULL THEN
  4980. IF v_qty = 0 THEN
  4981. v_cost := 0;
  4982. ELSE
  4983. v_cost := v_cost/v_qty;
  4984. END IF;
  4985. END IF;
  4986. RETURN v_cost;
  4987. END;
  4988. </pre>
  4989. <hr>
  4990. <h2>Function:
  4991. <a href="#public.schema"><a name="public.function.check-department">check_department( )</a>
  4992. </h2>
  4993. <h3>Returns: &quot;trigger&quot;</h3>
  4994. <h3>Language: PLPGSQL</h3>
  4995. <pre>
  4996. declare
  4997. dpt_id int;
  4998. begin
  4999. if new.department_id = 0 then
  5000. delete from dpt_trans where trans_id = new.id;
  5001. return NULL;
  5002. end if;
  5003. select into dpt_id trans_id from dpt_trans where trans_id = new.id;
  5004. if dpt_id &gt; 0 then
  5005. update dpt_trans set department_id = new.department_id where trans_id = dpt_id;
  5006. else
  5007. insert into dpt_trans (trans_id, department_id) values (new.id, new.department_id);
  5008. end if;
  5009. return NULL;
  5010. end;
  5011. </pre>
  5012. <hr>
  5013. <h2>Function:
  5014. <a href="#public.schema"><a name="public.function.check-inventory">check_inventory( )</a>
  5015. </h2>
  5016. <h3>Returns: &quot;trigger&quot;</h3>
  5017. <h3>Language: PLPGSQL</h3>
  5018. <pre>
  5019. declare
  5020. itemid int;
  5021. row_data inventory%rowtype;
  5022. begin
  5023. if not old.quotation then
  5024. for row_data in select * from inventory where trans_id = old.id loop
  5025. select into itemid id from orderitems where trans_id = old.id and id = row_data.orderitems_id;
  5026. if itemid is null then
  5027. delete from inventory where trans_id = old.id and orderitems_id = row_data.orderitems_id;
  5028. end if;
  5029. end loop;
  5030. end if;
  5031. return old;
  5032. end;
  5033. </pre>
  5034. <hr>
  5035. <h2>Function:
  5036. <a href="#public.schema"><a name="public.function.del-customer">del_customer( )</a>
  5037. </h2>
  5038. <h3>Returns: &quot;trigger&quot;</h3>
  5039. <h3>Language: PLPGSQL</h3>
  5040. <pre>
  5041. begin
  5042. delete from shipto where trans_id = old.id;
  5043. delete from customertax where customer_id = old.id;
  5044. delete from partscustomer where customer_id = old.id;
  5045. return NULL;
  5046. end;
  5047. </pre>
  5048. <hr>
  5049. <h2>Function:
  5050. <a href="#public.schema"><a name="public.function.del-department">del_department( )</a>
  5051. </h2>
  5052. <h3>Returns: &quot;trigger&quot;</h3>
  5053. <h3>Language: PLPGSQL</h3>
  5054. <pre>
  5055. begin
  5056. delete from dpt_trans where trans_id = old.id;
  5057. return NULL;
  5058. end;
  5059. </pre>
  5060. <hr>
  5061. <h2>Function:
  5062. <a href="#public.schema"><a name="public.function.del-exchangerate">del_exchangerate( )</a>
  5063. </h2>
  5064. <h3>Returns: &quot;trigger&quot;</h3>
  5065. <h3>Language: PLPGSQL</h3>
  5066. <pre>
  5067. declare
  5068. t_transdate date;
  5069. t_curr char(3);
  5070. t_id int;
  5071. d_curr text;
  5072. begin
  5073. select into d_curr substr(value,1,3) from defaults where setting_key = &#39;curr&#39;;
  5074. if TG_RELNAME = &#39;ar&#39; then
  5075. select into t_curr, t_transdate curr, transdate from ar where id = old.id;
  5076. end if;
  5077. if TG_RELNAME = &#39;ap&#39; then
  5078. select into t_curr, t_transdate curr, transdate from ap where id = old.id;
  5079. end if;
  5080. if TG_RELNAME = &#39;oe&#39; then
  5081. select into t_curr, t_transdate curr, transdate from oe where id = old.id;
  5082. end if;
  5083. if d_curr != t_curr then
  5084. select into t_id a.id from acc_trans ac
  5085. join ar a on (a.id = ac.trans_id)
  5086. where a.curr = t_curr
  5087. and ac.transdate = t_transdate
  5088. except select a.id from ar a where a.id = old.id
  5089. union
  5090. select a.id from acc_trans ac
  5091. join ap a on (a.id = ac.trans_id)
  5092. where a.curr = t_curr
  5093. and ac.transdate = t_transdate
  5094. except select a.id from ap a where a.id = old.id
  5095. union
  5096. select o.id from oe o
  5097. where o.curr = t_curr
  5098. and o.transdate = t_transdate
  5099. except select o.id from oe o where o.id = old.id;
  5100. if not found then
  5101. delete from exchangerate where curr = t_curr and transdate = t_transdate;
  5102. end if;
  5103. end if;
  5104. return old;
  5105. end;
  5106. </pre>
  5107. <hr>
  5108. <h2>Function:
  5109. <a href="#public.schema"><a name="public.function.del-recurring">del_recurring( )</a>
  5110. </h2>
  5111. <h3>Returns: &quot;trigger&quot;</h3>
  5112. <h3>Language: PLPGSQL</h3>
  5113. <pre>
  5114. BEGIN
  5115. DELETE FROM recurring WHERE id = old.id;
  5116. DELETE FROM recurringemail WHERE id = old.id;
  5117. DELETE FROM recurringprint WHERE id = old.id;
  5118. RETURN NULL;
  5119. END;
  5120. </pre>
  5121. <hr>
  5122. <h2>Function:
  5123. <a href="#public.schema"><a name="public.function.del-vendor">del_vendor( )</a>
  5124. </h2>
  5125. <h3>Returns: &quot;trigger&quot;</h3>
  5126. <h3>Language: PLPGSQL</h3>
  5127. <pre>
  5128. begin
  5129. delete from shipto where trans_id = old.id;
  5130. delete from vendortax where vendor_id = old.id;
  5131. delete from partsvendor where vendor_id = old.id;
  5132. return NULL;
  5133. end;
  5134. </pre>
  5135. <hr>
  5136. <h2>Function:
  5137. <a href="#public.schema"><a name="public.function.del-yearend">del_yearend( )</a>
  5138. </h2>
  5139. <h3>Returns: &quot;trigger&quot;</h3>
  5140. <h3>Language: PLPGSQL</h3>
  5141. <pre>
  5142. begin
  5143. delete from yearend where trans_id = old.id;
  5144. return NULL;
  5145. end;
  5146. </pre>
  5147. <hr>
  5148. <h2>Function:
  5149. <a href="#public.schema"><a name="public.function.drop-custom-field-character-varying-character-varying">drop_custom_field( character varying, character varying )</a>
  5150. </h2>
  5151. <h3>Returns: boolean</h3>
  5152. <h3>Language: PLPGSQL</h3>
  5153. <pre>
  5154. DECLARE
  5155. table_name ALIAS FOR $1;
  5156. custom_field_name ALIAS FOR $2;
  5157. BEGIN
  5158. DELETE FROM custom_field_catalog
  5159. WHERE field_name = custom_field_name AND
  5160. table_id = (SELECT table_id FROM custom_table_catalog
  5161. WHERE extends = table_name);
  5162. EXECUTE &#39;ALTER TABLE custom_&#39; || table_name ||
  5163. &#39; DROP COLUMN &#39; || custom_field_name;
  5164. RETURN TRUE;
  5165. END;
  5166. </pre>
  5167. <hr>
  5168. <h2>Function:
  5169. <a href="#public.schema"><a name="public.function.lastcost-integer">lastcost( integer )</a>
  5170. </h2>
  5171. <h3>Returns: double precision</h3>
  5172. <h3>Language: PLPGSQL</h3>
  5173. <pre>
  5174. DECLARE
  5175. v_cost float;
  5176. v_parts_id alias for $1;
  5177. BEGIN
  5178. SELECT INTO v_cost sellprice FROM invoice i
  5179. JOIN ap a ON (a.id = i.trans_id)
  5180. WHERE i.parts_id = v_parts_id
  5181. ORDER BY a.transdate desc, a.id desc
  5182. LIMIT 1;
  5183. IF v_cost IS NULL THEN
  5184. v_cost := 0;
  5185. END IF;
  5186. RETURN v_cost;
  5187. END;
  5188. </pre>
  5189. <hr>
  5190. <h2>Function:
  5191. <a href="#public.schema"><a name="public.function.trigger-parts-short">trigger_parts_short( )</a>
  5192. </h2>
  5193. <h3>Returns: &quot;trigger&quot;</h3>
  5194. <h3>Language: PLPGSQL</h3>
  5195. <pre>
  5196. BEGIN
  5197. IF NEW.onhand &gt;= NEW.rop THEN
  5198. NOTIFY parts_short;
  5199. END IF;
  5200. RETURN NEW;
  5201. END;
  5202. </pre>
  5203. <hr>
  5204. <h2>Function:
  5205. <a href="#public.schema"><a name="public.function.update-user-integer-text">update_user( integer, text )</a>
  5206. </h2>
  5207. <h3>Returns: integer</h3>
  5208. <h3>Language: SQL</h3>
  5209. <p> Takes int4 which is users.id and text which is username. Will update username based on id. Username is unique </p>
  5210. <pre>
  5211. UPDATE users SET username = &#39;$2&#39; WHERE id = $1;
  5212. SELECT 1;
  5213. </pre>
  5214. <p class="w3ref">Generated by <a href="http://www.rbt.ca/autodoc/">PostgreSQL Autodoc</a></p>
  5215. <p class="w3ref"><a href="http://validator.w3.org/check/referer">W3C HTML 4.01 Strict</a></p>
  5216. </body></html>