first commit
This commit is contained in:
8
entity/command.go
Normal file
8
entity/command.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package entity
|
||||
|
||||
type Command struct {
|
||||
Id uint `gorm:"primaryKey"`
|
||||
Name string
|
||||
Description string
|
||||
Cron []Cron `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
|
||||
}
|
16
entity/config.go
Normal file
16
entity/config.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package entity
|
||||
|
||||
type Config struct {
|
||||
Id string `gorm:"primaryKey`
|
||||
Title string
|
||||
Value string
|
||||
Defaultvalue string
|
||||
Roworder int
|
||||
Visible bool
|
||||
Changeable bool
|
||||
Required bool
|
||||
Typefield string
|
||||
Grouped string
|
||||
Category string
|
||||
Help string
|
||||
}
|
12
entity/cron.go
Normal file
12
entity/cron.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package entity
|
||||
|
||||
type Cron struct {
|
||||
Id uint `gorm:"primaryKey`
|
||||
Every string
|
||||
Arg01 string
|
||||
Arg02 string
|
||||
Arg03 string
|
||||
Arg04 string
|
||||
Arg05 string
|
||||
CommandId uint
|
||||
}
|
14
entity/user.go
Normal file
14
entity/user.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package entity
|
||||
|
||||
type User struct {
|
||||
Id uint `gorm:"primaryKey`
|
||||
Login string `gorm:"unique"`
|
||||
Firstname string
|
||||
Lastname string
|
||||
Email string `gorm:"unique"`
|
||||
Avatar string
|
||||
Role int
|
||||
Password string
|
||||
Salt []byte
|
||||
Apikey string `gorm:"unique"`
|
||||
}
|
Reference in New Issue
Block a user