Skip to content

Commit

Permalink
Merge pull request #31 from Cairry/master
Browse files Browse the repository at this point in the history
update docs
  • Loading branch information
Cairry authored Apr 30, 2024
2 parents 4a4d2e9 + b9dc7d0 commit acaa612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
> rule_templates.sql: 告警规则模版
>
> user_roles.sql: 用户角色
>
> tenants.sql: 租户
```shell
# mysql -h xxx:3306 -u root -pw8t.123 --default-character-set=utf8mb4 -D watchalert < notice_template_examples.sql
# mysql -h xxx:3306 -u root -pw8t.123 --default-character-set=utf8mb4 -D watchalert < rule_template_groups.sql
# mysql -h xxx:3306 -u root -pw8t.123 --default-character-set=utf8mb4 -D watchalert < rule_templates.sql
# mysql -h xxx:3306 -u root -pw8t.123 --default-character-set=utf8mb4 -D watchalert < user_roles.sql
# mysql -h xxx:3306 -u root -pw8t.123 --default-character-set=utf8mb4 -D watchalert < tenants.sql
```
1 change: 1 addition & 0 deletions deploy/sql/tenants.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INSERT INTO `tenants` (`id`, `name`, `create_at`, `create_by`, `manager`, `description`, `mark`, `user_number`, `rule_number`, `duty_number`, `notice_number`, `remove_protection`) VALUES ('tid-co4iic3adq7a2jjeas90', 'default', 1711876400, 'system', 'admin', 'default 租户', NULL, 999, 999, 999, 999, 1);

0 comments on commit acaa612

Please sign in to comment.