Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System log DB規劃 #39

Closed
puckwang opened this issue May 6, 2019 · 2 comments
Closed

System log DB規劃 #39

puckwang opened this issue May 6, 2019 · 2 comments
Assignees
Milestone

Comments

@puckwang
Copy link
Member

puckwang commented May 6, 2019

screenshot 2019-05-06 下午4 20 35

目前規劃如下
https://dbdiagram.io/d/5ccfdba1f7c5bb70c72fe102

Table system_logs {
  id integer [pk]
  user_id integer [ref: > users.id]
  type_id integer [ref: > system_log_types.id]//操作類型 e.g.器材相關,工人相關這類的。
  content varchar //操作內容 
  ip varchar
  device varchar
  browser varchar
  created_at datetime
}

Table system_log_types {
  id integer [pk]
  name varchar
  created_at datetime
}

Table users { //現有的 User table
  id integer [primary key]
  name varchar
  email varchar
  "..." varchar
}
@hashman
Copy link
Collaborator

hashman commented May 6, 2019

LGTM

@hashman
Copy link
Collaborator

hashman commented May 16, 2019

這個就 close 掉了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants