first commit

This commit is contained in:
2021-11-02 11:25:21 +01:00
commit 0c861770a8
2162 changed files with 178285 additions and 0 deletions

8
entity/command.go Normal file
View 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
View 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
View 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
View 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"`
}