TimestampBehavior::class, 'value' => time() ] ]; } public static function tableName() { return '{{%product}}'; } public function rules() { return [ [['store_id', 'product_name',], 'required'], [['store_id', 'created_at', 'updated_at', 'is_delete', 'is_show'], 'integer'], [['product_name'], 'string', 'max' => 255], ]; } public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => '商城id', 'product_name' => '产品名称', 'created_at' => '创建时间', 'updated_at' => '更新时间', 'is_delete' => 'Is Delete', 'is_show' => '是否使用 0-禁止 1-使用', ]; } }