<filename>AutotestWebD/all_models/models/A0014_ui_testcase.py
# 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 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 __future__ import unicode_literals

from django.db import models
from all_models.models.A0001_user import *
from all_models.models.A0002_config import *
from all_models.models.A0003_attribute import *
from all_models.models.A0006_testcase import *
import django.utils.timezone
import datetime

class TbUiTestCase(models.Model):
    caseId = models.CharField(db_column='caseId', unique=True, default="", max_length=25, verbose_name="用例ID")
    title = models.CharField(max_length=100, verbose_name="用例标题")
    casedesc = models.CharField(max_length=1000, verbose_name="任务描述")
    businessLineId = models.IntegerField(db_column='businessLineId', default=1, verbose_name="业务线Id")
    moduleId = models.IntegerField(db_column='moduleId', default=1, verbose_name="模块Id")
    sourceId = models.IntegerField(db_column='sourceId', default=1, verbose_name="来源Id")
    caseLevel = models.IntegerField(db_column='caseLevel',default=5, verbose_name="优先级，数字越小，优先级越高，从0-9。 0高 5中 9低")

    status = models.IntegerField(default=2, verbose_name="状态，1新建待审核 2审核通过 3审核未通过")

    state = models.IntegerField(default=1, verbose_name="状态 0删除 1有效")
    addBy = models.CharField(max_length=25, db_column='addBy', null=True, blank=True, verbose_name="创建者登录名")
    modBy = models.CharField(max_length=25, db_column='modBy', null=True, verbose_name="修改者登录名")
    addTime = models.DateTimeField(db_column='addTime', auto_now_add=True, verbose_name="创建时间")
    modTime = models.DateTimeField(db_column='modTime', auto_now=True, verbose_name="修改时间")

    class Meta:
        db_table = 'tb_ui_testcase'

class TbUiTestCaseStep(models.Model):
    caseId = models.CharField(db_column='caseId', default="", max_length=25, verbose_name="用例ID")

    stepNum = models.IntegerField(db_column='stepNum',default=1, verbose_name="步骤编号，一个用例是从1开始递增")
    stepTitle = models.CharField(db_column='stepTitle',  default="", max_length=200, verbose_name="标题")
    stepDesc = models.CharField(db_column='stepDesc',  default="", max_length=2000, verbose_name="描述")
    specialTag = models.CharField(db_column='specialTag', default="", max_length=25, verbose_name="特殊标记")
    operate = models.CharField(db_column='operate', default="", max_length=100, verbose_name="操作关键字")
    params = models.TextField(db_column='params', default="", verbose_name="参数")

    status = models.IntegerField(default=2, verbose_name="状态，1新建待审核 2审核通过 3审核未通过")

    state = models.IntegerField(default=1, verbose_name="状态 0删除 1有效")
    addBy = models.CharField(max_length=25, db_column='addBy', null=True, blank=True, verbose_name="创建者登录名")
    modBy = models.CharField(max_length=25, db_column='modBy', null=True, verbose_name="修改者登录名")
    addTime = models.DateTimeField(db_column='addTime', auto_now_add=True, verbose_name="创建时间")
    modTime = models.DateTimeField(db_column='modTime', auto_now=True, verbose_name="修改时间")

    class Meta:
        db_table = 'tb_ui_testcase_step'

