#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @author jsbxyyx
# @since 1.0
from seata.rm.datasource.sql.struct.KeyType import KeyType


class Field(object):

    def __init__(self):
        self.name = None
        self.key_type = KeyType.NULL
        self.type = 0
        # any
        self.value = None

    def set_value(self, value):
        self.value = str(value)

    def __eq__(self, other):
        return self.__dict__ == other.__dict__
