Add ent autogenerated code

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
m.nabokikh
2021-01-02 00:34:47 +04:00
parent 11859166d0
commit 2e61860d5a
84 changed files with 39313 additions and 1 deletions

View File

@@ -0,0 +1,45 @@
// Code generated by entc, DO NOT EDIT.
package keys
const (
// Label holds the string label denoting the keys type in the database.
Label = "keys"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldVerificationKeys holds the string denoting the verification_keys field in the database.
FieldVerificationKeys = "verification_keys"
// FieldSigningKey holds the string denoting the signing_key field in the database.
FieldSigningKey = "signing_key"
// FieldSigningKeyPub holds the string denoting the signing_key_pub field in the database.
FieldSigningKeyPub = "signing_key_pub"
// FieldNextRotation holds the string denoting the next_rotation field in the database.
FieldNextRotation = "next_rotation"
// Table holds the table name of the keys in the database.
Table = "keys"
)
// Columns holds all SQL columns for keys fields.
var Columns = []string{
FieldID,
FieldVerificationKeys,
FieldSigningKey,
FieldSigningKeyPub,
FieldNextRotation,
}
// 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
}
var (
// IDValidator is a validator for the "id" field. It is called by the builders before save.
IDValidator func(string) error
)