Activity.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. namespace addons\LsActivity\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "rf_addon_activity_notice".
  6. *
  7. * @property int $id 序号
  8. * @property string|null $title 标题
  9. * @property string|null $cover 封面
  10. * @property string|null $seo_content seo内容
  11. * @property string|null $description 描述
  12. * @property string|null $seo_key seo关键字
  13. * @property string|null $content 文章内容
  14. * @property int|null $view 浏览量
  15. * @property int|null $sort 优先级
  16. * @property int|null $check_max 报名人数限制
  17. * @property int|null $check 已报名人数
  18. * @property string|null $author 作者
  19. * @property int|null $status 状态
  20. * @property string|null $created_at 创建时间
  21. * @property string|null $updated_at 更新时间
  22. */
  23. class Activity extends \yii\db\ActiveRecord
  24. {
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public static function tableName()
  29. {
  30. return 'rf_addon_activity_notice';
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['view', 'sort', 'check_max', 'check', 'status'], 'integer'],
  39. [['created_at', 'updated_at'], 'safe'],
  40. [['title'], 'string', 'max' => 30],
  41. [['cover'], 'string', 'max' => 100],
  42. [['seo_content'], 'string', 'max' => 1000],
  43. [['description', 'content', 'author'], 'string', 'max' => 255],
  44. [['seo_key'], 'string', 'max' => 50],
  45. ];
  46. }
  47. /**
  48. * {@inheritdoc}
  49. */
  50. public function attributeLabels()
  51. {
  52. return [
  53. 'id' => '序号',
  54. 'title' => '标题',
  55. 'cover' => '封面',
  56. 'seo_content' => 'seo内容',
  57. 'description' => '描述',
  58. 'seo_key' => 'seo关键字',
  59. 'content' => '文章内容',
  60. 'view' => '浏览量',
  61. 'sort' => '优先级',
  62. 'check_max' => '报名人数限制',
  63. 'check' => '已报名人数',
  64. 'author' => '作者',
  65. 'status' => '状态',
  66. 'created_at' => '创建时间',
  67. 'updated_at' => '更新时间',
  68. ];
  69. }
  70. }
粤ICP备19079148号