-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqtalk.sql
More file actions
5177 lines (3521 loc) · 136 KB
/
qtalk.sql
File metadata and controls
5177 lines (3521 loc) · 136 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--
-- PostgreSQL database cluster dump
--
-- Started on 2018-12-13 17:11:42 CST
SET default_transaction_read_only = off;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
--
-- Roles
--
CREATE ROLE ejabberd;
ALTER ROLE ejabberd WITH SUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN NOREPLICATION NOBYPASSRLS;
CREATE ROLE postgres;
ALTER ROLE postgres WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION NOBYPASSRLS;
--
-- Database creation
--
CREATE DATABASE ejabberd WITH TEMPLATE = template0 OWNER = postgres;
REVOKE ALL ON DATABASE ejabberd FROM postgres;
ALTER DATABASE ejabberd SET standard_conforming_strings TO 'off';
REVOKE CONNECT,TEMPORARY ON DATABASE template1 FROM PUBLIC;
GRANT CONNECT ON DATABASE template1 TO PUBLIC;
\connect ejabberd
SET default_transaction_read_only = off;
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.5
-- Dumped by pg_dump version 10.5
-- Started on 2018-12-13 17:11:42 CST
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
SET row_security = off;
--
-- TOC entry 2 (class 3079 OID 13086)
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- TOC entry 4652 (class 0 OID 0)
-- Dependencies: 2
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
--
-- TOC entry 1 (class 3079 OID 16509)
-- Name: adminpack; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS adminpack WITH SCHEMA pg_catalog;
--
-- TOC entry 4653 (class 0 OID 0)
-- Dependencies: 1
-- Name: EXTENSION adminpack; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION adminpack IS 'administrative functions for PostgreSQL';
--
-- TOC entry 6 (class 3079 OID 16518)
-- Name: btree_gist; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS btree_gist WITH SCHEMA public;
--
-- TOC entry 4654 (class 0 OID 0)
-- Dependencies: 6
-- Name: EXTENSION btree_gist; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION btree_gist IS 'support for indexing common datatypes in GiST';
--
-- TOC entry 5 (class 3079 OID 17141)
-- Name: pg_buffercache; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS pg_buffercache WITH SCHEMA public;
--
-- TOC entry 4655 (class 0 OID 0)
-- Dependencies: 5
-- Name: EXTENSION pg_buffercache; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION pg_buffercache IS 'examine the shared buffer cache';
--
-- TOC entry 4 (class 3079 OID 17147)
-- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
--
-- TOC entry 4656 (class 0 OID 0)
-- Dependencies: 4
-- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams';
--
-- TOC entry 3 (class 3079 OID 17212)
-- Name: pgstattuple; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS pgstattuple WITH SCHEMA public;
--
-- TOC entry 4657 (class 0 OID 0)
-- Dependencies: 3
-- Name: EXTENSION pgstattuple; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION pgstattuple IS 'show tuple-level statistics';
--
-- TOC entry 508 (class 1255 OID 17223)
-- Name: qto_char(timestamp with time zone, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION public.qto_char(timestamp with time zone, text) RETURNS text
LANGUAGE sql IMMUTABLE
AS $_$select to_char($1, $2);$_$;
ALTER FUNCTION public.qto_char(timestamp with time zone, text) OWNER TO postgres;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- TOC entry 203 (class 1259 OID 17229)
-- Name: admin_user; Type: TABLE; Schema: public; Owner: ejabberd
--
CREATE TABLE public.admin_user (
username character varying(255) NOT NULL,
priority text NOT NULL
);
ALTER TABLE public.admin_user OWNER TO ejabberd;
--
--
--
--
-- Name: login_data; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.login_data (
id integer NOT NULL,
username character varying(255) NOT NULL,
host character varying(255) NOT NULL,
resource character varying(255) NOT NULL,
platform character varying(255) NOT NULL,
ip inet,
login_time timestamp with time zone DEFAULT now(),
logout_at timestamp with time zone DEFAULT now(),
record_type character varying(255) NOT NULL
);
ALTER TABLE public.login_data OWNER TO postgres;
--
-- Name: TABLE login_data; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE public.login_data IS 'qtalk登录记录';
--
-- Name: COLUMN login_data.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.login_data.id IS '登录记录ID';
--
-- Name: COLUMN login_data.username; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.login_data.username IS '用户名';
--
-- Name: COLUMN login_data.host; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.login_data.host IS 'host';
--
-- Name: COLUMN login_data.resource; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.login_data.resource IS 'resource';
--
-- Name: COLUMN login_data.platform; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.login_data.platform IS '平台';
--
-- Name: COLUMN login_data.ip; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.login_data.ip IS '登录ip地址';
--
-- Name: COLUMN login_data.login_time; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.login_data.login_time IS '登录时间';
--
-- Name: COLUMN login_data.logout_at; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.login_data.logout_at IS '退出时间';
--
-- Name: COLUMN login_data.record_type; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.login_data.record_type IS '类型';
--
-- Name: login_data_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.login_data_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.login_data_id_seq OWNER TO postgres;
--
-- Name: login_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.login_data_id_seq OWNED BY public.login_data.id;
--
-- Name: login_data id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.login_data ALTER COLUMN id SET DEFAULT nextval('public.login_data_id_seq'::regclass);
--
-- Name: login_data login_data_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.login_data
ADD CONSTRAINT login_data_pkey PRIMARY KEY (id);
--
-- Name: login_data_ip_idx; Type: INDEX; Schema: public; Owner: postgres
--
-- CREATE INDEX login_data_ip_idx ON public.login_data USING gist (ip inet_ops);
--
-- Name: login_data_login_time_idx; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX login_data_login_time_idx ON public.login_data USING btree (login_time);
--
-- Name: login_data_logout_at_idx; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX login_data_logout_at_idx ON public.login_data USING btree (logout_at);
--
-- Name: login_data_record_type_idx; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX login_data_record_type_idx ON public.login_data USING btree (record_type);
--
-- Name: login_data_username_idx; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX login_data_username_idx ON public.login_data USING btree (username);
--
-- TOC entry 207 (class 1259 OID 17249)
-- Name: client_config_sync; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.client_config_sync (
id integer NOT NULL,
username character varying(255) NOT NULL,
host character varying(255) NOT NULL,
configkey character varying(255) NOT NULL,
subkey character varying(255) NOT NULL,
configinfo text NOT NULL,
version bigint DEFAULT 1,
operate_plat character varying(50) NOT NULL,
create_time timestamp with time zone DEFAULT now(),
update_time timestamp with time zone DEFAULT now(),
isdel smallint DEFAULT 0
);
ALTER TABLE public.client_config_sync OWNER TO postgres;
--
-- TOC entry 4876 (class 0 OID 0)
-- Dependencies: 207
-- Name: TABLE client_config_sync; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE public.client_config_sync IS '客户端漫游用户配置表';
--
-- TOC entry 4877 (class 0 OID 0)
-- Dependencies: 207
-- Name: COLUMN client_config_sync.username; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.client_config_sync.username IS '用户用户名';
--
-- TOC entry 4878 (class 0 OID 0)
-- Dependencies: 207
-- Name: COLUMN client_config_sync.host; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.client_config_sync.host IS '用户域名';
--
-- TOC entry 4879 (class 0 OID 0)
-- Dependencies: 207
-- Name: COLUMN client_config_sync.configkey; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.client_config_sync.configkey IS '漫游数据key';
--
-- TOC entry 4880 (class 0 OID 0)
-- Dependencies: 207
-- Name: COLUMN client_config_sync.subkey; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.client_config_sync.subkey IS '漫游数据子key';
--
-- TOC entry 4881 (class 0 OID 0)
-- Dependencies: 207
-- Name: COLUMN client_config_sync.configinfo; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.client_config_sync.configinfo IS '漫游数据';
--
-- TOC entry 4882 (class 0 OID 0)
-- Dependencies: 207
-- Name: COLUMN client_config_sync.version; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.client_config_sync.version IS '版本号';
--
-- TOC entry 4883 (class 0 OID 0)
-- Dependencies: 207
-- Name: COLUMN client_config_sync.operate_plat; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.client_config_sync.operate_plat IS '操作平台';
--
-- TOC entry 4884 (class 0 OID 0)
-- Dependencies: 207
-- Name: COLUMN client_config_sync.create_time; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.client_config_sync.create_time IS '创建时间';
--
-- TOC entry 4885 (class 0 OID 0)
-- Dependencies: 207
-- Name: COLUMN client_config_sync.update_time; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.client_config_sync.update_time IS '更新时间';
--
-- TOC entry 4886 (class 0 OID 0)
-- Dependencies: 207
-- Name: COLUMN client_config_sync.isdel; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.client_config_sync.isdel IS '是否删除或取消';
--
-- TOC entry 208 (class 1259 OID 17259)
-- Name: client_config_sync_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.client_config_sync_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.client_config_sync_id_seq OWNER TO postgres;
--
-- TOC entry 4887 (class 0 OID 0)
-- Dependencies: 208
-- Name: client_config_sync_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.client_config_sync_id_seq OWNED BY public.client_config_sync.id;
--
-- TOC entry 210 (class 1259 OID 17264)
-- Name: destroy_muc_info; Type: TABLE; Schema: public; Owner: ejabberd
--
CREATE TABLE public.destroy_muc_info (
muc_name text NOT NULL,
nick_name text,
reason text,
id bigint NOT NULL,
created_at timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.destroy_muc_info OWNER TO ejabberd;
--
-- TOC entry 211 (class 1259 OID 17271)
-- Name: destroy_muc_info_id_seq; Type: SEQUENCE; Schema: public; Owner: ejabberd
--
CREATE SEQUENCE public.destroy_muc_info_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.destroy_muc_info_id_seq OWNER TO ejabberd;
--
-- TOC entry 4888 (class 0 OID 0)
-- Dependencies: 211
-- Name: destroy_muc_info_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ejabberd
--
ALTER SEQUENCE public.destroy_muc_info_id_seq OWNED BY public.destroy_muc_info.id;
--
-- TOC entry 213 (class 1259 OID 17279)
-- Name: flogin_user; Type: TABLE; Schema: public; Owner: ejabberd
--
CREATE TABLE public.flogin_user (
id serial primary key,
username varchar(1000) not null,
create_time timestamptz not null default now()
);
ALTER TABLE public.flogin_user OWNER TO ejabberd;
--
-- TOC entry 219 (class 1259 OID 17316)
-- Name: fresh_empl_entering; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.fresh_empl_entering (
id bigint NOT NULL,
user_id character varying(20) NOT NULL,
user_name character varying(20) NOT NULL,
hire_flag smallint DEFAULT 1 NOT NULL,
join_date date NOT NULL,
send_state smallint DEFAULT 0 NOT NULL,
sn character varying(15) NOT NULL,
manager character varying(20) NOT NULL,
manager_mail character varying(50) NOT NULL,
dep1 character varying(20) NOT NULL,
dep2 character varying(20),
dep3 character varying(20),
dep4 character varying(20),
dep5 character varying(20),
job character varying(20),
job_code character varying(20) NOT NULL,
probation_date date NOT NULL,
version smallint DEFAULT 0 NOT NULL,
create_time timestamp with time zone DEFAULT now(),
update_time timestamp with time zone DEFAULT now()
);
ALTER TABLE public.fresh_empl_entering OWNER TO postgres;
--
-- TOC entry 4890 (class 0 OID 0)
-- Dependencies: 219
-- Name: TABLE fresh_empl_entering; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE public.fresh_empl_entering IS '表名';
--
-- TOC entry 4891 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.id IS '唯一主键';
--
-- TOC entry 4892 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.user_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.user_id IS 'qtalkid';
--
-- TOC entry 4893 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.user_name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.user_name IS '姓名';
--
-- TOC entry 4894 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.hire_flag; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.hire_flag IS '入职状态,0:已入职,1:未入职,2:推迟入职,3:待定入职';
--
-- TOC entry 4895 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.join_date; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.join_date IS '入职日期';
--
-- TOC entry 4896 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.send_state; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.send_state IS '消息发送状态,0:未发送,1:已发送';
--
-- TOC entry 4897 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.sn; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.sn IS '员工号';
--
-- TOC entry 4898 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.manager; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.manager IS '主管号';
--
-- TOC entry 4899 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.manager_mail; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.manager_mail IS '主管邮箱';
--
-- TOC entry 4900 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.dep1; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.dep1 IS '一级部门';
--
-- TOC entry 4901 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.job; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.job IS '岗位名称';
--
-- TOC entry 4902 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.job_code; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.job_code IS '岗位编码';
--
-- TOC entry 4903 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.probation_date; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.probation_date IS '转正日期';
--
-- TOC entry 4904 (class 0 OID 0)
-- Dependencies: 219
-- Name: COLUMN fresh_empl_entering.version; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.fresh_empl_entering.version IS '入职日期修改次数';
--
-- TOC entry 220 (class 1259 OID 17324)
-- Name: fresh_empl_entering_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.fresh_empl_entering_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.fresh_empl_entering_id_seq OWNER TO postgres;
--
-- TOC entry 4906 (class 0 OID 0)
-- Dependencies: 220
-- Name: fresh_empl_entering_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.fresh_empl_entering_id_seq OWNED BY public.fresh_empl_entering.id;
--
-- TOC entry 223 (class 1259 OID 17337)
-- Name: host_info; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.host_info (
id bigint NOT NULL,
host text NOT NULL,
description text,
create_time timestamp with time zone DEFAULT now() NOT NULL,
host_type int not null default 0,
host_qrcode varchar(1000),
need_approve int not null default 0,
host_admin text NOT NULL
);
ALTER TABLE public.host_info OWNER TO postgres;
--
-- TOC entry 224 (class 1259 OID 17344)
-- Name: host_info_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.host_info_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.host_info_id_seq OWNER TO postgres;
--
-- TOC entry 4910 (class 0 OID 0)
-- Dependencies: 224
-- Name: host_info_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.host_info_id_seq OWNED BY public.host_info.id;
--
-- TOC entry 225 (class 1259 OID 17346)
-- Name: host_users; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.host_users (
id bigint NOT NULL,
host_id bigint NOT NULL,
user_id text NOT NULL,
user_name text NOT NULL,
department text NOT NULL,
tel text,
email text,
dep1 text NOT NULL,
dep2 text DEFAULT ''::text,
dep3 text DEFAULT ''::text,
dep4 text DEFAULT ''::text,
dep5 text DEFAULT ''::text,
pinyin text,
frozen_flag smallint DEFAULT 0 NOT NULL,
version integer DEFAULT 1 NOT NULL,
user_type character(1) DEFAULT 'U'::bpchar,
hire_flag smallint DEFAULT 1 NOT NULL,
gender smallint DEFAULT 0 NOT NULL,
password text,
initialpwd smallint DEFAULT 1 NOT NULL,
pwd_salt character varying(200),
leader character varying(200),
hrbp character varying(200),
user_role integer DEFAULT 0 NOT NULL,
approve_flag int default 1,
user_desc varchar(1024),
user_origin int default 0,
hire_type varchar(50) DEFAULT '未知',
admin_flag varchar(20) DEFAULT '0',
create_time timestamp DEFAULT (now())::timestamp(3),
ps_deptid text DEFAULT 'QUNAR'::text
);
ALTER TABLE public.host_users OWNER TO postgres;
COMMENT ON COLUMN host_users.pwd_salt IS '密码salt';
--
-- TOC entry 226 (class 1259 OID 17363)
-- Name: host_users_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.host_users_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.host_users_id_seq OWNER TO postgres;
--
-- TOC entry 4913 (class 0 OID 0)
-- Dependencies: 226
-- Name: host_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.host_users_id_seq OWNED BY public.host_users.id;
--
-- TOC entry 229 (class 1259 OID 17385)
-- Name: invite_spool; Type: TABLE; Schema: public; Owner: ejabberd
--
CREATE TABLE public.invite_spool (
username text NOT NULL,
inviter text NOT NULL,
body text NOT NULL,
"timestamp" integer NOT NULL,
created_at timestamp without time zone DEFAULT now() NOT NULL,
host text DEFAULT 'ejabhost1'::text NOT NULL,
ihost text DEFAULT 'ejabhost1'::text NOT NULL
);
ALTER TABLE public.invite_spool OWNER TO ejabberd;
--
-- TOC entry 230 (class 1259 OID 17394)
-- Name: iplimit; Type: TABLE; Schema: public; Owner: ejabberd
--
CREATE TABLE public.iplimit (
ip text NOT NULL,
created_at timestamp(6) without time zone DEFAULT now() NOT NULL,
descriptions text DEFAULT now() NOT NULL,
name text DEFAULT 'ALL'::text NOT NULL,
priority text DEFAULT '1'::text NOT NULL,
manager text
);
ALTER TABLE public.iplimit OWNER TO ejabberd;
--
-- TOC entry 231 (class 1259 OID 17404)
-- Name: irc_custom; Type: TABLE; Schema: public; Owner: ejabberd
--
CREATE TABLE public.irc_custom (
jid text NOT NULL,
host text NOT NULL,
data text NOT NULL,
created_at timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.irc_custom OWNER TO ejabberd;
--
-- TOC entry 232 (class 1259 OID 17411)
-- Name: last; Type: TABLE; Schema: public; Owner: ejabberd
--
CREATE TABLE public.last (
username text NOT NULL,
seconds text NOT NULL,
state text NOT NULL
);
ALTER TABLE public.last OWNER TO ejabberd;
--
-- TOC entry 237 (class 1259 OID 17437)
-- Name: meeting_info; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.meeting_info (
id integer NOT NULL,
meeting_id character varying(255) NOT NULL,
meeting_name character varying(255) NOT NULL,
meeting_remarks text DEFAULT ''::text,
meeting_intr text DEFAULT ''::text,
meeting_locale character varying(255) NOT NULL,
meeting_room character varying(255) NOT NULL,
schedule_time timestamp with time zone DEFAULT now(),
meeting_date date NOT NULL,
begin_time timestamp with time zone NOT NULL,
end_time timestamp with time zone NOT NULL,
inviter character varying(255) NOT NULL,
member character varying(255) NOT NULL,
mem_action integer DEFAULT 0,
remind_flag integer DEFAULT 0,
refuse_reason text,
canceled boolean DEFAULT false
);
ALTER TABLE public.meeting_info OWNER TO postgres;
--
-- TOC entry 4918 (class 0 OID 0)
-- Dependencies: 237
-- Name: TABLE meeting_info; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON TABLE public.meeting_info IS '存储会议提醒信息表';
--
-- TOC entry 4919 (class 0 OID 0)
-- Dependencies: 237
-- Name: COLUMN meeting_info.meeting_id; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.meeting_info.meeting_id IS '会议ID';
--
-- TOC entry 4920 (class 0 OID 0)
-- Dependencies: 237
-- Name: COLUMN meeting_info.meeting_name; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.meeting_info.meeting_name IS '会议名称';
--
-- TOC entry 4921 (class 0 OID 0)
-- Dependencies: 237
-- Name: COLUMN meeting_info.meeting_remarks; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.meeting_info.meeting_remarks IS '会议备注';
--
-- TOC entry 4922 (class 0 OID 0)
-- Dependencies: 237
-- Name: COLUMN meeting_info.meeting_intr; Type: COMMENT; Schema: public; Owner: postgres
--
COMMENT ON COLUMN public.meeting_info.meeting_intr IS '会议内容';
--
-- TOC entry 4923 (class 0 OID 0)
-- Dependencies: 237
-- Name: COLUMN meeting_info.meeting_locale; Type: COMMENT; Schema: public; Owner: postgres
--