Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
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
ops
jumpserver
Commits
551d3df8
Commit
551d3df8
authored
Aug 12, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish table design
parent
b2bfdb09
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
126 additions
and
69 deletions
+126
-69
README.md
docs/README.md
+2
-3
project_structure.md
docs/project_structure.md
+42
-42
table_design.xml
docs/table_design.xml
+82
-24
No files found.
docs/README.md
View file @
551d3df8
## [代码规范](/jumpserver/jumpserver/blob/master/docs/code_style.md)
## [代码规范](/jumpserver/jumpserver/blob/master/docs/code_style.md)
## [项目结构](/jumpserver/jumpserver/blob/master/docs/project_structure.md)
## [项目结构](/jumpserver/jumpserver/blob/master/docs/project_structure.md)
\ No newline at end of file
docs/project_structure.md
View file @
551d3df8
## 项目骨架
## 项目骨架
说明如下:
说明如下:
```
```
.
.
├── config-example.py // 配置文件样例
├── config-example.py // 配置文件样例
├── docs // 所有doc文件放到该目录
├── docs // 所有doc文件放到该目录
│ └── README.md
│ └── README.md
├── LICENSE
├── LICENSE
├── README.md
├── README.md
├── install // 安装说明
├── install // 安装说明
├── logs // 日志目录
├── logs // 日志目录
├── dashboard // 管理后台目录,也是各app所在目录
├── dashboard // 管理后台目录,也是各app所在目录
│ └── assets // app目录
│ └── assets // app目录
│ │ ├── admin.py
│ │ ├── admin.py
│ │ ├── apps.py // 新版本django app设置文件
│ │ ├── apps.py // 新版本django app设置文件
│ │ ├── api.py // api文件
│ │ ├── api.py // api文件
│ │ ├── __init__.py
│ │ ├── __init__.py
│ │ ├── migrations // models Migrations版本控制目录
│ │ ├── migrations // models Migrations版本控制目录
│ │ │ └── __init__.py
│ │ │ └── __init__.py
│ │ ├── models.py // 数据模型目录
│ │ ├── models.py // 数据模型目录
│ │ ├── static // app下静态资源目录,如果需要
│ │ ├── static // app下静态资源目录,如果需要
│ │ │ └── assets // 多一层目录,防止资源重名
│ │ │ └── assets // 多一层目录,防止资源重名
│ │ │ └── some_image.png
│ │ │ └── some_image.png
│ │ ├── templates // app下模板目录
│ │ ├── templates // app下模板目录
│ │ │ └── assets // 多一层目录,防止资源重名
│ │ │ └── assets // 多一层目录,防止资源重名
│ │ │ └── asset_list.html
│ │ │ └── asset_list.html
│ │ ├── templatetags // 模板标签目录
│ │ ├── templatetags // 模板标签目录
│ │ ├── tests.py // 测试用例文件
│ │ ├── tests.py // 测试用例文件
│ │ ├── urls.py // urlconf文件
│ │ ├── urls.py // urlconf文件
│ │ ├── utils.py // 将views和api可复用的代码放在这里, api和views只是请求和返回不同
│ │ ├── utils.py // 将views和api可复用的代码放在这里, api和views只是请求和返回不同
│ │ └── views.py // views文件
│ │ └── views.py // views文件
│ ├── jumpserver // 项目设置目录
│ ├── jumpserver // 项目设置目录
│ │ ├── __init__.py
│ │ ├── __init__.py
│ │ ├── settings.py // 项目设置文件
│ │ ├── settings.py // 项目设置文件
│ │ ├── urls.py // 项目入口urlconf
│ │ ├── urls.py // 项目入口urlconf
│ │ └── wsgi.py
│ │ └── wsgi.py
│ ├── manage.py
│ ├── manage.py
│ ├── static // 项目静态资源目录
│ ├── static // 项目静态资源目录
│ └── templates
│ └── templates // 项目模板目录
\ No newline at end of file
```
docs/table_design.xml
View file @
551d3df8
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/?keyword=
default
-->
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/?keyword=
jumpserver
-->
<sql>
<sql>
<datatypes
db=
"mysql"
>
<datatypes
db=
"mysql"
>
<group
color=
"rgb(238,238,170)"
label=
"Numeric"
>
<group
color=
"rgb(238,238,170)"
label=
"Numeric"
>
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"
199"
y=
"429
"
name=
"role"
>
<table
x=
"
227"
y=
"430
"
name=
"role"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"
400"
y=
"98
"
name=
"usergroup"
>
<table
x=
"
399"
y=
"102
"
name=
"usergroup"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"1
79"
y=
"107
"
name=
"user_usergroup"
>
<table
x=
"1
59"
y=
"181
"
name=
"user_usergroup"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"
199"
y=
"586
"
name=
"permission"
>
<table
x=
"
220"
y=
"587
"
name=
"permission"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"
13"
y=
"587
"
name=
"cententtype"
>
<table
x=
"
28"
y=
"582
"
name=
"cententtype"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -179,7 +179,7 @@
...
@@ -179,7 +179,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"
12"
y=
"428
"
name=
"role_permission"
>
<table
x=
"
26"
y=
"426
"
name=
"role_permission"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -276,7 +276,7 @@
...
@@ -276,7 +276,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"12
87"
y=
"722
"
name=
"asset待定"
>
<table
x=
"12
78"
y=
"684
"
name=
"asset待定"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -290,7 +290,7 @@
...
@@ -290,7 +290,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"12
98"
y=
"391
"
name=
"idc"
>
<table
x=
"12
74"
y=
"387
"
name=
"idc"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -344,7 +344,7 @@
...
@@ -344,7 +344,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"1080"
y=
"
9
2"
name=
"assetgroup"
>
<table
x=
"1080"
y=
"
10
2"
name=
"assetgroup"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -361,7 +361,7 @@
...
@@ -361,7 +361,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"126
0"
y=
"86
"
name=
"asset_assetgroup"
>
<table
x=
"126
1"
y=
"101
"
name=
"asset_assetgroup"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -377,7 +377,7 @@
...
@@ -377,7 +377,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"12
81"
y=
"875
"
name=
"adminuser"
>
<table
x=
"12
72"
y=
"806
"
name=
"adminuser"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -412,7 +412,7 @@
...
@@ -412,7 +412,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"
663"
y=
"659
"
name=
"sysuser"
>
<table
x=
"
735"
y=
"578
"
name=
"sysuser"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -468,7 +468,7 @@
...
@@ -468,7 +468,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"873"
y=
"
656
"
name=
"asset_sysuser"
>
<table
x=
"873"
y=
"
572
"
name=
"asset_sysuser"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -484,7 +484,7 @@
...
@@ -484,7 +484,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"8
89"
y=
"886
"
name=
"taskhistory"
>
<table
x=
"8
70"
y=
"743
"
name=
"taskhistory"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -596,7 +596,7 @@
...
@@ -596,7 +596,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"87
7"
y=
"406
"
name=
"asset_perm"
>
<table
x=
"87
1"
y=
"414
"
name=
"asset_perm"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -612,7 +612,7 @@
...
@@ -612,7 +612,7 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"
401"
y=
"777
"
name=
"loginlog"
>
<table
x=
"
300"
y=
"756
"
name=
"loginlog"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
...
@@ -641,17 +641,14 @@
...
@@ -641,17 +641,14 @@
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
<table
x=
"
241"
y=
"792
"
name=
"adminlog"
>
<table
x=
"
139"
y=
"757
"
name=
"adminlog"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
<row
name=
"date_start"
null=
"1"
autoincrement=
"0"
>
<row
name=
"date_start"
null=
"1"
autoincrement=
"0"
>
<datatype>
DATETIME
</datatype>
<datatype>
DATETIME
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
<row
name=
"date_finished"
null=
"1"
autoincrement=
"0"
>
<row
name=
"username"
null=
"1"
autoincrement=
"0"
>
<datatype>
DATETIME
</datatype>
<default>
NULL
</default></row>
<row
name=
"user_name"
null=
"1"
autoincrement=
"0"
>
<datatype>
CHAR
</datatype>
<datatype>
CHAR
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
<row
name=
"resource"
null=
"1"
autoincrement=
"0"
>
<row
name=
"resource"
null=
"1"
autoincrement=
"0"
>
...
@@ -660,12 +657,73 @@
...
@@ -660,12 +657,73 @@
<row
name=
"action"
null=
"1"
autoincrement=
"0"
>
<row
name=
"action"
null=
"1"
autoincrement=
"0"
>
<datatype>
CHAR
</datatype>
<datatype>
CHAR
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
<row
name=
"new field"
null=
"1"
autoincrement=
"0"
>
<row
name=
"detail"
null=
"1"
autoincrement=
"0"
>
<datatype>
CHAR
</datatype>
<default>
NULL
</default></row>
<row
name=
"description"
null=
"1"
autoincrement=
"0"
>
<datatype>
CHAR
</datatype>
<default>
NULL
</default></row>
<key
type=
"PRIMARY"
name=
""
>
<part>
id
</part>
</key>
</table>
<table
x=
"473"
y=
"748"
name=
"proxylog"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<row
name=
"username"
null=
"1"
autoincrement=
"0"
>
<datatype>
CHAR
</datatype>
<default>
NULL
</default></row>
<row
name=
"hostname"
null=
"1"
autoincrement=
"0"
>
<datatype>
CHAR
</datatype>
<default>
NULL
</default></row>
<row
name=
"sysuser"
null=
"1"
autoincrement=
"0"
>
<datatype>
CHAR
</datatype>
<default>
NULL
</default></row>
<row
name=
"login_type"
null=
"1"
autoincrement=
"0"
>
<datatype>
CHAR
</datatype>
<default>
NULL
</default></row>
<row
name=
"refer_id"
null=
"1"
autoincrement=
"0"
>
<datatype>
INTEGER
</datatype>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<default>
NULL
</default></row>
<row
name=
"log_file"
null=
"1"
autoincrement=
"0"
>
<datatype>
CHAR
</datatype>
<default>
NULL
</default></row>
<row
name=
"login_ip"
null=
"1"
autoincrement=
"0"
>
<datatype>
VARCHAR
</datatype>
<default>
NULL
</default></row>
<row
name=
"login_city"
null=
"1"
autoincrement=
"0"
>
<datatype>
VARCHAR
</datatype>
<default>
NULL
</default></row>
<row
name=
"is_finished"
null=
"1"
autoincrement=
"0"
>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<row
name=
"date_start"
null=
"1"
autoincrement=
"0"
>
<datatype>
DATETIME
</datatype>
<default>
NULL
</default></row>
<row
name=
"date_finished"
null=
"1"
autoincrement=
"0"
>
<datatype>
DATETIME
</datatype>
<default>
NULL
</default></row>
<key
type=
"PRIMARY"
name=
""
>
<part>
id
</part>
</key>
</table>
<table
x=
"558"
y=
"569"
name=
"commandlog"
>
<row
name=
"id"
null=
"1"
autoincrement=
"1"
>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default></row>
<row
name=
"proxy_log"
null=
"1"
autoincrement=
"0"
>
<datatype>
INTEGER
</datatype>
<default>
NULL
</default><relation
table=
"proxylog"
row=
"id"
/>
</row>
<row
name=
"date_start"
null=
"1"
autoincrement=
"0"
>
<datatype>
DATE
</datatype>
<default>
NULL
</default></row>
<row
name=
"command"
null=
"1"
autoincrement=
"0"
>
<datatype>
CHAR
</datatype>
<default>
NULL
</default></row>
<key
type=
"PRIMARY"
name=
""
>
<key
type=
"PRIMARY"
name=
""
>
<part>
id
</part>
<part>
id
</part>
</key>
</key>
</table>
</table>
</sql>
</sql>
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