feat(Import members from Dolibarr)
This commit is contained in:
@@ -11,13 +11,16 @@ use Illuminate\Notifications\Notifiable;
|
||||
/**
|
||||
* @property int $id
|
||||
* @property int|null $user_id
|
||||
* @property string|null $dolibarr_id
|
||||
* @property string|null $keycloak_id
|
||||
* @property string $status
|
||||
* @property string $nature
|
||||
* @property int|null $type_id
|
||||
* @property int|null $group_id
|
||||
* @property string|null $lastname
|
||||
* @property string|null $firstname
|
||||
* @property string $email
|
||||
* @property string|null $retzien_email
|
||||
* @property string|null $company
|
||||
* @property string|null $date_of_birth
|
||||
* @property string|null $address
|
||||
@@ -27,6 +30,7 @@ use Illuminate\Notifications\Notifiable;
|
||||
* @property string|null $phone1
|
||||
* @property string|null $phone2
|
||||
* @property int $public_membership
|
||||
* @property string|null $website_url
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property string|null $deleted_at
|
||||
@@ -34,6 +38,8 @@ use Illuminate\Notifications\Notifiable;
|
||||
* @property-read \App\Models\MemberGroup|null $group
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Membership> $memberships
|
||||
* @property-read int|null $memberships_count
|
||||
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
|
||||
* @property-read int|null $notifications_count
|
||||
* @property-read \App\Models\User|null $user
|
||||
* @method static \Database\Factories\MemberFactory factory($count = null, $state = [])
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member newModelQuery()
|
||||
@@ -46,6 +52,7 @@ use Illuminate\Notifications\Notifiable;
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereDateOfBirth($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereDeletedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereDolibarrId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereEmail($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereFirstname($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereGroupId($value)
|
||||
@@ -56,9 +63,12 @@ use Illuminate\Notifications\Notifiable;
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member wherePhone1($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member wherePhone2($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member wherePublicMembership($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereRetzienEmail($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereStatus($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereTypeId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereUserId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereWebsiteUrl($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Member whereZipcode($value)
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
@@ -67,9 +77,11 @@ class Member extends Model
|
||||
use HasFactory, Notifiable;
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'dolibarr_id',
|
||||
'keycloak_id',
|
||||
'status',
|
||||
'nature',
|
||||
'type_id',
|
||||
'group_id',
|
||||
'lastname',
|
||||
'firstname',
|
||||
@@ -83,9 +95,7 @@ class Member extends Model
|
||||
'phone1',
|
||||
'phone2',
|
||||
'public_membership',
|
||||
'package_id',
|
||||
'amount',
|
||||
'payment_status'
|
||||
'website_url'
|
||||
];
|
||||
|
||||
public static function getAttributeLabel(string $attribute): string
|
||||
|
||||
Reference in New Issue
Block a user