Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace frontend\models;
- use Yii;
- /**
- * This is the model class for table "tarif_cargo".
- *
- * @property int $tcargo_id
- * @property string $service_id
- * @property string $origin
- * @property string $origin_name
- * @property string $destination
- * @property string $destination_name
- * @property double $rate
- * @property double $admin_fee
- * @property int $lead_time
- */
- class TarifCargo extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'tarif_cargo';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['rate', 'admin_fee'], 'number'],
- [['lead_time'], 'integer'],
- [['service_id'], 'string', 'max' => 20],
- [['origin', 'destination'], 'string', 'max' => 6],
- [['origin_name'], 'string', 'max' => 100],
- [['destination_name'], 'string', 'max' => 1000],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'tcargo_id' => 'Tcargo ID',
- 'service_id' => 'Service ID',
- 'origin' => 'Origin',
- 'origin_name' => 'Origin Name',
- 'destination' => 'Destination',
- 'destination_name' => 'Destination Name',
- 'rate' => 'Rate',
- 'admin_fee' => 'Admin Fee',
- 'lead_time' => 'Lead Time',
- ];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement