# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
#   * Rearrange models' order
#   * Make sure each model has one field with primary_key=True
#   * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
#   * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
from django.db import models


class TableAllDevCmdDefine(models.Model):
    id = models.AutoField(db_column='ID', primary_key=True)  # Field name made lowercase.
    cmd_name = models.TextField(db_column='CMD_NAME')  # Field name made lowercase.
    cmd_type = models.TextField(db_column='CMD_TYPE')  # Field name made lowercase.
    fieldindex = models.IntegerField(db_column='fieldIndex')  # Field name made lowercase.
    fieldname = models.TextField(db_column='fieldName')  # Field name made lowercase.
    fieldsize = models.IntegerField(db_column='fieldSize')  # Field name made lowercase.
    value = models.TextField()
    minvalue = models.TextField(db_column='minValue')  # Field name made lowercase.
    maxvalue = models.TextField(db_column='maxValue')  # Field name made lowercase.
    datatype = models.IntegerField(db_column='dataType')  # Field name made lowercase.
    operation_in = models.IntegerField()
    operation_in_num = models.IntegerField()
    operation_out = models.IntegerField()
    operation_out_num = models.IntegerField()
    operabo_in = models.IntegerField(db_column='operaBO_in')  # Field name made lowercase.
    operabo_out = models.IntegerField(db_column='operaBO_out')  # Field name made lowercase.
    lua_script_in = models.TextField(db_column='Lua_Script_in')  # Field name made lowercase.
    lua_script_out = models.TextField(db_column='Lua_Script_out')  # Field name made lowercase.

    class Meta:
        managed = False
        db_table = 'Table_ALL_DEV_CMD_DEFINE'


class TableDevCmdNamePoll(models.Model):
    id = models.AutoField(db_column='ID', primary_key=True)  # Field name made lowercase.
    protocol_name = models.TextField(db_column='PROTOCOL_NAME')  # Field name made lowercase.
    cmd_name = models.TextField(db_column='CMD_NAME')  # Field name made lowercase.
    cmd_type = models.TextField(db_column='CMD_TYPE')  # Field name made lowercase.
    encode = models.TextField(db_column='ENCODE')  # Field name made lowercase.
    timing_cmd_cycle_period = models.IntegerField(db_column='TIMING_CMD_CYCLE_PERIOD')  # Field name made lowercase.
    cmd_explain = models.TextField(db_column='CMD_EXPLAIN')  # Field name made lowercase.

    class Meta:
        managed = False
        db_table = 'Table_DEV_CMD_NAME_POLL'


class TableSoftLimitAngle(models.Model):
    id = models.AutoField(db_column='ID', primary_key=True)  # Field name made lowercase.
    sta_id = models.TextField(db_column='STA_ID')  # Field name made lowercase.
    dev_name = models.TextField(db_column='DEV_NAME')  # Field name made lowercase.
    dev_name_chn = models.TextField(db_column='DEV_NAME_CHN')  # Field name made lowercase.
    protocol_name = models.TextField(db_column='PROTOCOL_NAME')  # Field name made lowercase.
    pitch_soft_limit_angle = models.TextField(db_column='PITCH_SOFT_LIMIT_ANGLE')  # Field name made lowercase.
    remarks = models.TextField(db_column='REMARKS', null=True)  # Field name made lowercase.

    class Meta:
        managed = False
        db_table = 'Table_SOFT_LIMIT_ANGLE'


class TableXproAllDevinfo(models.Model):
    id = models.AutoField(db_column='ID', primary_key=True)  # Field name made lowercase.
    sta_id = models.TextField(db_column='STA_ID')  # Field name made lowercase.
    dev_id = models.IntegerField(db_column='DEV_ID')  # Field name made lowercase.
    dev_name = models.TextField(db_column='DEV_NAME')  # Field name made lowercase.
    dev_name_chn = models.TextField(db_column='DEV_NAME_CHN')  # Field name made lowercase.
    protocol_name = models.TextField(db_column='PROTOCOL_NAME')  # Field name made lowercase.
    cmd_excel_path = models.TextField(db_column='CMD_EXCEL_PATH')  # Field name made lowercase.
    comunitate_mode = models.TextField(db_column='COMUNITATE_MODE')  # Field name made lowercase.
    tcp_ip = models.TextField(db_column='TCP_IP')  # Field name made lowercase.
    tcp_port = models.IntegerField(db_column='TCP_PORT')  # Field name made lowercase.
    udp_ip_src = models.TextField(db_column='UDP_IP_SRC')  # Field name made lowercase.
    udp_port_src = models.IntegerField(db_column='UDP_PORT_SRC')  # Field name made lowercase.
    udp_ip_dst = models.TextField(db_column='UDP_IP_DST')  # Field name made lowercase.
    udp_port_dst = models.IntegerField(db_column='UDP_PORT_DST')  # Field name made lowercase.
    udpmc_ip = models.TextField(db_column='UDPMC_IP')  # Field name made lowercase.
    udpmc_ip_tx = models.TextField(db_column='UDPMC_IP_TX')  # Field name made lowercase.
    udpmc_port_tx = models.IntegerField(db_column='UDPMC_PORT_TX')  # Field name made lowercase.
    udpmc_ip_rx = models.TextField(db_column='UDPMC_IP_RX')  # Field name made lowercase.
    udpmc_port_rx = models.IntegerField(db_column='UDPMC_PORT_RX')  # Field name made lowercase.
    remarks = models.TextField(db_column='REMARKS')  # Field name made lowercase.

    class Meta:
        managed = False
        db_table = 'Table_XPRO_ALL_DEVINFO'
