add department db

pull/218/head
skiffer-git 3 years ago
parent 1d2d2b1c9c
commit f5684f2c45

@ -1 +1 @@
Subproject commit 7030e5dba7c9ec4c0afca7d8c1dabf26f0ca90d0
Subproject commit a4b710de8df31fe570fd90895887edef30f3a64c

@ -110,9 +110,9 @@ func initMysqlDB() {
fmt.Println("CreateTable Department")
db.CreateTable(&Department{})
}
if db.HasTable(&DepartmentUser{}) {
fmt.Println("CreateTable DepartmentUser")
db.CreateTable(&DepartmentUser{})
if db.HasTable(&OrganizationUser{}) {
fmt.Println("CreateTable OrganizationUser")
db.CreateTable(&OrganizationUser{})
}
if db.HasTable(&DepartmentMember{}) {
fmt.Println("CreateTable DepartmentMember")

Loading…
Cancel
Save