github.com/kunlun-qilian/sqlx/v3@v3.0.0/enummeta/sql_enum_meta.go (about)

     1  package enummeta
     2  
     3  import (
     4  	"github.com/kunlun-qilian/sqlx/v3/builder"
     5  )
     6  
     7  type SqlMetaEnum struct {
     8  	TName string `db:"F_table_name,size=64"`
     9  	CName string `db:"F_column_name,size=64"`
    10  	Value int    `db:"F_value"`
    11  	Type  string `db:"F_type,size=255"`
    12  	Key   string `db:"F_key,size=255"`
    13  	Label string `db:"F_label,size=255"`
    14  }
    15  
    16  func (*SqlMetaEnum) TableName() string {
    17  	return "t_sql_meta_enum"
    18  }
    19  
    20  func (*SqlMetaEnum) UniqueIndexes() builder.Indexes {
    21  	return builder.Indexes{"I_enum": {"TName", "CName", "Value"}}
    22  }