tables.php 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302
  1. <?php
  2. $tables=[
  3. 'article_collections' => [
  4. 'key'=>'id',
  5. 'time1'=>'',
  6. 'time2'=>'updated_at',
  7. 'user'=>true,
  8. 'fields'=>[
  9. 'id',
  10. 'collect_id',
  11. 'article_id',
  12. 'level',
  13. 'title',
  14. 'children',
  15. 'editor_id',
  16. 'created_at',
  17. 'updated_at',
  18. 'deleted_at',
  19. ],
  20. ],
  21. 'articles' =>[
  22. 'key'=>'uid',
  23. 'time1'=>'modify_time',
  24. 'time2'=>'updated_at',
  25. 'user'=>true,
  26. 'fields'=>[
  27. 'id',
  28. 'uid' ,
  29. 'parent_id' ,
  30. 'default_channel_id' ,
  31. 'title' ,
  32. 'subtitle' ,
  33. 'summary' ,
  34. 'cover' ,
  35. 'content' ,
  36. 'content_type' ,
  37. 'owner' ,
  38. 'owner_id',
  39. 'editor_id',
  40. 'setting' ,
  41. 'status' ,
  42. 'lang' ,
  43. 'create_time',
  44. 'modify_time',
  45. 'created_at' ,
  46. 'updated_at' ,
  47. 'deleted_at' ,
  48. ],
  49. ],
  50. 'attachments' =>[
  51. 'key'=>'id',
  52. 'time1'=>'',
  53. 'time2'=>'updated_at',
  54. 'user'=>true,
  55. 'fields'=>[
  56. 'id' ,
  57. 'user_uid' ,
  58. 'bucket' ,
  59. 'name' ,
  60. 'title' ,
  61. 'size',
  62. 'content_type' ,
  63. 'status' ,
  64. 'version' ,
  65. 'deleted_at' ,
  66. 'created_at' ,
  67. 'updated_at' ,
  68. ]
  69. ],
  70. 'bolds' =>[
  71. 'key'=>'id',
  72. 'time1'=>'',
  73. 'time2'=>'created_at',
  74. 'user'=>false,
  75. 'fields'=>[
  76. 'id',
  77. 'book' ,
  78. 'paragraph' ,
  79. 'word' ,
  80. 'word2' ,
  81. 'word_en' ,
  82. 'pali' ,
  83. 'base' ,
  84. 'created_at' ,
  85. ],
  86. ],
  87. 'book_titles' =>[
  88. 'key'=>'id',
  89. 'time1'=>'',
  90. 'time2'=>'updated_at',
  91. 'user'=>false,
  92. 'fields'=>[
  93. 'id',
  94. 'book' ,
  95. 'paragraph' ,
  96. 'title' ,
  97. 'created_at' ,
  98. 'updated_at' ,
  99. 'sn'
  100. ],
  101. ],
  102. 'book_words' =>[
  103. 'key'=>'id',
  104. 'time1'=>'',
  105. 'time2'=>'updated_at',
  106. 'user'=>false,
  107. 'fields'=>[
  108. 'id',
  109. 'book' ,
  110. 'wordindex' ,
  111. 'count' ,
  112. 'created_at' ,
  113. 'updated_at'
  114. ]
  115. ],
  116. 'channels' =>[
  117. 'key'=>'uid',
  118. 'time1'=>'modify_time',
  119. 'time2'=>'updated_at',
  120. 'user'=>true,
  121. 'fields'=>[
  122. 'id',
  123. 'type' ,
  124. 'owner_uid' ,
  125. 'editor_id',
  126. 'name' ,
  127. 'summary' ,
  128. 'lang' ,
  129. 'status' ,
  130. 'setting' ,
  131. 'create_time',
  132. 'modify_time',
  133. 'created_at' ,
  134. 'updated_at' ,
  135. 'deleted_at' ,
  136. 'uid' ,
  137. 'config' ,
  138. ]
  139. ],
  140. 'collections' =>[
  141. 'key'=>'uid',
  142. 'time1'=>'modify_time',
  143. 'time2'=>'updated_at',
  144. 'user'=>true,
  145. 'fields'=>[
  146. 'id',
  147. 'uid' ,
  148. 'parent_id' ,
  149. 'default_channel_id' ,
  150. 'title' ,
  151. 'subtitle' ,
  152. 'summary' ,
  153. 'cover' ,
  154. 'article_list' ,
  155. 'owner' ,
  156. 'owner_id',
  157. 'editor_id',
  158. 'setting' ,
  159. 'status' ,
  160. 'lang' ,
  161. 'create_time',
  162. 'modify_time',
  163. 'created_at' ,
  164. 'updated_at' ,
  165. 'deleted_at'
  166. ]
  167. ],
  168. 'course_members' =>[
  169. 'key'=>'id',
  170. 'time1'=>'',
  171. 'time2'=>'updated_at',
  172. 'user'=>true,
  173. 'fields'=>[
  174. 'id' ,
  175. 'user_id' ,
  176. 'role' ,
  177. 'course_id' ,
  178. 'channel_id' ,
  179. 'status' ,
  180. 'created_at' ,
  181. 'updated_at'
  182. ]
  183. ],
  184. 'courses' =>[
  185. 'key'=>'id',
  186. 'time1'=>'',
  187. 'time2'=>'updated_at',
  188. 'user'=>true,
  189. 'fields'=>[
  190. 'id' ,
  191. 'title' ,
  192. 'subtitle' ,
  193. 'cover' ,
  194. 'content' ,
  195. 'content_type' ,
  196. 'teacher' ,
  197. 'start_at' ,
  198. 'end_at' ,
  199. 'studio_id' ,
  200. 'created_at' ,
  201. 'updated_at' ,
  202. 'anthology_id' ,
  203. 'publicity' ,
  204. 'channel_id' ,
  205. "join" ,
  206. 'request_exp' ,
  207. 'summary' ,
  208. ]
  209. ],
  210. 'custom_book_ids' =>[
  211. 'key'=>'key',
  212. 'time1'=>'',
  213. 'time2'=>'updated_at',
  214. 'user'=>true,
  215. 'fields'=>[
  216. 'id',
  217. 'key' ,
  218. 'value' ,
  219. 'created_at' ,
  220. 'updated_at'
  221. ]
  222. ],
  223. 'custom_book_sentences' =>[
  224. 'key'=>'id',
  225. 'time1'=>'modify_time',
  226. 'time2'=>'updated_at',
  227. 'user'=>true,
  228. 'fields'=>[
  229. 'id',
  230. 'book' ,
  231. 'paragraph' ,
  232. 'word_start' ,
  233. 'word_end' ,
  234. 'content' ,
  235. 'content_type' ,
  236. 'length' ,
  237. 'owner' ,
  238. 'lang' ,
  239. 'status' ,
  240. 'create_time',
  241. 'modify_time',
  242. 'created_at' ,
  243. 'updated_at' ,
  244. ]
  245. ],
  246. 'custom_books' =>[
  247. 'key'=>'id',
  248. 'time1'=>'',
  249. 'time2'=>'updated_at',
  250. 'user'=>true,
  251. 'fields'=>[
  252. 'id',
  253. 'book_id' ,
  254. 'title' ,
  255. 'owner' ,
  256. 'editor_id',
  257. 'lang' ,
  258. 'status' ,
  259. 'created_at' ,
  260. 'updated_at'
  261. ]
  262. ],
  263. 'dhamma_terms' =>[
  264. 'key'=>'guid',
  265. 'time1'=>'modify_time',
  266. 'time2'=>'updated_at',
  267. 'user'=>true,
  268. 'fields'=>[
  269. 'id',
  270. 'guid' ,
  271. 'word' ,
  272. 'word_en' ,
  273. 'meaning' ,
  274. 'other_meaning' ,
  275. 'note' ,
  276. 'tag' ,
  277. 'channal' ,
  278. 'language' ,
  279. 'owner' ,
  280. 'editor_id',
  281. 'create_time',
  282. 'modify_time',
  283. 'created_at' ,
  284. 'updated_at' ,
  285. 'deleted_at'
  286. ]
  287. ],
  288. 'dict_infos' =>[
  289. 'key'=>'id',
  290. 'time1'=>'',
  291. 'time2'=>'updated_at',
  292. 'user'=>false,
  293. 'fields'=>[
  294. 'id' ,
  295. 'name' ,
  296. 'shortname' ,
  297. 'description' ,
  298. 'src_lang' ,
  299. 'dest_lang' ,
  300. 'rows' ,
  301. 'owner_id' ,
  302. 'meta' ,
  303. 'created_at' ,
  304. 'updated_at'
  305. ]
  306. ],
  307. 'discussions' =>[
  308. 'key'=>'id',
  309. 'time1'=>'',
  310. 'time2'=>'updated_at',
  311. 'user'=>true,
  312. 'fields'=>[
  313. 'id' ,
  314. 'res_id' ,
  315. 'res_type' ,
  316. 'parent' ,
  317. 'title' ,
  318. 'content' ,
  319. 'children_count' ,
  320. 'editor_uid' ,
  321. 'publicity' ,
  322. 'created_at' ,
  323. 'updated_at' ,
  324. 'content_type' ,
  325. 'status' ,
  326. 'tpl_id' ,
  327. ]
  328. ],
  329. 'file_indices' =>[
  330. 'key'=>'uid',
  331. 'time1'=>'modify_time',
  332. 'time2'=>'updated_at',
  333. 'user'=>true,
  334. 'fields'=>[
  335. 'id',
  336. 'uid' ,
  337. 'parent_id' ,
  338. 'user_id',
  339. 'book' ,
  340. 'paragraph' ,
  341. 'channal' ,
  342. 'file_name' ,
  343. 'title' ,
  344. 'tag' ,
  345. 'status' ,
  346. 'file_size' ,
  347. 'share' ,
  348. 'doc_info' ,
  349. 'doc_block' ,
  350. 'create_time',
  351. 'modify_time',
  352. 'accese_time',
  353. 'created_at' ,
  354. 'accesed_at' ,
  355. 'updated_at' ,
  356. 'deleted_at'
  357. ]
  358. ],
  359. 'fts_texts' =>[
  360. 'key'=>'id',
  361. 'time1'=>'',
  362. 'time2'=>'updated_at',
  363. 'user'=>false,
  364. 'fields'=>[
  365. 'id',
  366. 'book' ,
  367. 'paragraph' ,
  368. 'wid' ,
  369. 'bold_single' ,
  370. 'bold_double' ,
  371. 'bold_multiple' ,
  372. 'content' ,
  373. 'created_at' ,
  374. 'updated_at' ,
  375. 'pcd_book_id' ,
  376. ]
  377. ],
  378. 'group_infos' =>[
  379. 'key'=>'uid',
  380. 'time1'=>'modify_time',
  381. 'time2'=>'updated_at',
  382. 'user'=>true,
  383. 'fields'=>[
  384. 'id',
  385. 'uid' ,
  386. 'name' ,
  387. 'description' ,
  388. 'status' ,
  389. 'owner' ,
  390. 'create_time',
  391. 'modify_time',
  392. 'created_at' ,
  393. 'updated_at'
  394. ]
  395. ],
  396. 'group_members' =>[
  397. 'key'=>['user_id','group_id'],
  398. 'time1'=>'',
  399. 'time2'=>'updated_at',
  400. 'user'=>true,
  401. 'fields'=>[
  402. 'id',
  403. 'user_id' ,
  404. 'group_id' ,
  405. 'group_name' ,
  406. 'power' ,
  407. 'level' ,
  408. 'status' ,
  409. 'created_at' ,
  410. 'updated_at'
  411. ]
  412. ],
  413. 'invites' =>[
  414. 'key'=>'id',
  415. 'time1'=>'',
  416. 'time2'=>'updated_at',
  417. 'user'=>true,
  418. 'fields'=>[
  419. 'id' ,
  420. 'user_uid' ,
  421. 'email' ,
  422. 'status' ,
  423. 'created_at' ,
  424. 'updated_at'
  425. ]
  426. ],
  427. 'likes' =>[
  428. 'key'=>'id',
  429. 'time1'=>'',
  430. 'time2'=>'updated_at',
  431. 'user'=>true,
  432. 'fields'=>[
  433. 'id' ,
  434. 'type' ,
  435. 'target_id' ,
  436. 'target_type' ,
  437. 'context' ,
  438. 'user_id' ,
  439. 'created_at' ,
  440. 'updated_at'
  441. ]
  442. ],
  443. 'nissaya_endings' =>[
  444. 'key'=>'id',
  445. 'time1'=>'',
  446. 'time2'=>'updated_at',
  447. 'user'=>true,
  448. 'fields'=>[
  449. 'id' ,
  450. 'ending' ,
  451. 'lang' ,
  452. 'relation' ,
  453. "case" ,
  454. 'strlen' ,
  455. 'count' ,
  456. 'editor_id' ,
  457. 'created_at' ,
  458. 'updated_at' ,
  459. "from"
  460. ]
  461. ],
  462. 'page_numbers' =>[
  463. 'key'=>'id',
  464. 'time1'=>'',
  465. 'time2'=>'updated_at',
  466. 'user'=>false,
  467. 'fields'=>[
  468. 'id',
  469. 'type' ,
  470. 'volume' ,
  471. 'page' ,
  472. 'book' ,
  473. 'paragraph' ,
  474. 'wid' ,
  475. 'pcd_book_id' ,
  476. 'created_at' ,
  477. 'updated_at'
  478. ]
  479. ],
  480. 'pali_sent_indices' =>[
  481. 'key'=>'id',
  482. 'time1'=>'',
  483. 'time2'=>'updated_at',
  484. 'user'=>false,
  485. 'fields'=>[
  486. 'id',
  487. 'book' ,
  488. 'para' ,
  489. 'strlen' ,
  490. 'created_at' ,
  491. 'updated_at'
  492. ]
  493. ],
  494. 'pali_sent_orgs' =>[
  495. 'key'=>'id',
  496. 'time1'=>'',
  497. 'time2'=>'updated_at',
  498. 'user'=>false,
  499. 'fields'=>[
  500. 'id' ,
  501. 'book' ,
  502. 'paragraph' ,
  503. 'word_begin' ,
  504. 'word_end' ,
  505. 'length' ,
  506. 'count' ,
  507. 'text' ,
  508. 'html' ,
  509. 'merge' ,
  510. 'sim_sents' ,
  511. 'sim_sents_count' ,
  512. 'created_at' ,
  513. 'updated_at'
  514. ]
  515. ],
  516. 'pali_sentences' =>[
  517. 'key'=>'id',
  518. 'time1'=>'',
  519. 'time2'=>'updated_at',
  520. 'user'=>false,
  521. 'fields'=>[
  522. 'id' ,
  523. 'book' ,
  524. 'paragraph' ,
  525. 'word_begin' ,
  526. 'word_end' ,
  527. 'length' ,
  528. 'count' ,
  529. 'text' ,
  530. 'html' ,
  531. 'sim_sents' ,
  532. 'sim_sents_count' ,
  533. 'created_at' ,
  534. 'updated_at'
  535. ]
  536. ],
  537. 'pali_texts' =>[
  538. 'key'=>'uid',
  539. 'time1'=>'',
  540. 'time2'=>'updated_at',
  541. 'user'=>false,
  542. 'fields'=>[
  543. 'id',
  544. 'book' ,
  545. 'paragraph' ,
  546. 'level' ,
  547. 'class' ,
  548. 'toc' ,
  549. 'text' ,
  550. 'html' ,
  551. 'lenght' ,
  552. 'album_index' ,
  553. 'chapter_len' ,
  554. 'next_chapter' ,
  555. 'prev_chapter' ,
  556. 'parent' ,
  557. 'chapter_strlen' ,
  558. 'created_at' ,
  559. 'updated_at' ,
  560. 'path' ,
  561. 'uid' ,
  562. 'title_en' ,
  563. 'title' ,
  564. 'pcd_book_id'
  565. ]
  566. ],
  567. 'progress' =>[
  568. 'key'=>'id',
  569. 'time1'=>'',
  570. 'time2'=>'updated_at',
  571. 'user'=>false,
  572. 'fields'=>[
  573. 'id',
  574. 'book' ,
  575. 'para' ,
  576. 'lang' ,
  577. 'all_strlen' ,
  578. 'public_strlen' ,
  579. 'created_at' ,
  580. 'updated_at' ,
  581. 'channel_id'
  582. ]
  583. ],
  584. 'progress_chapters' =>[
  585. 'key'=>'id',
  586. 'time1'=>'',
  587. 'time2'=>'updated_at',
  588. 'user'=>false,
  589. 'fields'=>[
  590. 'id',
  591. 'book' ,
  592. 'para' ,
  593. 'lang' ,
  594. 'all_trans' ,
  595. 'public' ,
  596. 'created_at' ,
  597. 'updated_at' ,
  598. 'channel_id' ,
  599. 'progress' ,
  600. 'title' ,
  601. 'uid' ,
  602. 'summary'
  603. ]
  604. ],
  605. 'recents' =>[
  606. 'key'=>'id',
  607. 'time1'=>'',
  608. 'time2'=>'updated_at',
  609. 'user'=>true,
  610. 'fields'=>[
  611. 'id' ,
  612. 'type' ,
  613. 'article_id' ,
  614. 'param' ,
  615. 'user_uid' ,
  616. 'created_at' ,
  617. 'updated_at'
  618. ]
  619. ],
  620. 'related_paragraphs' =>[
  621. 'key'=>'id',
  622. 'time1'=>'',
  623. 'time2'=>'updated_at',
  624. 'user'=>false,
  625. 'fields'=>[
  626. 'id',
  627. 'book' ,
  628. 'para' ,
  629. 'book_id' ,
  630. 'cs_para' ,
  631. 'book_name' ,
  632. 'created_at' ,
  633. 'updated_at'
  634. ]
  635. ],
  636. 'relations'=>[
  637. 'key'=>'id',
  638. 'time1'=>'',
  639. 'time2'=>'updated_at',
  640. 'user'=>true,
  641. 'fields'=>[
  642. 'id' ,
  643. 'name' ,
  644. "case" ,
  645. "to" ,
  646. 'editor_id' ,
  647. 'created_at' ,
  648. 'updated_at' ,
  649. "from" ,
  650. 'category' ,
  651. 'match'
  652. ]
  653. ],
  654. 'res_indices' =>[
  655. 'key'=>'id',
  656. 'time1'=>'update_time',
  657. 'time2'=>'updated_at',
  658. 'user'=>false,
  659. 'fields'=>[
  660. 'id',
  661. 'book' ,
  662. 'paragraph' ,
  663. 'title' ,
  664. 'title_en' ,
  665. 'level' ,
  666. 'type' ,
  667. 'language' ,
  668. 'author' ,
  669. 'editor' ,
  670. 'share' ,
  671. 'edition' ,
  672. 'hit' ,
  673. 'album' ,
  674. 'tag' ,
  675. 'summary' ,
  676. 'create_time',
  677. 'update_time',
  678. 'created_at' ,
  679. 'updated_at'
  680. ]
  681. ],
  682. 'sent_blocks' =>[
  683. 'key'=>'id',
  684. 'time1'=>'modify_time',
  685. 'time2'=>'updated_at',
  686. 'user'=>true,
  687. 'fields'=>[
  688. 'id',
  689. 'uid' ,
  690. 'parent_uid' ,
  691. 'book_id' ,
  692. 'paragraph' ,
  693. 'owner_uid' ,
  694. 'editor_uid' ,
  695. 'lang' ,
  696. 'author' ,
  697. 'status' ,
  698. 'create_time',
  699. 'modify_time',
  700. 'created_at' ,
  701. 'updated_at' ,
  702. 'deleted_at'
  703. ]
  704. ],
  705. 'sent_histories' =>[
  706. 'key'=>'id',
  707. 'time1'=>'create_time',
  708. 'time2'=>'created_at',
  709. 'user'=>true,
  710. 'fields'=>[
  711. 'id',
  712. 'sent_uid' ,
  713. 'user_uid' ,
  714. 'content' ,
  715. 'landmark' ,
  716. 'create_time',
  717. 'created_at'
  718. ]
  719. ],
  720. 'sent_prs' => [
  721. 'key'=>'id',
  722. 'time1'=>'modify_time',
  723. 'time2'=>'updated_at',
  724. 'user'=>true,
  725. 'fields'=>[
  726. 'id',
  727. 'old_id' ,
  728. 'book_id' ,
  729. 'paragraph' ,
  730. 'word_start' ,
  731. 'word_end' ,
  732. 'channel_uid' ,
  733. 'author' ,
  734. 'editor_uid' ,
  735. 'content' ,
  736. 'language' ,
  737. 'status' ,
  738. 'strlen' ,
  739. 'create_time',
  740. 'modify_time',
  741. 'created_at' ,
  742. 'updated_at' ,
  743. 'deleted_at'
  744. ]
  745. ],
  746. 'sent_sim_indices' =>[
  747. 'key'=>'id',
  748. 'time1'=>'',
  749. 'time2'=>'updated_at',
  750. 'user'=>false,
  751. 'fields'=>[
  752. 'id',
  753. 'sent_id' ,
  754. 'count' ,
  755. 'created_at' ,
  756. 'updated_at'
  757. ]
  758. ],
  759. 'sent_sims' =>[
  760. 'key'=>'id',
  761. 'time1'=>'',
  762. 'time2'=>'updated_at',
  763. 'user'=>false,
  764. 'fields'=>[
  765. 'id',
  766. 'sent1' ,
  767. 'sent2' ,
  768. 'sim' ,
  769. 'created_at' ,
  770. 'updated_at'
  771. ]
  772. ],
  773. 'sentences' =>[
  774. 'key'=>'id',
  775. 'time1'=>'modify_time',
  776. 'time2'=>'updated_at',
  777. 'user'=>true,
  778. 'fields'=>[
  779. 'id',
  780. 'uid' ,
  781. 'parent_uid' ,
  782. 'block_uid' ,
  783. 'channel_uid' ,
  784. 'book_id' ,
  785. 'paragraph' ,
  786. 'word_start' ,
  787. 'word_end' ,
  788. 'author' ,
  789. 'editor_uid' ,
  790. 'content' ,
  791. 'content_type' ,
  792. 'language' ,
  793. 'version' ,
  794. 'strlen' ,
  795. 'status' ,
  796. 'create_time',
  797. 'modify_time',
  798. 'created_at' ,
  799. 'updated_at' ,
  800. 'deleted_at' ,
  801. 'pr_edit_at' ,
  802. 'acceptor_uid' ,
  803. 'pr_id'
  804. ]
  805. ],
  806. 'shares' =>[
  807. 'key'=>'id',
  808. 'time1'=>'modify_time',
  809. 'time2'=>'updated_at',
  810. 'user'=>true,
  811. 'fields'=>[
  812. 'id',
  813. 'res_id' ,
  814. 'res_type' ,
  815. 'cooperator_id' ,
  816. 'cooperator_type' ,
  817. 'power' ,
  818. 'create_time',
  819. 'modify_time',
  820. 'accepted_at' ,
  821. 'acceptor' ,
  822. 'created_at' ,
  823. 'updated_at'
  824. ]
  825. ],
  826. 'tag_maps' =>[
  827. 'key'=>'id',
  828. 'time1'=>'',
  829. 'time2'=>'updated_at',
  830. 'user'=>false,
  831. 'fields'=>[
  832. 'id' ,
  833. 'table_name' ,
  834. 'anchor_id' ,
  835. 'tag_id' ,
  836. 'created_at' ,
  837. 'updated_at'
  838. ]
  839. ],
  840. 'tags'=>[
  841. 'key'=>'id',
  842. 'time1'=>'',
  843. 'time2'=>'updated_at',
  844. 'user'=>false,
  845. 'fields'=>[
  846. 'id' ,
  847. 'name' ,
  848. 'description' ,
  849. 'color' ,
  850. 'owner_id' ,
  851. 'created_at' ,
  852. 'updated_at'
  853. ]
  854. ],
  855. 'transfers'=>[
  856. 'key'=>'id',
  857. 'time1'=>'',
  858. 'time2'=>'updated_at',
  859. 'user'=>true,
  860. 'fields'=>[
  861. 'id' ,
  862. 'origin_owner' ,
  863. 'res_type' ,
  864. 'res_id' ,
  865. 'transferor_id' ,
  866. 'new_owner' ,
  867. 'editor_id' ,
  868. 'status' ,
  869. 'created_at' ,
  870. 'updated_at'
  871. ]
  872. ],
  873. 'user_dicts' =>[
  874. 'key'=>'id',
  875. 'time1'=>'create_time',
  876. 'time2'=>'created_at',
  877. 'user'=>true,
  878. 'fields'=>[
  879. 'id',
  880. 'word' ,
  881. 'type' ,
  882. 'grammar' ,
  883. 'parent' ,
  884. 'mean' ,
  885. 'note' ,
  886. 'factors' ,
  887. 'factormean' ,
  888. 'status' ,
  889. 'source' ,
  890. 'language' ,
  891. 'confidence' ,
  892. 'exp' ,
  893. 'creator_id',
  894. 'ref_counter' ,
  895. 'create_time',
  896. 'created_at' ,
  897. 'updated_at' ,
  898. 'deleted_at' ,
  899. 'dict_id' ,
  900. 'flag'
  901. ]
  902. ],
  903. 'user_experiences' =>[
  904. 'key'=>'id',
  905. 'time1'=>'',
  906. 'time2'=>'updated_at',
  907. 'user'=>true,
  908. 'fields'=>[
  909. 'id' ,
  910. 'user_id' ,
  911. 'date' ,
  912. 'user_exp' ,
  913. 'user_level' ,
  914. 'edit_exp' ,
  915. 'wbw_count' ,
  916. 'wbw_edit' ,
  917. 'trans_character' ,
  918. 'created_at' ,
  919. 'updated_at'
  920. ]
  921. ],
  922. 'user_infos' =>[
  923. 'key'=>'id',
  924. 'time1'=>'modify_time',
  925. 'time2'=>'updated_at',
  926. 'user'=>true,
  927. 'fields'=>[
  928. 'id',
  929. 'userid' ,
  930. 'path' ,
  931. 'username' ,
  932. 'password' ,
  933. 'nickname' ,
  934. 'email' ,
  935. 'create_time' ,
  936. 'modify_time' ,
  937. 'receive_time' ,
  938. 'setting' ,
  939. 'reset_password_token' ,
  940. 'reset_password_sent_at' ,
  941. 'confirmation_token' ,
  942. 'confirmed_at' ,
  943. 'confirmation_sent_at' ,
  944. 'unconfirmed_email' ,
  945. 'created_at' ,
  946. 'updated_at'
  947. ]
  948. ],
  949. 'user_operation_dailies' => [
  950. 'key'=>'id',
  951. 'time1'=>'',
  952. 'time2'=>'updated_at',
  953. 'user'=>true,
  954. 'fields'=>[
  955. 'id',
  956. 'user_id',
  957. 'date_int',
  958. 'duration',
  959. 'hit' ,
  960. 'created_at' ,
  961. 'updated_at'
  962. ]
  963. ],
  964. 'user_operation_frames' =>[
  965. 'key'=>'id',
  966. 'time1'=>'',
  967. 'time2'=>'updated_at',
  968. 'user'=>true,
  969. 'fields'=>[
  970. 'id',
  971. 'user_id',
  972. 'duration',
  973. 'hit' ,
  974. 'timezone' ,
  975. 'op_start',
  976. 'op_end',
  977. 'created_at' ,
  978. 'updated_at'
  979. ]
  980. ],
  981. 'user_operation_logs' =>[
  982. 'key'=>'id',
  983. 'time1'=>'create_time',
  984. 'time2'=>'created_at',
  985. 'user'=>true,
  986. 'fields'=>[
  987. 'id',
  988. 'user_id',
  989. 'op_type_id',
  990. 'op_type' ,
  991. 'content' ,
  992. 'timezone' ,
  993. 'create_time',
  994. 'created_at' ,
  995. ]
  996. ],
  997. 'views'=>[
  998. 'key'=>'id',
  999. 'time1'=>'',
  1000. 'time2'=>'updated_at',
  1001. 'user'=>false,
  1002. 'fields'=>[
  1003. 'id' ,
  1004. 'target_id' ,
  1005. 'target_type' ,
  1006. 'user_id' ,
  1007. 'user_ip' ,
  1008. 'created_at' ,
  1009. 'updated_at' ,
  1010. 'title' ,
  1011. 'org_title' ,
  1012. 'count' ,
  1013. 'meta'
  1014. ]
  1015. ],
  1016. 'vocabularies'=>[
  1017. 'key'=>'id',
  1018. 'time1'=>'',
  1019. 'time2'=>'updated_at',
  1020. 'user'=>false,
  1021. 'fields'=>[
  1022. 'id',
  1023. 'word' ,
  1024. 'word_en' ,
  1025. 'count' ,
  1026. 'flag' ,
  1027. 'created_at' ,
  1028. 'updated_at' ,
  1029. 'strlen'
  1030. ]
  1031. ],
  1032. 'wbw_analyses' =>[
  1033. 'key'=>'id',
  1034. 'time1'=>'',
  1035. 'time2'=>'updated_at',
  1036. 'user'=>false,
  1037. 'fields'=>[
  1038. 'id',
  1039. 'wbw_id',
  1040. 'wbw_word' ,
  1041. 'book_id' ,
  1042. 'paragraph' ,
  1043. 'wid' ,
  1044. 'type' ,
  1045. 'data' ,
  1046. 'confidence' ,
  1047. 'lang' ,
  1048. 'd1' ,
  1049. 'd2' ,
  1050. 'd3' ,
  1051. 'editor_id',
  1052. 'created_at' ,
  1053. 'updated_at'
  1054. ]
  1055. ],
  1056. 'wbw_blocks' =>[
  1057. 'key'=>'uid',
  1058. 'time1'=>'modify_time',
  1059. 'time2'=>'updated_at',
  1060. 'user'=>true,
  1061. 'fields'=>[
  1062. 'id',
  1063. 'uid' ,
  1064. 'parent_id' ,
  1065. 'block_uid' ,
  1066. 'block_id' ,
  1067. 'channel_id' ,
  1068. 'channel_uid' ,
  1069. 'parent_channel_uid' ,
  1070. 'creator_uid' ,
  1071. 'editor_id',
  1072. 'book_id' ,
  1073. 'paragraph' ,
  1074. 'style' ,
  1075. 'lang' ,
  1076. 'status' ,
  1077. 'create_time',
  1078. 'modify_time',
  1079. 'created_at' ,
  1080. 'updated_at' ,
  1081. 'deleted_at'
  1082. ]
  1083. ],
  1084. 'wbw_templates' =>[
  1085. 'key'=>'id',
  1086. 'time1'=>'',
  1087. 'time2'=>'updated_at',
  1088. 'user'=>false,
  1089. 'fields'=>[
  1090. 'id',
  1091. 'book' ,
  1092. 'paragraph' ,
  1093. 'wid' ,
  1094. 'word' ,
  1095. "real" ,
  1096. 'type' ,
  1097. 'gramma' ,
  1098. 'part' ,
  1099. 'style' ,
  1100. 'created_at' ,
  1101. 'updated_at' ,
  1102. 'pcd_book_id'
  1103. ]
  1104. ],
  1105. 'wbws' =>[
  1106. 'key'=>'uid',
  1107. 'time1'=>'modify_time',
  1108. 'time2'=>'updated_at',
  1109. 'user'=>true,
  1110. 'fields'=>[
  1111. 'id',
  1112. 'uid' ,
  1113. 'block_uid' ,
  1114. 'block_id' ,
  1115. 'channel_id' ,
  1116. 'book_id' ,
  1117. 'paragraph' ,
  1118. 'wid',
  1119. 'word' ,
  1120. 'data' ,
  1121. 'status' ,
  1122. 'creator_uid' ,
  1123. 'editor_id',
  1124. 'create_time',
  1125. 'modify_time',
  1126. 'created_at' ,
  1127. 'updated_at' ,
  1128. 'deleted_at'
  1129. ]
  1130. ],
  1131. 'web_hooks' =>[
  1132. 'key'=>'id',
  1133. 'time1'=>'',
  1134. 'time2'=>'updated_at',
  1135. 'user'=>true,
  1136. 'fields'=>[
  1137. 'id' ,
  1138. 'res_type' ,
  1139. 'res_id' ,
  1140. 'url' ,
  1141. 'receiver' ,
  1142. 'event' ,
  1143. 'fail' ,
  1144. 'success' ,
  1145. 'status' ,
  1146. 'editor_uid' ,
  1147. 'created_at' ,
  1148. 'updated_at'
  1149. ]
  1150. ],
  1151. 'word_indices'=>[
  1152. 'key'=>'id',
  1153. 'time1'=>'',
  1154. 'time2'=>'updated_at',
  1155. 'user'=>false,
  1156. 'fields'=>[
  1157. 'id' ,
  1158. 'word' ,
  1159. 'word_en' ,
  1160. 'count' ,
  1161. 'normal' ,
  1162. 'bold' ,
  1163. 'is_base' ,
  1164. 'len' ,
  1165. 'final' ,
  1166. 'created_at' ,
  1167. 'updated_at'
  1168. ]
  1169. ],
  1170. 'word_lists' =>[
  1171. 'key'=>'id',
  1172. 'time1'=>'',
  1173. 'time2'=>'updated_at',
  1174. 'user'=>false,
  1175. 'fields'=>[
  1176. 'id',
  1177. 'sn' ,
  1178. 'book' ,
  1179. 'paragraph' ,
  1180. 'wordindex' ,
  1181. 'bold' ,
  1182. 'weight' ,
  1183. 'created_at' ,
  1184. 'updated_at'
  1185. ]
  1186. ],
  1187. 'word_parts' =>[
  1188. 'key'=>'id',
  1189. 'time1'=>'',
  1190. 'time2'=>'updated_at',
  1191. 'user'=>false,
  1192. 'fields'=>[
  1193. 'id',
  1194. 'word' ,
  1195. 'weight',
  1196. 'created_at' ,
  1197. 'updated_at'
  1198. ]
  1199. ],
  1200. 'word_statistics' =>[
  1201. 'key'=>'id',
  1202. 'time1'=>'',
  1203. 'time2'=>'updated_at',
  1204. 'user'=>false,
  1205. 'fields'=>[
  1206. 'id',
  1207. 'bookid' ,
  1208. 'word' ,
  1209. 'count' ,
  1210. 'base' ,
  1211. 'end1' ,
  1212. 'end2' ,
  1213. 'type' ,
  1214. 'length' ,
  1215. 'created_at' ,
  1216. 'updated_at'
  1217. ]
  1218. ],
  1219. ];