// Code generated by ent, DO NOT EDIT.

package order

const (
	// Label holds the string label denoting the order type in the database.
	Label = "order"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldMerchantID holds the string denoting the merchant_id field in the database.
	FieldMerchantID = "merchant_id"
	// FieldChannel holds the string denoting the channel field in the database.
	FieldChannel = "channel"
	// FieldPayWay holds the string denoting the pay_way field in the database.
	FieldPayWay = "pay_way"
	// FieldOutOrderNo holds the string denoting the out_order_no field in the database.
	FieldOutOrderNo = "out_order_no"
	// FieldTotalAmount holds the string denoting the total_amount field in the database.
	FieldTotalAmount = "total_amount"
	// FieldBody holds the string denoting the body field in the database.
	FieldBody = "body"
	// FieldOrderStatus holds the string denoting the order_status field in the database.
	FieldOrderStatus = "order_status"
	// FieldAuthCode holds the string denoting the auth_code field in the database.
	FieldAuthCode = "auth_code"
	// FieldWxAppid holds the string denoting the wx_appid field in the database.
	FieldWxAppid = "wx_appid"
	// FieldSubOpenid holds the string denoting the sub_openid field in the database.
	FieldSubOpenid = "sub_openid"
	// FieldJumpURL holds the string denoting the jump_url field in the database.
	FieldJumpURL = "jump_url"
	// FieldNotifyURL holds the string denoting the notify_url field in the database.
	FieldNotifyURL = "notify_url"
	// FieldClientIP holds the string denoting the client_ip field in the database.
	FieldClientIP = "client_ip"
	// FieldAttach holds the string denoting the attach field in the database.
	FieldAttach = "attach"
	// FieldOrderExpiration holds the string denoting the order_expiration field in the database.
	FieldOrderExpiration = "order_expiration"
	// FieldExtendParams holds the string denoting the extend_params field in the database.
	FieldExtendParams = "extend_params"
	// Table holds the table name of the order in the database.
	Table = "orders"
)

// Columns holds all SQL columns for order fields.
var Columns = []string{
	FieldID,
	FieldMerchantID,
	FieldChannel,
	FieldPayWay,
	FieldOutOrderNo,
	FieldTotalAmount,
	FieldBody,
	FieldOrderStatus,
	FieldAuthCode,
	FieldWxAppid,
	FieldSubOpenid,
	FieldJumpURL,
	FieldNotifyURL,
	FieldClientIP,
	FieldAttach,
	FieldOrderExpiration,
	FieldExtendParams,
}

// 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
}
