initial commit

This commit is contained in:
maurice fletgen
2022-09-08 09:18:04 +02:00
commit 447b2fb51d
163 changed files with 47569 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
// Code generated by ent, DO NOT EDIT.
package authorizables
const (
// Label holds the string label denoting the authorizables type in the database.
Label = "authorizables"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldUsername holds the string denoting the username field in the database.
FieldUsername = "username"
// FieldPassword holds the string denoting the password field in the database.
FieldPassword = "password"
// FieldServerid holds the string denoting the serverid field in the database.
FieldServerid = "serverid"
// FieldUserid holds the string denoting the userid field in the database.
FieldUserid = "userid"
// Table holds the table name of the authorizables in the database.
Table = "authorizables"
)
// Columns holds all SQL columns for authorizables fields.
var Columns = []string{
FieldID,
FieldUsername,
FieldPassword,
FieldServerid,
FieldUserid,
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
return false
}