AsusgTasktemplate.php 787 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace app\models\entity;
  3. use Yii;
  4. /**
  5. * This is the model class for table "asusg_tasktemplate".
  6. *
  7. * @property int $id
  8. * @property string $name
  9. */
  10. class AsusgTasktemplate extends \yii\db\ActiveRecord
  11. {
  12. /**
  13. * {@inheritdoc}
  14. */
  15. public static function tableName()
  16. {
  17. return 'asusg_tasktemplate';
  18. }
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public function rules()
  23. {
  24. return [
  25. [['name'], 'required'],
  26. [['name'], 'string', 'max' => 255],
  27. [['name'], 'unique'],
  28. ];
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function attributeLabels()
  34. {
  35. return [
  36. 'id' => 'ID',
  37. 'name' => 'Name',
  38. ];
  39. }
  40. }