Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/test/commonal_cppunit.sqlite

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Tue Mar 15 04:34:48 2005 UTC (19 years ago) by tani
Branch: MAIN
CVS Tags: AL_PORTING, MergePnt_20051116, REL20051226, XOONIPS_RC1, REL20060323, tag20060615, tag20070307current, tag20061115, MergePnt_20051220, tag20061130, merge_to_20060605, tag20070307, REL20060213, RELENG_2_0_0a_RELEASE, RELEASE_1_0_0, RELEASE_1_0_1, tag20060622, merge_to_20060411, HEAD
Branch point for: XOONIPS_STABLE_32, XOONIPS_STABLE, XOONIPS_STABLE_3, XOONIPS_STABLE_2
Changes since 1.2: +5 -5 lines
テストデータにアイテム・インデックスのすう,容量制限を追加.

1 -- phpMyAdmin SQL Dump
2 -- version 2.5.7-pl1
3 -- http://www.phpmyadmin.net
4 --
5 -- ???鴻??: localhost
6 -- 篏?????????: 2004綛 12?? 17? 20:14
7 -- ?泣?若???若?????若?吾?с?? 4.0.21
8 -- PHP ???若?吾?с?? 4.3.8
9 --
10 -- ???若?帥???若?? youi_xoops
11 --
12
13 -- --------------------------------------------------------
14
15 --
16 -- ???若????????? x_avatar
17 --
18
19 DROP TABLE xtest_avatar;
20
21 CREATE TABLE xtest_avatar (
22 avatar_id INTEGER PRIMARY KEY AUTOINCREMENT,
23 avatar_file TEXT(30) NOT NULL default '',
24 avatar_name TEXT(100) NOT NULL default '',
25 avatar_mimetype TEXT(30) NOT NULL default '',
26 avatar_created INTEGER(10) NOT NULL default '0',
27 avatar_display INTEGER(1) NOT NULL default '0',
28 avatar_weight INTEGER(5) NOT NULL default '0',
29 avatar_type TEXT(1) NOT NULL default ''
30 );
31
32 CREATE INDEX avatar_type ON xtest_avatar (avatar_type,avatar_display);
33
34
35 -- --------------------------------------------------------
36
37 --
38 -- ???若????????? x_avatar_user_link
39 --
40
41 DROP TABLE xtest_avatar_user_link;
42
43 CREATE TABLE xtest_avatar_user_link (
44 avatar_id INTEGER(8) NOT NULL default '0',
45 user_id INTEGER(8) NOT NULL default '0'
46 );
47
48 CREATE INDEX avatar_user_id ON xtest_avatar_user_link (avatar_id,user_id);
49
50
51 -- --------------------------------------------------------
52
53 --
54 -- ???若????????? x_banner
55 --
56
57 DROP TABLE xtest_banner;
58
59 CREATE TABLE xtest_banner (
60 bid INTEGER PRIMARY KEY AUTOINCREMENT,
61 cid INTEGER(3) NOT NULL default '0',
62 imptotal INTEGER(8) NOT NULL default '0',
63 impmade INTEGER(8) NOT NULL default '0',
64 clicks INTEGER(8) NOT NULL default '0',
65 imageurl TEXT(255) NOT NULL default '',
66 clickurl TEXT(255) NOT NULL default '',
67 date INTEGER(10) NOT NULL default '0',
68 htmlbanner INTEGER(1) NOT NULL default '0',
69 htmlcode TEXT NOT NULL
70 );
71
72 CREATE INDEX idxbannercid ON xtest_banner (cid);
73
74 CREATE INDEX idxbannerbidcid ON xtest_banner (bid,cid);
75
76
77 -- --------------------------------------------------------
78
79 --
80 -- ???若????????? x_bannerclient
81 --
82
83 DROP TABLE xtest_bannerclient;
84
85 CREATE TABLE xtest_bannerclient (
86 cid INTEGER PRIMARY KEY AUTOINCREMENT,
87 name TEXT(60) NOT NULL default '',
88 contact TEXT(60) NOT NULL default '',
89 email TEXT(60) NOT NULL default '',
90 login TEXT(10) NOT NULL default '',
91 passwd TEXT(10) NOT NULL default '',
92 extrainfo TEXT NOT NULL
93 );
94
95 CREATE INDEX login ON xtest_bannerclient (login);
96
97
98 -- --------------------------------------------------------
99
100 --
101 -- ???若????????? x_bannerfinish
102 --
103
104 DROP TABLE xtest_bannerfinish;
105
106 CREATE TABLE xtest_bannerfinish (
107 bid INTEGER PRIMARY KEY AUTOINCREMENT,
108 cid INTEGER(5) NOT NULL default '0',
109 impressions INTEGER(8) NOT NULL default '0',
110 clicks INTEGER(8) NOT NULL default '0',
111 datestart INTEGER(10) NOT NULL default '0',
112 dateend INTEGER(10) NOT NULL default '0'
113 );
114
115 CREATE INDEX cid ON xtest_bannerfinish (cid);
116
117
118 -- --------------------------------------------------------
119
120 --
121 -- ???若????????? x_block_module_link
122 --
123
124 DROP TABLE xtest_block_module_link;
125
126 CREATE TABLE xtest_block_module_link (
127 block_id INTEGER(8) NOT NULL default '0',
128 module_id INTEGER(5) NOT NULL default '0'
129 );
130
131 CREATE INDEX module_id ON xtest_block_module_link (module_id);
132
133 CREATE INDEX block_id ON xtest_block_module_link (block_id);
134
135
136 -- --------------------------------------------------------
137
138 --
139 -- ???若????????? x_config
140 --
141
142 DROP TABLE xtest_config;
143
144 CREATE TABLE xtest_config (
145 conf_id INTEGER PRIMARY KEY AUTOINCREMENT,
146 conf_modid INTEGER(5) NOT NULL default '0',
147 conf_catid INTEGER(5) NOT NULL default '0',
148 conf_name TEXT(25) NOT NULL default '',
149 conf_title TEXT(30) NOT NULL default '',
150 conf_value TEXT NOT NULL,
151 conf_desc TEXT(30) NOT NULL default '',
152 conf_formtype TEXT(15) NOT NULL default '',
153 conf_valuetype TEXT(10) NOT NULL default '',
154 conf_order INTEGER(5) NOT NULL default '0'
155 );
156
157 CREATE INDEX conf_mod_cat_id ON xtest_config (conf_modid,conf_catid);
158
159
160 -- --------------------------------------------------------
161
162 --
163 -- ???若????????? x_configcategory
164 --
165
166 DROP TABLE xtest_configcategory;
167
168 CREATE TABLE xtest_configcategory (
169 confcat_id INTEGER PRIMARY KEY AUTOINCREMENT,
170 confcat_name TEXT(25) NOT NULL default '',
171 confcat_order INTEGER(5) NOT NULL default '0'
172 );
173
174
175 -- --------------------------------------------------------
176
177 --
178 -- ???若????????? x_configoption
179 --
180
181 DROP TABLE xtest_configoption;
182
183 CREATE TABLE xtest_configoption (
184 confop_id INTEGER PRIMARY KEY AUTOINCREMENT,
185 confop_name TEXT(255) NOT NULL default '',
186 confop_value TEXT(255) NOT NULL default '',
187 conf_id INTEGER(5) NOT NULL default '0'
188 );
189
190 CREATE INDEX conf_id ON xtest_configoption (conf_id);
191
192
193 -- --------------------------------------------------------
194
195 --
196 -- ???若????????? x_group_permission
197 --
198
199 DROP TABLE xtest_group_permission;
200
201 CREATE TABLE xtest_group_permission (
202 gperm_id INTEGER PRIMARY KEY AUTOINCREMENT,
203 gperm_groupid INTEGER(5) NOT NULL default '0',
204 gperm_itemid INTEGER(8) NOT NULL default '0',
205 gperm_modid INTEGER(5) NOT NULL default '0',
206 gperm_name TEXT(50) NOT NULL default ''
207 );
208
209 CREATE INDEX groupid ON xtest_group_permission (gperm_groupid);
210
211 CREATE INDEX itemid ON xtest_group_permission (gperm_itemid);
212
213 CREATE INDEX gperm_modid ON xtest_group_permission (gperm_modid,gperm_name);
214
215
216 -- --------------------------------------------------------
217
218 --
219 -- ???若????????? x_groups
220 --
221
222 DROP TABLE xtest_groups;
223
224 CREATE TABLE xtest_groups (
225 groupid INTEGER PRIMARY KEY AUTOINCREMENT,
226 name TEXT(50) NOT NULL default '',
227 description TEXT NOT NULL,
228 group_type TEXT(10) NOT NULL default ''
229 );
230
231 CREATE INDEX group_type ON xtest_groups (group_type);
232
233
234 -- --------------------------------------------------------
235
236 --
237 -- ???若????????? x_groups_users_link
238 --
239
240 DROP TABLE xtest_groups_users_link;
241
242 CREATE TABLE xtest_groups_users_link (
243 linkid INTEGER PRIMARY KEY AUTOINCREMENT,
244 groupid INTEGER(5) NOT NULL default '0',
245 uid INTEGER(8) NOT NULL default '0'
246 );
247
248 CREATE INDEX groupid_uid ON xtest_groups_users_link (groupid,uid);
249
250
251 -- --------------------------------------------------------
252
253 --
254 -- ???若????????? x_image
255 --
256
257 DROP TABLE xtest_image;
258
259 CREATE TABLE xtest_image (
260 image_id INTEGER PRIMARY KEY AUTOINCREMENT,
261 image_name TEXT(30) NOT NULL default '',
262 image_nicename TEXT(255) NOT NULL default '',
263 image_mimetype TEXT(30) NOT NULL default '',
264 image_created INTEGER(10) NOT NULL default '0',
265 image_display INTEGER(1) NOT NULL default '0',
266 image_weight INTEGER(5) NOT NULL default '0',
267 imgcat_id INTEGER(5) NOT NULL default '0'
268 );
269
270 CREATE INDEX imgcat_id ON xtest_image (imgcat_id);
271
272 CREATE INDEX image_display ON xtest_image (image_display);
273
274
275 -- --------------------------------------------------------
276
277 --
278 -- ???若????????? x_imagebody
279 --
280
281 DROP TABLE xtest_imagebody;
282
283 CREATE TABLE xtest_imagebody (
284 image_id INTEGER(8) NOT NULL default '0',
285 image_body mediumblob
286 );
287
288 CREATE INDEX image_id ON xtest_imagebody (image_id);
289
290
291 -- --------------------------------------------------------
292
293 --
294 -- ???若????????? x_imagecategory
295 --
296
297 DROP TABLE xtest_imagecategory;
298
299 CREATE TABLE xtest_imagecategory (
300 imgcat_id INTEGER PRIMARY KEY AUTOINCREMENT,
301
302 imgcat_name TEXT(100) NOT NULL default '',
303 imgcat_maxsize INTEGER(8) NOT NULL default '0',
304 imgcat_maxwidth INTEGER(3) NOT NULL default '0',
305 imgcat_maxheight INTEGER(3) NOT NULL default '0',
306 imgcat_display INTEGER(1) NOT NULL default '0',
307 imgcat_weight INTEGER(3) NOT NULL default '0',
308 imgcat_type TEXT(1) NOT NULL default '',
309 imgcat_storetype TEXT(5) NOT NULL default ''
310 );
311
312 CREATE INDEX imgcat_display ON xtest_imagecategory (imgcat_display);
313
314
315 -- --------------------------------------------------------
316
317 --
318 -- ???若????????? x_imgset
319 --
320
321 DROP TABLE xtest_imgset;
322
323 CREATE TABLE xtest_imgset (
324 imgset_id INTEGER PRIMARY KEY AUTOINCREMENT,
325 imgset_name TEXT(50) NOT NULL default '',
326 imgset_refid INTEGER(8) NOT NULL default '0'
327 );
328
329 CREATE INDEX imgset_refid ON xtest_imgset (imgset_refid);
330
331
332 -- --------------------------------------------------------
333
334 --
335 -- ???若????????? x_imgset_tplset_link
336 --
337
338 DROP TABLE xtest_imgset_tplset_link;
339
340 CREATE TABLE xtest_imgset_tplset_link (
341 imgset_id INTEGER(5) NOT NULL default '0',
342 tplset_name TEXT(50) NOT NULL default ''
343 );
344
345 CREATE INDEX tplset_name ON xtest_imgset_tplset_link (tplset_name);
346
347
348 -- --------------------------------------------------------
349
350 --
351 -- ???若????????? x_imgsetimg
352 --
353
354 DROP TABLE xtest_imgsetimg;
355
356 CREATE TABLE xtest_imgsetimg (
357 imgsetimg_id INTEGER PRIMARY KEY AUTOINCREMENT,
358 imgsetimg_file TEXT(50) NOT NULL default '',
359 imgsetimg_body blob NOT NULL,
360 imgsetimg_imgset INTEGER(5) NOT NULL default '0'
361 );
362
363 CREATE INDEX imgsetimg_imgset ON xtest_imgsetimg (imgsetimg_imgset);
364
365
366 -- --------------------------------------------------------
367
368 --
369 -- ???若????????? x_modules
370 --
371
372 DROP TABLE xtest_modules;
373
374 CREATE TABLE xtest_modules (
375 mid INTEGER PRIMARY KEY AUTOINCREMENT,
376 name TEXT(150) NOT NULL default '',
377 version INTEGER(5) NOT NULL default '100',
378 last_update INTEGER(10) NOT NULL default '0',
379 weight INTEGER(3) NOT NULL default '0',
380 isactive INTEGER(1) NOT NULL default '0',
381 dirname TEXT(25) NOT NULL default '',
382 hasmain INTEGER(1) NOT NULL default '0',
383 hasadmin INTEGER(1) NOT NULL default '0',
384 hassearch INTEGER(1) NOT NULL default '0',
385 hasconfig INTEGER(1) NOT NULL default '0',
386 hascomments INTEGER(1) NOT NULL default '0',
387 hasnotification INTEGER(1) NOT NULL default '0'
388 );
389
390 CREATE INDEX hasmain ON xtest_modules (hasmain);
391
392 CREATE INDEX hasadmin ON xtest_modules (hasadmin);
393
394 CREATE INDEX hassearch ON xtest_modules (hassearch);
395
396 CREATE INDEX hasnotification ON xtest_modules (hasnotification);
397
398 CREATE INDEX dirname ON xtest_modules (dirname);
399
400 CREATE INDEX name ON xtest_modules (name);
401
402
403 -- --------------------------------------------------------
404
405 --
406 -- ???若????????? x_newblocks
407 --
408
409 DROP TABLE xtest_newblocks;
410
411 CREATE TABLE xtest_newblocks (
412 bid INTEGER PRIMARY KEY AUTOINCREMENT,
413 mid INTEGER(5) NOT NULL default '0',
414 func_num INTEGER(3) NOT NULL default '0',
415 options TEXT(255) NOT NULL default '',
416 name TEXT(150) NOT NULL default '',
417 title TEXT(255) NOT NULL default '',
418 content TEXT NOT NULL,
419 side INTEGER(1) NOT NULL default '0',
420 weight INTEGER(5) NOT NULL default '0',
421 visible INTEGER(1) NOT NULL default '0',
422 block_type TEXT(1) NOT NULL default '',
423 c_type TEXT(1) NOT NULL default '',
424 isactive INTEGER(1) NOT NULL default '0',
425 dirname TEXT(50) NOT NULL default '',
426 func_file TEXT(50) NOT NULL default '',
427 show_func TEXT(50) NOT NULL default '',
428 edit_func TEXT(50) NOT NULL default '',
429 template TEXT(50) NOT NULL default '',
430 bcachetime INTEGER(10) NOT NULL default '0',
431 last_modified INTEGER(10) NOT NULL default '0'
432 );
433
434 CREATE INDEX mid ON xtest_newblocks (mid);
435
436 CREATE INDEX visible ON xtest_newblocks (visible);
437
438 CREATE INDEX isactive_visible_mid ON xtest_newblocks (isactive,visible,mid);
439
440 CREATE INDEX mid_funcnum ON xtest_newblocks (mid,func_num);
441
442
443 -- --------------------------------------------------------
444
445 --
446 -- ???若????????? x_online
447 --
448
449 DROP TABLE xtest_online;
450
451 CREATE TABLE xtest_online (
452 online_uid INTEGER(8) NOT NULL default '0',
453 online_uname TEXT(25) NOT NULL default '',
454 online_updated INTEGER(10) NOT NULL default '0',
455 online_module INTEGER(5) NOT NULL default '0',
456 online_ip TEXT(15) NOT NULL default ''
457 );
458
459 CREATE INDEX online_module ON xtest_online (online_module);
460
461
462 -- --------------------------------------------------------
463
464 --
465 -- ???若????????? x_priv_msgs
466 --
467
468 DROP TABLE xtest_priv_msgs;
469
470 CREATE TABLE xtest_priv_msgs (
471 msg_id INTEGER PRIMARY KEY AUTOINCREMENT,
472 msg_image TEXT(100) default NULL,
473 subject TEXT(255) NOT NULL default '',
474 from_userid INTEGER(8) NOT NULL default '0',
475 to_userid INTEGER(8) NOT NULL default '0',
476 msg_time INTEGER(10) NOT NULL default '0',
477 msg_TEXT text NOT NULL,
478 read_msg INTEGER(1) NOT NULL default '0'
479 );
480
481 CREATE INDEX to_userid ON xtest_priv_msgs (to_userid);
482
483 CREATE INDEX touseridreadmsg ON xtest_priv_msgs (to_userid,read_msg);
484
485 CREATE INDEX msgidfromuserid ON xtest_priv_msgs (msg_id,from_userid);
486
487
488 -- --------------------------------------------------------
489
490 --
491 -- ???若????????? x_ranks
492 --
493
494 DROP TABLE xtest_ranks;
495
496 CREATE TABLE xtest_ranks (
497 rank_id INTEGER PRIMARY KEY AUTOINCREMENT,
498 rank_title TEXT(50) NOT NULL default '',
499 rank_min INTEGER(8) NOT NULL default '0',
500 rank_max INTEGER(8) NOT NULL default '0',
501 rank_special INTEGER(1) NOT NULL default '0',
502 rank_image TEXT(255) default NULL
503 );
504
505 CREATE INDEX rank_min ON xtest_ranks (rank_min);
506
507 CREATE INDEX rank_max ON xtest_ranks (rank_max);
508
509 CREATE INDEX rankminrankmaxranspecial ON xtest_ranks (rank_min,rank_max,rank_special);
510
511 CREATE INDEX rankspecial ON xtest_ranks (rank_special);
512
513
514 -- --------------------------------------------------------
515
516 --
517 -- ???若????????? x_session
518 --
519
520 DROP TABLE xtest_session;
521
522 CREATE TABLE xtest_session (
523 sess_id TEXT(32) NOT NULL default '' PRIMARY KEY,
524 sess_updated INTEGER(10) NOT NULL default '0',
525 sess_ip TEXT(15) NOT NULL default '',
526 sess_data TEXT NOT NULL
527 );
528
529 CREATE INDEX updated ON xtest_session (sess_updated);
530
531
532 -- --------------------------------------------------------
533
534 --
535 -- ???若????????? x_smiles
536 --
537
538 DROP TABLE xtest_smiles;
539
540 CREATE TABLE xtest_smiles (
541 id INTEGER PRIMARY KEY AUTOINCREMENT,
542 code TEXT(50) NOT NULL default '',
543 smile_url TEXT(100) NOT NULL default '',
544 emotion TEXT(75) NOT NULL default '',
545 display INTEGER(1) NOT NULL default '0'
546 );
547
548
549 -- --------------------------------------------------------
550
551 --
552 -- ???若????????? x_tplfile
553 --
554
555 DROP TABLE xtest_tplfile;
556
557 CREATE TABLE xtest_tplfile (
558 tpl_id INTEGER PRIMARY KEY AUTOINCREMENT,
559 tpl_refid INTEGER(5) NOT NULL default '0',
560 tpl_module TEXT(25) NOT NULL default '',
561 tpl_tplset TEXT(50) NOT NULL default '',
562 tpl_file TEXT(50) NOT NULL default '',
563 tpl_desc TEXT(255) NOT NULL default '',
564 tpl_lastmodified INTEGER(10) NOT NULL default '0',
565 tpl_lastimported INTEGER(10) NOT NULL default '0',
566 tpl_type TEXT(20) NOT NULL default ''
567 );
568
569 CREATE INDEX tpl_refid ON xtest_tplfile (tpl_refid,tpl_type);
570
571 CREATE INDEX tpl_tplset ON xtest_tplfile (tpl_tplset,tpl_file);
572
573
574 -- --------------------------------------------------------
575
576 --
577 -- ???若????????? x_tplset
578 --
579
580 DROP TABLE xtest_tplset;
581
582 CREATE TABLE xtest_tplset (
583 tplset_id INTEGER PRIMARY KEY AUTOINCREMENT,
584 tplset_name TEXT(50) NOT NULL default '',
585 tplset_desc TEXT(255) NOT NULL default '',
586 tplset_credits TEXT NOT NULL,
587 tplset_created INTEGER(10) NOT NULL default '0'
588 );
589
590
591 -- --------------------------------------------------------
592
593 --
594 -- ???若????????? x_tplsource
595 --
596
597 DROP TABLE xtest_tplsource;
598
599 CREATE TABLE xtest_tplsource (
600 tpl_id INTEGER(7) NOT NULL default '0',
601 tpl_source TEXT NOT NULL
602 );
603
604 CREATE INDEX tpl_id ON xtest_tplsource (tpl_id);
605
606
607 -- --------------------------------------------------------
608
609 --
610 -- ???若????????? x_users
611 --
612
613 DROP TABLE xtest_users;
614
615 CREATE TABLE xtest_users (
616 uid INTEGER PRIMARY KEY AUTOINCREMENT,
617 name TEXT(60) NOT NULL default '',
618 uname TEXT(25) NOT NULL default '',
619 email TEXT(60) NOT NULL default '',
620 url TEXT(100) NOT NULL default '',
621 user_avatar TEXT(30) NOT NULL default 'blank.gif',
622 user_regdate INTEGER(10) NOT NULL default '0',
623 user_icq TEXT(15) NOT NULL default '',
624 user_from TEXT(100) NOT NULL default '',
625 user_sig TEXT NOT NULL,
626 user_viewemail INTEGER(1) NOT NULL default '0',
627 actkey TEXT(8) NOT NULL default '',
628 user_aim TEXT(18) NOT NULL default '',
629 user_yim TEXT(25) NOT NULL default '',
630 user_msnm TEXT(100) NOT NULL default '',
631 pass TEXT(32) NOT NULL default '',
632 posts INTEGER(8) NOT NULL default '0',
633 attachsig INTEGER(1) NOT NULL default '0',
634 rank INTEGER(5) NOT NULL default '0',
635 level INTEGER(3) NOT NULL default '1',
636 theme TEXT(100) NOT NULL default '',
637 timezone_offset float(3,1) NOT NULL default '0.0',
638 last_login INTEGER(10) NOT NULL default '0',
639 umode TEXT(10) NOT NULL default '',
640 uorder INTEGER(1) NOT NULL default '0',
641 notify_method INTEGER(1) NOT NULL default '1',
642 notify_mode INTEGER(1) NOT NULL default '0',
643 user_occ TEXT(100) NOT NULL default '',
644 bio TEXT NOT NULL,
645 user_intrest TEXT(150) NOT NULL default '',
646 user_mailok INTEGER(1) NOT NULL default '1'
647 );
648
649 CREATE INDEX uname ON xtest_users (uname);
650
651 CREATE INDEX email ON xtest_users (email);
652
653 CREATE INDEX uiduname ON xtest_users (uid,uname);
654
655 CREATE INDEX unamepass ON xtest_users (uname,pass);
656
657
658 -- --------------------------------------------------------
659
660 --
661 -- ???若????????? x_xnpaccount_config
662 --
663
664 DROP TABLE xtest_xnpaccount_config;
665
666 CREATE TABLE xtest_xnpaccount_config (
667 id INTEGER PRIMARY KEY AUTOINCREMENT,
668 name TEXT(255) NOT NULL default '',
669 value blob NOT NULL
670 );
671
672 CREATE INDEX name_index ON xtest_xnpaccount_config (name);
673
674
675 -- --------------------------------------------------------
676
677 --
678 -- ???若????????? x_xnpaccount_groups
679 --
680
681 DROP TABLE xtest_xnpaccount_groups;
682
683 CREATE TABLE xtest_xnpaccount_groups (
684 gid INTEGER PRIMARY KEY AUTOINCREMENT,
685 gname TEXT(255) NOT NULL default '',
686 gdesc TEXT(255) NOT NULL default '',
687 group_index_id INTEGER(10) NOT NULL default '0',
688 group_item_number_limit INTEGER(10) ,
689 group_index_number_limit INTEGER(10) ,
690 group_item_storage_limit DOUBLE
691 );
692
693
694 -- --------------------------------------------------------
695
696 --
697 -- ???若????????? x_xnpaccount_groups_users_link
698 --
699
700 DROP TABLE xtest_xnpaccount_groups_users_link;
701
702 CREATE TABLE xtest_xnpaccount_groups_users_link (
703 gid INTEGER(10) NOT NULL default '0',
704 uid INTEGER(10) NOT NULL default '0',
705 is_admin INTEGER(1) NOT NULL default '0',
706 UNIQUE(gid,uid)
707 );
708
709 CREATE INDEX giduid ON xtest_xnpaccount_groups_users_link (gid,uid);
710
711 -- --------------------------------------------------------
712
713 --
714 -- ???若????????? x_xnpaccount_session
715 --
716
717 DROP TABLE xtest_xnpaccount_session;
718
719 CREATE TABLE xtest_xnpaccount_session (
720 sid INTEGER PRIMARY KEY AUTOINCREMENT,
721 uid INTEGER(10) NOT NULL default '0',
722 timestamp timestamp(14) NOT NULL,
723 remote_host INTEGER(10) NOT NULL default '0'
724 );
725
726
727 -- --------------------------------------------------------
728
729 --
730 -- ???若????????? x_xnpaccount_users
731 --
732
733 DROP TABLE xtest_xnpaccount_users;
734
735 CREATE TABLE xtest_xnpaccount_users (
736 uid INTEGER(10) NOT NULL default '0' PRIMARY KEY,
737 activate INTEGER(1) NOT NULL default '0',
738 address TEXT(255) default NULL,
739 division TEXT(255) default NULL,
740 tel TEXT(32) NOT NULL default '',
741 company_name TEXT(255) default NULL,
742 country TEXT(255) NOT NULL default '',
743 zipcode TEXT(32) NOT NULL default '',
744 fax TEXT(32) NOT NULL default '',
745 base_url TEXT(255) default NULL,
746 notice_mail INTEGER(10) default NULL,
747 notice_mail_since datetime default NULL,
748 private_index_id INTEGER(10) NOT NULL default '0',
749 private_item_number_limit INTEGER(10),
750 private_index_number_limit INTEGER(10),
751 private_item_storage_limit DOUBLE
752 );
753
754 CREATE INDEX activate ON xtest_xnpaccount_users (activate);
755
756
757 -- --------------------------------------------------------
758
759 DROP TABLE xtest_xnpaccount_item_basic;
760
761 CREATE TABLE xtest_xnpaccount_item_basic (
762 item_id INTEGER PRIMARY KEY AUTOINCREMENT,
763 item_type_id INTEGER(10) NOT NULL default '0',
764 uid INTEGER(10) NOT NULL default '0',
765 title TEXT(255) default NULL,
766 keywords TEXT,
767 description TEXT,
768 doi TEXT,
769 last_update_date INTEGER(10) NOT NULL,
770 creation_date INTEGER(10) NOT NULL,
771 publication_year INTEGER(4) default 0,
772 publication_month INTEGER(2) default NULL,
773 publication_mday INTEGER(2) default NULL
774 );
775
776 CREATE INDEX title_index ON xtest_xnpaccount_item_basic (title);
777
778
779 -- --------------------------------------------------------
780
781 DROP TABLE xtest_xnpaccount_index;
782
783 CREATE TABLE xtest_xnpaccount_index (
784 index_id INTEGER PRIMARY KEY AUTOINCREMENT,
785 parent_index_id INTEGER(10) default NULL,
786 uid INTEGER(10) default NULL,
787 gid INTEGER(10) default NULL,
788 open_level INTEGER(3) NOT NULL default '0',
789 sort_number INTEGER(10) NOT NULL default '0'
790 );
791
792 CREATE INDEX parent_index_id ON xtest_xnpaccount_index (parent_index_id);
793
794
795 -- --------------------------------------------------------
796
797 DROP TABLE xtest_xnpaccount_index_item_link;
798
799 CREATE TABLE xtest_xnpaccount_index_item_link (
800 index_item_link_id INTEGER PRIMARY KEY AUTOINCREMENT,
801 index_id INTEGER(10) NOT NULL default '0',
802 item_id INTEGER(10) NOT NULL default '0',
803 certify_state INTEGER(3) NOT NULL default '0',
804 UNIQUE (index_id,item_id)
805 );
806
807 CREATE INDEX index_id ON xtest_xnpaccount_index_item_link (index_id);
808
809 CREATE INDEX item_id ON xtest_xnpaccount_index_item_link (item_id);
810
811
812 -- --------------------------------------------------------
813
814 DROP TABLE xtest_xnpaccount_item_type;
815
816 CREATE TABLE xtest_xnpaccount_item_type (
817 item_type_id INTEGER PRIMARY KEY AUTOINCREMENT,
818 name TEXT(30) default NULL,
819 mid INTEGER(10),
820 display_name TEXT(30)
821 );
822
823
824 -- --------------------------------------------------------
825
826 --
827 -- ???若????????? x_xoopscomments
828 --
829
830 DROP TABLE xtest_xoopscomments;
831
832 CREATE TABLE xtest_xoopscomments (
833 com_id INTEGER PRIMARY KEY AUTOINCREMENT,
834 com_pid INTEGER(8) NOT NULL default '0',
835 com_rootid INTEGER(8) NOT NULL default '0',
836 com_modid INTEGER(5) NOT NULL default '0',
837 com_itemid INTEGER(8) NOT NULL default '0',
838 com_icon TEXT(25) NOT NULL default '',
839 com_created INTEGER(10) NOT NULL default '0',
840 com_modified INTEGER(10) NOT NULL default '0',
841 com_uid INTEGER(8) NOT NULL default '0',
842 com_ip TEXT(15) NOT NULL default '',
843 com_title TEXT(255) NOT NULL default '',
844 com_TEXT text NOT NULL,
845 com_sig INTEGER(1) NOT NULL default '0',
846 com_status INTEGER(1) NOT NULL default '0',
847 com_exparams TEXT(255) NOT NULL default '',
848 dohtml INTEGER(1) NOT NULL default '0',
849 dosmiley INTEGER(1) NOT NULL default '0',
850 doxcode INTEGER(1) NOT NULL default '0',
851 doimage INTEGER(1) NOT NULL default '0',
852 dobr INTEGER(1) NOT NULL default '0'
853 );
854
855 CREATE INDEX com_pid ON xtest_xoopscomments (com_pid);
856
857 CREATE INDEX com_itemid ON xtest_xoopscomments (com_itemid);
858
859 CREATE INDEX com_uid ON xtest_xoopscomments (com_uid);
860
861 CREATE INDEX com_title ON xtest_xoopscomments (com_title);
862
863
864 -- --------------------------------------------------------
865
866 --
867 -- ???若????????? x_xoopsnotifications
868 --
869
870 DROP TABLE xtest_xoopsnotifications;
871
872 CREATE TABLE xtest_xoopsnotifications (
873 not_id INTEGER PRIMARY KEY AUTOINCREMENT,
874 not_modid INTEGER(5) NOT NULL default '0',
875 not_itemid INTEGER(8) NOT NULL default '0',
876 not_category TEXT(30) NOT NULL default '',
877 not_event TEXT(30) NOT NULL default '',
878 not_uid INTEGER(8) NOT NULL default '0',
879 not_mode INTEGER(1) NOT NULL default '0'
880 );
881
882 CREATE INDEX not_modid ON xtest_xoopsnotifications (not_modid);
883
884 CREATE INDEX not_itemid ON xtest_xoopsnotifications (not_itemid);
885
886 CREATE INDEX not_class ON xtest_xoopsnotifications (not_category);
887
888 CREATE INDEX not_uid ON xtest_xoopsnotifications (not_uid);
889
890 CREATE INDEX not_event ON xtest_xoopsnotifications (not_event);
891
892
893 -- --------------------------------------------------------
894
895 --
896 -- ???若????????? xtest_xnpaccount_changelog
897 --
898
899 DROP TABLE xtest_xnpaccount_changelog;
900
901 CREATE TABLE xtest_xnpaccount_changelog (
902 log_id INTEGER PRIMARY KEY AUTOINCREMENT,
903 uid INTEGER default '0',
904 item_id INTEGER default '0',
905 log_date INTEGER default '0',
906 log text
907 );
908
909 CREATE INDEX changelog_item_id ON xtest_xnpaccount_changelog (item_id);
910
911 CREATE INDEX changelog_log_date ON xtest_xnpaccount_changelog (log_date);
912
913
914
915 -- --------------------------------------------------------
916
917 --
918 -- ???若????????? xtest_xnpbinder_binder_item_link
919 --
920
921 DROP TABLE xtest_xnpbinder_binder_item_link;
922
923 CREATE TABLE xtest_xnpbinder_binder_item_link (
924 binder_item_link_id INTEGER PRIMARY KEY AUTOINCREMENT,
925 binder_id INTEGER default '0',
926 item_id INTEGER default '0',
927 UNIQUE (binder_id,item_id)
928 );
929
930 CREATE INDEX xnpbinder_binder_item_link_index_id ON xtest_xnpbinder_binder_item_link (binder_id);
931
932 CREATE INDEX xnpbinder_binder_item_link_item_id ON xtest_xnpbinder_binder_item_link (item_id);
933
934
935 -- --------------------------------------------------------
936
937 --
938 -- ???若????????? xtest_xnpaccount_file
939 --
940
941 DROP TABLE xtest_xnpaccount_file;
942
943 CREATE TABLE xtest_xnpaccount_file (
944 file_id INTEGER PRIMARY KEY AUTOINCREMENT,
945 item_id INTEGER default NULL,
946 origial_file_name TEXT(255) default NULL,
947 file_name TEXT(255) default NULL,
948 file_size INTEGER NOT NULL default '0',
949 thumbnail_file_name TEXT(255) default NULL,
950 thumbnail_file_size INTEGER default NULL,
951 caption TEXT(255) default NULL,
952 sid INTEGER default NULL,
953 file_type_id INTEGER NOT NULL default '0'
954 );
955
956 CREATE INDEX xnpaccount_file_item_id ON xtest_xnpaccount_file (item_id);
957
958 CREATE INDEX xnpaccount_file_sid ON xtest_xnpaccount_file (sid);
959
960 -- --------------------------------------------------------
961
962 --
963 -- ???若????????? xtest_xnpaccount_file_type
964 --
965
966 DROP TABLE xtest_xnpaccount_file_type;
967
968 CREATE TABLE xtest_xnpaccount_file_type (
969 file_type_id INTEGER PRIMARY KEY AUTOINCREMENT,
970 name TEXT(30) default NULL,
971 mid INTEGER default NULL,
972 display_name TEXT(30) default NULL
973 );
974
975
976
977 INSERT INTO xtest_xnpaccount_users VALUES (2, 1, NULL, NULL, '', NULL, '', '', '', NULL, NULL, NULL,2, 0, 0, 0);
978
979 INSERT INTO xtest_xnpaccount_users VALUES (1, 1, '', '', '', '', '', '', '', '', 0, '2004-12-14 15:50:19',1, 0, 0, 0);
980
981 INSERT INTO xtest_xnpaccount_users VALUES (3, 1, '', '', '', '', '', '', '', '', 0, '0000-00-00 00:00:00',3, 0, 0, 0);
982
983 INSERT INTO xtest_xnpaccount_users VALUES (4, 1, NULL, NULL, '', NULL, '', '', '', NULL, NULL, NULL,4, 0, 0, 0);
984
985 INSERT INTO xtest_xnpaccount_users VALUES (169, 1, '', '', '', '', '', '', '', '', 0, '0000-00-00 00:00:00',5, 0, 0, 0);
986
987 INSERT INTO xtest_xnpaccount_users VALUES (167, 1, NULL, NULL, '', NULL, '', '', '', NULL, NULL, NULL,6, 0, 0, 0);
988
989
990 INSERT INTO xtest_users VALUES (1, '', 'root', 'yuichit@tsubasa.co.jp', 'https://10.12.60.61/~youi/xoops/', 'blank.gif', 1102397507, '', '', '', 1, '', '', '', '', 'aea6380b5e33432e2f0abda224575d8a', 0, 0, 7, 5, 'default', '9.0', 1103264601, 'thread', 0, 1, 0, '', '', '', 0);
991
992 INSERT INTO xtest_users VALUES (2, '', 'kawamata', 'kawamata@tsubasa.co.jp', '', 'blank.gif', 1103004700, '', '', '', 0, '60fea2ce', '', '', '', 'ab8702061956c0a8fb112f6ad0b687d8', 0, 0, 0, 1, '', '9.0', 1103012492, 'nest', 0, 1, 0, '', '', '', 1);
993
994 INSERT INTO xtest_users VALUES (3, '', 'gadmin', 'gadmin@hoge.com', '', 'blank.gif', 1103005989, '', '', '', 0, '380b3b95', '', '', '', 'f73767a685634d4a646217735385c0b7', 0, 0, 0, 1, '', '0.0', 1103007141, 'nest', 0, 1, 0, '', '', '', 1);
995
996 INSERT INTO xtest_users VALUES (4, '', 'youi', 'youi2@praesens.co.jp', '', 'blank.gif', 1103282226, '', '', '', 0, '', '', '', '', '329435e5e66be809a656af105f42401e', 0, 0, 0, 1, '', '0.0', 0, 'nest', 0, 1, 0, '', '', '', 0);
997
998 INSERT INTO xtest_users VALUES (169, '', 'moderator', 'moderator@hoge.fuga', '', 'blank.gif', 1105596870, '', '', '', 0, '5fd83f13', '', '', '', '637dc9f6e01dde3b07bf1604bcc35990', 0, 0, 0, 1, '', '9.0', 0, 'nest', 0, 1, 0, '', '', '', 1);
999
1000 INSERT INTO xtest_users VALUES (167, '', 'youi256', 'youi256@praesens.co.jp', '', 'blank.gif', 1105594202, '', '', '', 0, '4e122187', '', '', '', '69fe8cbf32f415efcb4166101f1e5851', 0, 0, 0, 1, '', '9.0', 1105594769, 'nest', 0, 1, 0, '', '', '', 1);
1001
1002
1003 INSERT INTO xtest_groups VALUES (33, 'moderator', 'platform moderator', '');
1004
1005 INSERT INTO xtest_xnpaccount_config VALUES (1, 'moderator_gid', "33");
1006
1007
1008 INSERT INTO xtest_groups_users_link VALUES (1, 33, 169);
1009
1010
1011 INSERT INTO xtest_xnpaccount_groups VALUES (1, 'default', 'default group', 0, 0, 0, 0);
1012
1013
1014 INSERT INTO xtest_xnpaccount_item_basic VALUES (1,1,0,'Root',NULL,NULL,NULL,0,0,NULL,NULL,NULL);
1015
1016 INSERT INTO xtest_xnpaccount_item_basic VALUES (2,1,0,'Binders',NULL,NULL,NULL,0,0,NULL,NULL,NULL);
1017
1018 INSERT INTO xtest_xnpaccount_item_basic VALUES (3,1,0,'Public',NULL,NULL,NULL,0,0,NULL,NULL,NULL);
1019
1020
1021 INSERT INTO xtest_xnpaccount_index VALUES (1,0,NULL,NULL,1,1);
1022
1023 INSERT INTO xtest_xnpaccount_index VALUES (2,3,NULL,NULL,1,1);
1024
1025 INSERT INTO xtest_xnpaccount_index VALUES (3,1,NULL,NULL,1,1);
1026
1027
1028 INSERT INTO xtest_xnpaccount_item_type VALUES (1,'index',NULL,'Index');
1029
1030 INSERT INTO xtest_xnpaccount_item_type VALUES (2,'binder',NULL,'Binder');
1031
1032 INSERT INTO xtest_xnpaccount_item_type VALUES (3,'0123456789012345678901234567890',NULL,'1234567890123456789012345678901');
1033
1034

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26