oceanbase

Форк
0
32 строки · 1.6 Кб
1
// Code generated by entc, DO NOT EDIT.
2

3
package ent
4

5
import (
6
	"time"
7

8
	"github.com/oceanbase/configserver/ent/obcluster"
9
	"github.com/oceanbase/configserver/ent/schema"
10
)
11

12
// The init function reads all schema descriptors with runtime code
13
// (default values, validators, hooks and policies) and stitches it
14
// to their package variables.
15
func init() {
16
	obclusterFields := schema.ObCluster{}.Fields()
17
	_ = obclusterFields
18
	// obclusterDescCreateTime is the schema descriptor for create_time field.
19
	obclusterDescCreateTime := obclusterFields[0].Descriptor()
20
	// obcluster.DefaultCreateTime holds the default value on creation for the create_time field.
21
	obcluster.DefaultCreateTime = obclusterDescCreateTime.Default.(func() time.Time)
22
	// obclusterDescUpdateTime is the schema descriptor for update_time field.
23
	obclusterDescUpdateTime := obclusterFields[1].Descriptor()
24
	// obcluster.DefaultUpdateTime holds the default value on creation for the update_time field.
25
	obcluster.DefaultUpdateTime = obclusterDescUpdateTime.Default.(func() time.Time)
26
	// obcluster.UpdateDefaultUpdateTime holds the default value on update for the update_time field.
27
	obcluster.UpdateDefaultUpdateTime = obclusterDescUpdateTime.UpdateDefault.(func() time.Time)
28
	// obclusterDescObClusterID is the schema descriptor for ob_cluster_id field.
29
	obclusterDescObClusterID := obclusterFields[3].Descriptor()
30
	// obcluster.ObClusterIDValidator is a validator for the "ob_cluster_id" field. It is called by the builders before save.
31
	obcluster.ObClusterIDValidator = obclusterDescObClusterID.Validators[0].(func(int64) error)
32
}
33

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.