Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zong
Compass
Commits
0e1222b8
Commit
0e1222b8
authored
Feb 14, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
68b56ab5
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
51 additions
and
523 deletions
+51
-523
compass_db_schema.sql
doc/DB/compass_db_schema.sql
+0
-472
compass_db_schema.xlsx
doc/DB/compass_db_schema.xlsx
+0
-0
接口文档 V1.0.xls
doc/接口文档 V1.0.xls
+0
-0
CertificateMst.inc
src/cn/compass/entity/CertificateMst.inc
+2
-2
CircleDat.inc
src/cn/compass/entity/CircleDat.inc
+2
-2
CircleMemberDat.inc
src/cn/compass/entity/CircleMemberDat.inc
+2
-5
ClassMst.inc
src/cn/compass/entity/ClassMst.inc
+2
-2
CourseCategoryDat.inc
src/cn/compass/entity/CourseCategoryDat.inc
+2
-2
CourseMediaDat.inc
src/cn/compass/entity/CourseMediaDat.inc
+2
-2
CourseMst.inc
src/cn/compass/entity/CourseMst.inc
+2
-2
FamilyEventDat.inc
src/cn/compass/entity/FamilyEventDat.inc
+2
-2
FamilyEventMemberDat.inc
src/cn/compass/entity/FamilyEventMemberDat.inc
+2
-2
GovernmentMst.inc
src/cn/compass/entity/GovernmentMst.inc
+2
-2
GovernmentQrDat.inc
src/cn/compass/entity/GovernmentQrDat.inc
+2
-2
GradeMst.inc
src/cn/compass/entity/GradeMst.inc
+2
-2
MediaTagDat.inc
src/cn/compass/entity/MediaTagDat.inc
+2
-2
SchoolMst.inc
src/cn/compass/entity/SchoolMst.inc
+2
-2
SocialEventDat.inc
src/cn/compass/entity/SocialEventDat.inc
+2
-2
SocialEventMemberDat.inc
src/cn/compass/entity/SocialEventMemberDat.inc
+2
-2
SystemConstantDat.inc
src/cn/compass/entity/SystemConstantDat.inc
+2
-2
UserCertificateDat.inc
src/cn/compass/entity/UserCertificateDat.inc
+2
-2
UserMediaDat.inc
src/cn/compass/entity/UserMediaDat.inc
+5
-2
UserMst.inc
src/cn/compass/entity/UserMst.inc
+4
-4
UserPointLog.inc
src/cn/compass/entity/UserPointLog.inc
+2
-2
VolunteerEventDat.inc
src/cn/compass/entity/VolunteerEventDat.inc
+2
-2
VolunteerEventMemberDat.inc
src/cn/compass/entity/VolunteerEventMemberDat.inc
+2
-2
No files found.
doc/DB/compass_db_schema.sql
deleted
100644 → 0
View file @
68b56ab5
##
----system_constant_dat create
DROP
TABLE
IF
EXISTS
system_constant_dat
;
CREATE
TABLE
IF
NOT
EXISTS
system_constant_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
name
varchar
(
64
)
NOT
NULL
,
title
varchar
(
128
)
NOT
NULL
,
constant_value
text
NOT
NULL
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
system_constant_dat_name_idx
ON
system_constant_dat
(
name
);
##
----government_mst create
DROP
TABLE
IF
EXISTS
government_mst
;
CREATE
TABLE
IF
NOT
EXISTS
government_mst
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
province
varchar
(
64
)
NOT
NULL
,
city
varchar
(
64
),
district
varchar
(
64
),
title
text
NOT
NULL
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
government_mst_province_idx
ON
government_mst
(
province
);
Create
INDEX
government_mst_city_idx
ON
government_mst
(
city
);
Create
INDEX
government_mst_district_idx
ON
government_mst
(
district
);
##
----government_qr_dat create
DROP
TABLE
IF
EXISTS
government_qr_dat
;
CREATE
TABLE
IF
NOT
EXISTS
government_qr_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
government_id
int8
NOT
NULL
,
province
varchar
(
64
)
NOT
NULL
,
city
varchar
(
64
),
district
varchar
(
64
),
max_count
int8
NOT
NULL
DEFAULT
'0'
,
limit_date
timestamp
NOT
NULL
,
title
text
NOT
NULL
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
government_qr_dat_province_idx
ON
government_qr_dat
(
province
);
Create
INDEX
government_qr_dat_city_idx
ON
government_qr_dat
(
city
);
Create
INDEX
government_qr_dat_district_idx
ON
government_qr_dat
(
district
);
##
----account_mst create
DROP
TABLE
IF
EXISTS
account_mst
;
CREATE
TABLE
IF
NOT
EXISTS
account_mst
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
login
text
NOT
NULL
,
password
text
NOT
NULL
,
name
varchar
(
64
)
NOT
NULL
,
contact
text
,
role
varchar
(
128
)
NOT
NULL
,
user_id
int8
NOT
NULL
DEFAULT
'0'
,
school_id
int8
NOT
NULL
DEFAULT
'0'
,
government_id
int8
NOT
NULL
DEFAULT
'0'
,
modules
text
NOT
NULL
,
comment
text
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
account_mst_login_idx
ON
account_mst
(
login
(
255
));
Create
INDEX
account_mst_password_idx
ON
account_mst
(
password
(
255
));
Create
INDEX
account_mst_name_idx
ON
account_mst
(
name
);
##
----school_mst create
DROP
TABLE
IF
EXISTS
school_mst
;
CREATE
TABLE
IF
NOT
EXISTS
school_mst
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
school_no
text
NOT
NULL
,
original_source
int8
NOT
NULL
DEFAULT
'0'
,
title
text
NOT
NULL
,
school_type
varchar
(
64
)
NOT
NULL
,
front_image
varchar
(
64
)
NOT
NULL
,
comment
text
NOT
NULL
,
address
text
NOT
NULL
,
province
varchar
(
64
),
city
varchar
(
64
),
district
varchar
(
64
),
street
text
,
longitude
text
NOT
NULL
,
latitude
text
NOT
NULL
DEFAULT
'UNKNOW'
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
school_mst_id_idx
ON
school_mst
(
id
);
Create
INDEX
school_mst_title_idx
ON
school_mst
(
title
(
255
));
Create
INDEX
school_mst_school_type_idx
ON
school_mst
(
school_type
);
##
----grade_mst create
DROP
TABLE
IF
EXISTS
grade_mst
;
CREATE
TABLE
IF
NOT
EXISTS
grade_mst
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
school_id
int8
NOT
NULL
,
school_no
text
NOT
NULL
,
original_source
int8
NOT
NULL
DEFAULT
'0'
,
title
text
NOT
NULL
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
grade_mst_school_id_idx
ON
grade_mst
(
school_id
);
##
----class_mst create
DROP
TABLE
IF
EXISTS
class_mst
;
CREATE
TABLE
IF
NOT
EXISTS
class_mst
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
school_id
int8
NOT
NULL
,
school_no
text
NOT
NULL
,
class_no
text
NOT
NULL
,
original_source
int8
NOT
NULL
DEFAULT
'0'
,
grade_id
int8
NOT
NULL
,
title
text
NOT
NULL
,
member_count
int8
NOT
NULL
DEFAULT
'0'
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
class_mst_school_id_idx
ON
class_mst
(
school_id
);
Create
INDEX
class_mst_grade_id_idx
ON
class_mst
(
grade_id
);
Create
INDEX
class_mst_class_no_idx
ON
class_mst
(
class_no
(
255
));
##
----circle_dat create
DROP
TABLE
IF
EXISTS
circle_dat
;
CREATE
TABLE
IF
NOT
EXISTS
circle_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
title
text
NOT
NULL
,
member_count
int8
NOT
NULL
DEFAULT
'0'
,
need_check
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
,
comment
text
NOT
NULL
,
longitude
text
NOT
NULL
,
latitude
text
NOT
NULL
DEFAULT
'UNKNOW'
,
address
text
NOT
NULL
,
owner_id
int8
NOT
NULL
DEFAULT
'0'
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
##
----circle_member_dat create
DROP
TABLE
IF
EXISTS
circle_member_dat
;
CREATE
TABLE
IF
NOT
EXISTS
circle_member_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
circle_id
int8
NOT
NULL
DEFAULT
'0'
,
user_id
int8
NOT
NULL
DEFAULT
'0'
,
member_count
int8
NOT
NULL
DEFAULT
'0'
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
##
----user_mst create
DROP
TABLE
IF
EXISTS
user_mst
;
CREATE
TABLE
IF
NOT
EXISTS
user_mst
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
school_no
varchar
(
255
)
NOT
NULL
DEFAULT
'0'
,
class_no
varchar
(
255
)
NOT
NULL
DEFAULT
'0'
,
original_source
int8
NOT
NULL
DEFAULT
'0'
,
openid
varchar
(
64
)
NOT
NULL
,
unionid
varchar
(
64
)
NOT
NULL
,
name
varchar
(
64
),
mobile
varchar
(
32
),
account_id
int8
NOT
NULL
DEFAULT
'0'
,
child_age
int8
NOT
NULL
DEFAULT
'1'
,
role
varchar
(
128
)
NOT
NULL
DEFAULT
'0'
,
longitude
text
,
latitude
text
,
organization_submit_date
timestamp
,
organization_no
varchar
(
255
),
organization_title
text
,
legal_person
varchar
(
255
),
organization_contact
text
,
legal_person_imgage1
varchar
(
255
),
legal_person_imgage2
varchar
(
255
),
licensen_imgage
varchar
(
255
),
other_imgage
varchar
(
255
),
organization_status
varchar
(
64
)
NOT
NULL
DEFAULT
'NEW'
,
ability_point
int8
NOT
NULL
DEFAULT
'0'
,
service_point
int8
NOT
NULL
DEFAULT
'0'
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
##
----social_event_dat create
DROP
TABLE
IF
EXISTS
social_event_dat
;
CREATE
TABLE
IF
NOT
EXISTS
social_event_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
school_no
text
NOT
NULL
DEFAULT
'0'
,
class_no
text
NOT
NULL
DEFAULT
'0'
,
original_source
int8
NOT
NULL
DEFAULT
'0'
,
title
text
NOT
NULL
,
author
text
NOT
NULL
,
publish_time
timestamp
NOT
NULL
,
content
text
NOT
NULL
,
scope
int8
NOT
NULL
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
social_event_dat_school_no_idx
ON
social_event_dat
(
school_no
(
255
));
Create
INDEX
social_event_dat_class_no_idx
ON
social_event_dat
(
class_no
(
255
));
Create
INDEX
social_event_dat_original_source_idx
ON
social_event_dat
(
original_source
);
##
----social_event_member_dat create
DROP
TABLE
IF
EXISTS
social_event_member_dat
;
CREATE
TABLE
IF
NOT
EXISTS
social_event_member_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
social_event_id
int8
NOT
NULL
,
user_id
text
NOT
NULL
,
comment
text
NOT
NULL
,
images
text
NOT
NULL
,
status
varchar
(
64
)
NOT
NULL
DEFAULT
'0'
,
point
int8
NOT
NULL
DEFAULT
'0'
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
social_event_member_dat_user_id_idx
ON
social_event_member_dat
(
user_id
(
255
));
##
----family_event_dat create
DROP
TABLE
IF
EXISTS
family_event_dat
;
CREATE
TABLE
IF
NOT
EXISTS
family_event_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
school_no
text
NOT
NULL
DEFAULT
'0'
,
class_no
text
NOT
NULL
DEFAULT
'0'
,
original_source
int8
NOT
NULL
DEFAULT
'0'
,
title
text
NOT
NULL
,
author
text
NOT
NULL
,
publish_time
timestamp
NOT
NULL
,
content
text
NOT
NULL
,
scope
int8
NOT
NULL
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
family_event_dat_school_no_idx
ON
family_event_dat
(
school_no
(
255
));
Create
INDEX
family_event_dat_class_no_idx
ON
family_event_dat
(
class_no
(
255
));
Create
INDEX
family_event_dat_original_source_idx
ON
family_event_dat
(
original_source
);
##
----family_event_member_dat create
DROP
TABLE
IF
EXISTS
family_event_member_dat
;
CREATE
TABLE
IF
NOT
EXISTS
family_event_member_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
family_event_id
int8
NOT
NULL
,
user_id
text
NOT
NULL
,
comment
text
NOT
NULL
,
images
text
NOT
NULL
,
status
varchar
(
64
)
NOT
NULL
DEFAULT
'0'
,
point
int8
NOT
NULL
DEFAULT
'0'
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
family_event_member_dat_user_id_idx
ON
family_event_member_dat
(
user_id
(
255
));
##
----volunteer_event_dat create
DROP
TABLE
IF
EXISTS
volunteer_event_dat
;
CREATE
TABLE
IF
NOT
EXISTS
volunteer_event_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
title
text
NOT
NULL
,
start_time
timestamp
NOT
NULL
,
finish_time
timestamp
NOT
NULL
,
position
text
NOT
NULL
,
position_longitude
text
NOT
NULL
,
position_latitude
text
NOT
NULL
,
scope
int8
NOT
NULL
,
max_member
int8
NOT
NULL
DEFAULT
'0'
,
time_length
varchar
(
64
)
NOT
NULL
,
leader_name
varchar
(
64
)
NOT
NULL
,
leader_contact
varchar
(
128
)
NOT
NULL
,
venue
text
NOT
NULL
,
status
varchar
(
64
)
NOT
NULL
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
##
----volunteer_event_member_dat create
DROP
TABLE
IF
EXISTS
volunteer_event_member_dat
;
CREATE
TABLE
IF
NOT
EXISTS
volunteer_event_member_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
volunteer_event_id
int8
NOT
NULL
,
user_id
text
NOT
NULL
,
comment
text
NOT
NULL
,
images
text
NOT
NULL
,
position
text
NOT
NULL
,
position_longitude
text
NOT
NULL
,
position_latitude
text
NOT
NULL
,
status
varchar
(
64
)
NOT
NULL
DEFAULT
'NEW'
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
volunteer_event_member_dat_user_id_idx
ON
volunteer_event_member_dat
(
user_id
(
255
));
##
----user_certificate_dat create
DROP
TABLE
IF
EXISTS
user_certificate_dat
;
CREATE
TABLE
IF
NOT
EXISTS
user_certificate_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
user_id
bigint
NOT
NULL
,
certificate_id
bigint
NOT
NULL
,
name
varchar
(
64
)
NOT
NULL
,
mobile
varchar
(
32
)
NOT
NULL
,
address
varchar
(
128
)
NOT
NULL
,
status
varchar
(
64
)
NOT
NULL
DEFAULT
'0'
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
user_certificate_dat_user_id_idx
ON
user_certificate_dat
(
user_id
);
Create
INDEX
user_certificate_dat_certificate_id_idx
ON
user_certificate_dat
(
certificate_id
);
##
----certificate_mst create
DROP
TABLE
IF
EXISTS
certificate_mst
;
CREATE
TABLE
IF
NOT
EXISTS
certificate_mst
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
title
varchar
(
128
)
NOT
NULL
,
<<<<<<<
HEAD
front_image
varchar
(
64
)
NOT
NULL
,
display_order
bigint
NOT
NULL
DEFAULT
'1'
,
=======
front_image
text
NOT
NULL
,
display_order
int8
NOT
NULL
DEFAULT
'1'
,
>>>>>>>
eb3e8ee3acfddebcb6320578b220a01256ab4ab3
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
certificate_mst_id_idx
ON
certificate_mst
(
id
);
##
----user_point_log create
DROP
TABLE
IF
EXISTS
user_point_log
;
CREATE
TABLE
IF
NOT
EXISTS
user_point_log
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
user_id
int8
NOT
NULL
PRIMARY
KEY
auto_increment
,
action_type
int4
NOT
NULL
,
point
int4
NOT
NULL
DEFAULT
'0'
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
user_point_log_user_id_idx
ON
user_point_log
(
user_id
);
##
----course_media_dat create
DROP
TABLE
IF
EXISTS
course_media_dat
;
CREATE
TABLE
IF
NOT
EXISTS
course_media_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
course_id
int8
NOT
NULL
DEFAULT
'0'
,
title
varchar
(
128
)
NOT
NULL
,
tags
text
NOT
NULL
,
front_image
varchar
(
64
)
NOT
NULL
,
media
text
NOT
NULL
,
teacher
varchar
(
128
),
is_free
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
,
price
float
(
5
,
2
)
NOT
NULL
DEFAULT
'0'
,
view_count
int8
NOT
NULL
DEFAULT
'0'
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
course_media_dat_course_id_idx
ON
course_media_dat
(
course_id
);
##
----media_tag_dat create
DROP
TABLE
IF
EXISTS
media_tag_dat
;
CREATE
TABLE
IF
NOT
EXISTS
media_tag_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
tag
varchar
(
128
)
NOT
NULL
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
media_tag_dat_tag_idx
ON
media_tag_dat
(
tag
);
##
----course_category_dat create
DROP
TABLE
IF
EXISTS
course_category_dat
;
CREATE
TABLE
IF
NOT
EXISTS
course_category_dat
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
parent_id
int4
NOT
NULL
,
title
varchar
(
128
)
NOT
NULL
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
course_category_dat_id_idx
ON
course_category_dat
(
id
);
Create
INDEX
course_category_dat_parent_id_idx
ON
course_category_dat
(
parent_id
);
##
----course_mst create
DROP
TABLE
IF
EXISTS
course_mst
;
CREATE
TABLE
IF
NOT
EXISTS
course_mst
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
parent_category_id
int8
NOT
NULL
,
sub_category_id
int8
NOT
NULL
,
title
varchar
(
128
)
NOT
NULL
,
front_image
varchar
(
64
)
NOT
NULL
,
teacher_profile
text
,
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
##
----user_point_log create
DROP
TABLE
IF
EXISTS
user_point_log
;
CREATE
TABLE
IF
NOT
EXISTS
user_point_log
(
id
bigint
unsigned
NOT
NULL
PRIMARY
KEY
auto_increment
,
registration_date
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
user_id
int8
NOT
NULL
,
media_id
int8
NOT
NULL
,
is_free
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
,
money
float
(
5
,
2
)
NOT
NULL
DEFAULT
'0'
,
order_no
varchar
(
255
),
mchid_order_no
varchar
(
255
),
status
varchar
(
64
),
delete_flg
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
)
ENGINE
=
INNODB
DEFAULT
CHARSET
=
utf8mb4
;
Create
INDEX
user_point_log_user_id_idx
ON
user_point_log
(
user_id
);
doc/DB/compass_db_schema.xlsx
View file @
0e1222b8
No preview for this file type
doc/接口文档 V1.0.xls
View file @
0e1222b8
No preview for this file type
src/cn/compass/entity/CertificateMst.inc
View file @
0e1222b8
<?php
/**
* CertificateMst Entity
* $Id: CertificateMst.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: CertificateMst.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/CircleDat.inc
View file @
0e1222b8
<?php
/**
* CircleDat Entity
* $Id: CircleDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: CircleDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/CircleMemberDat.inc
View file @
0e1222b8
<?php
/**
* CircleMemberDat Entity
* $Id: CircleMemberDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: CircleMemberDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
@@ -10,7 +10,6 @@ class CircleMemberDat extends CompassDynamicData
{
var
$circle_id
;
var
$user_id
;
var
$member_count
;
var
$delete_flg
;
/**
...
...
@@ -25,7 +24,6 @@ class CircleMemberDat extends CompassDynamicData
$this
->
circle_id
=
$record
[
"circle_id"
];
$this
->
user_id
=
$record
[
"user_id"
];
$this
->
member_count
=
$record
[
"member_count"
];
$this
->
delete_flg
=
$record
[
"delete_flg"
];
}
...
...
@@ -92,7 +90,6 @@ class CircleMemberDat extends CompassDynamicData
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"circle_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"user_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"member_count"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"delete_flg"
);
// 保存
...
...
src/cn/compass/entity/ClassMst.inc
View file @
0e1222b8
<?php
/**
* ClassMst Entity
* $Id: ClassMst.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: ClassMst.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/CourseCategoryDat.inc
View file @
0e1222b8
<?php
/**
* CourseCategoryDat Entity
* $Id: CourseCategoryDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: CourseCategoryDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/CourseMediaDat.inc
View file @
0e1222b8
<?php
/**
* CourseMediaDat Entity
* $Id: CourseMediaDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: CourseMediaDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/CourseMst.inc
View file @
0e1222b8
<?php
/**
* CourseMst Entity
* $Id: CourseMst.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: CourseMst.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/FamilyEventDat.inc
View file @
0e1222b8
<?php
/**
* FamilyEventDat Entity
* $Id: FamilyEventDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: FamilyEventDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/FamilyEventMemberDat.inc
View file @
0e1222b8
<?php
/**
* FamilyEventMemberDat Entity
* $Id: FamilyEventMemberDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: FamilyEventMemberDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/GovernmentMst.inc
View file @
0e1222b8
<?php
/**
* GovernmentMst Entity
* $Id: GovernmentMst.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: GovernmentMst.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/GovernmentQrDat.inc
View file @
0e1222b8
<?php
/**
* GovernmentQrDat Entity
* $Id: GovernmentQrDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: GovernmentQrDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/GradeMst.inc
View file @
0e1222b8
<?php
/**
* GradeMst Entity
* $Id: GradeMst.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: GradeMst.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/MediaTagDat.inc
View file @
0e1222b8
<?php
/**
* MediaTagDat Entity
* $Id: MediaTagDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: MediaTagDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/SchoolMst.inc
View file @
0e1222b8
<?php
/**
* SchoolMst Entity
* $Id: SchoolMst.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: SchoolMst.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/SocialEventDat.inc
View file @
0e1222b8
<?php
/**
* SocialEventDat Entity
* $Id: SocialEventDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: SocialEventDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/SocialEventMemberDat.inc
View file @
0e1222b8
<?php
/**
* SocialEventMemberDat Entity
* $Id: SocialEventMemberDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: SocialEventMemberDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/SystemConstantDat.inc
View file @
0e1222b8
<?php
/**
* SystemConstantDat Entity
* $Id: SystemConstantDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: SystemConstantDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/UserCertificateDat.inc
View file @
0e1222b8
<?php
/**
* UserCertificateDat Entity
* $Id: UserCertificateDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: UserCertificateDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/UserMediaDat.inc
View file @
0e1222b8
<?php
/**
* UserMediaDat Entity
* $Id: UserMediaDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: UserMediaDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
class
UserMediaDat
extends
CompassDynamicData
{
var
$user_id
;
var
$course_id
;
var
$media_id
;
var
$is_free
;
var
$money
;
...
...
@@ -28,6 +29,7 @@ class UserMediaDat extends CompassDynamicData
parent
::
constructor
(
$record
);
$this
->
user_id
=
$record
[
"user_id"
];
$this
->
course_id
=
$record
[
"course_id"
];
$this
->
media_id
=
$record
[
"media_id"
];
$this
->
is_free
=
$record
[
"is_free"
];
$this
->
money
=
$record
[
"money"
];
...
...
@@ -99,6 +101,7 @@ class UserMediaDat extends CompassDynamicData
$v_param
=
array
();
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"user_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"course_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"media_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"is_free"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"money"
);
...
...
src/cn/compass/entity/UserMst.inc
View file @
0e1222b8
<?php
/**
* UserMst Entity
* $Id: UserMst.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: UserMst.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
@@ -142,8 +142,8 @@ class UserMst extends CompassDynamicData
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"account_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"child_age"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"role"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"longitude"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"latitude"
);
ParamUtil
::
copyObj2Array
NullField
(
$v_param
,
$this
,
"longitude"
);
ParamUtil
::
copyObj2Array
NullField
(
$v_param
,
$this
,
"latitude"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"organization_submit_date"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"organization_no"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"organization_title"
);
...
...
src/cn/compass/entity/UserPointLog.inc
View file @
0e1222b8
<?php
/**
* UserPointLog Entity
* $Id: UserPointLog.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: UserPointLog.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/VolunteerEventDat.inc
View file @
0e1222b8
<?php
/**
* VolunteerEventDat Entity
* $Id: VolunteerEventDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: VolunteerEventDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
src/cn/compass/entity/VolunteerEventMemberDat.inc
View file @
0e1222b8
<?php
/**
* VolunteerEventMemberDat Entity
* $Id: VolunteerEventMemberDat.inc,v 1.1 2020/2/1
3 11:17:48
Exp $
* @author
lixq
* $Id: VolunteerEventMemberDat.inc,v 1.1 2020/2/1
4 16:39:17
Exp $
* @author
zb
* @package jp.compass.entity
* @access public
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment