ReadRecord.php 602 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Modules\Book\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Support\Facades\DB;
  5. class ReadRecord extends Model
  6. {
  7. use TableSuffix;
  8. protected $connection = 'read_record_mysql';
  9. protected $table = 'record_records';
  10. protected $fillable = [
  11. 'distribution_channel_id',
  12. 'bid',
  13. 'cid',
  14. 'uid',
  15. 'send_order_id',
  16. 'from',
  17. 'attach',
  18. 'sequence',
  19. ];
  20. public static function model(int $number)
  21. {
  22. self::suffix($number);
  23. $model = new self;
  24. return $model;
  25. }
  26. }