Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

80 righe
2.3 KiB

  1. <?php
  2. /**
  3. * 数据库表类 base_area
  4. * ============================================================================
  5. * * 版权所有 蜘蛛出行 * *
  6. * 网站地址: http://www.zhizhuchuxing.com
  7. * ----------------------------------------------------------------------------
  8. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
  9. * 使用;不允许对程序代码以任何形式任何目的的再发布。
  10. * ============================================================================
  11. * Author By: 倪宗锋
  12. * PhpStorm LoginController.php
  13. * Create By 2017/06/26 19:26 $
  14. */
  15. namespace common\models;
  16. use yii\db\ActiveRecord;
  17. /**
  18. * 数据库表类 base_area.
  19. * @property integer $ID
  20. * @property integer $PARENT_ID
  21. * @property integer $CANCEL_FLAG
  22. * @property integer $CREATE_USER_ID
  23. * @property string $CREATE_TIME
  24. * @property integer $UPDATE_USER_ID
  25. * @property string $UPDATE_TIME
  26. * @property string $AREA_NAME
  27. * @property string $POSTCODE
  28. * @property string $POI_TYPE
  29. * @property integer $POI_TYPE1
  30. * @property string $POI_TYPE2
  31. */
  32. class BaseArea extends ActiveRecord
  33. {
  34. /**
  35. * @inheritdoc
  36. */
  37. public static function tableName()
  38. {
  39. return 'base_area';
  40. }
  41. /**
  42. * @inheritdoc
  43. */
  44. public function rules()
  45. {
  46. return [
  47. [['ID', 'UPDATE_TIME', 'AREA_NAME'], 'required'],
  48. [['ID', 'PARENT_ID', 'CANCEL_FLAG', 'CREATE_USER_ID', 'UPDATE_USER_ID', 'POI_TYPE1'], 'integer'],
  49. [['CREATE_TIME', 'UPDATE_TIME', 'POSTCODE', 'POI_TYPE'], 'string', 'max' => 20],
  50. [['AREA_NAME'], 'string', 'max' => 100],
  51. [['POI_TYPE2'], 'string', 'max' => 255],
  52. ];
  53. }
  54. /**
  55. * @inheritdoc
  56. */
  57. public function attributeLabels()
  58. {
  59. return [
  60. 'ID' => 'ID',
  61. 'PARENT_ID' => 'Parent ID',
  62. 'CANCEL_FLAG' => 'Cancel Flag',
  63. 'CREATE_USER_ID' => 'Create User ID',
  64. 'CREATE_TIME' => 'Create Time',
  65. 'UPDATE_USER_ID' => 'Update User ID',
  66. 'UPDATE_TIME' => 'Update Time',
  67. 'AREA_NAME' => 'Area Name',
  68. 'POSTCODE' => 'Postcode',
  69. 'POI_TYPE' => 'Poi Type',
  70. 'POI_TYPE1' => 'Poi Type1',
  71. 'POI_TYPE2' => 'Poi Type2',
  72. ];
  73. }
  74. }