contact props hint and comment update
This commit is contained in:
parent
90a9770a17
commit
0d06cce559
2 changed files with 11 additions and 3 deletions
|
|
@ -17,12 +17,12 @@ use Kwaadpepper\Enum\Traits\CastsEnums;
|
|||
* @property integer $app_user_id
|
||||
* @property string $id
|
||||
* @property string $email
|
||||
* @property string $lastname
|
||||
* @property string $firstname
|
||||
* @property string|null $lastname
|
||||
* @property string|null $firstname
|
||||
* @property string|null $phone
|
||||
* @property array<\App\Lib\Inputs\Definition\Input> $data
|
||||
* @property string|null $notes
|
||||
* @property array<array<string,string>>|null $visits
|
||||
* @property array<array<string,string>> $visits
|
||||
*/
|
||||
class Contact extends Model
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,6 +26,14 @@ class UpgradeContactsTable extends Migration
|
|||
* Keep columns, id, notes, visits, app_user_id
|
||||
*/
|
||||
Schema::table('contacts', function (Blueprint $table) {
|
||||
$table->string('email')->comment('Email du contact, Form Status: System')->change();
|
||||
$table->string('lastname')->nullable()->comment('Nom du contact, Form Status: Locked')->change();
|
||||
$table->string('firstname')->nullable()->comment('Prénom du contact, Form Status: Locked')->change();
|
||||
$table->string('phone')->nullable()->comment('Téléphone du contact, Form Status: Locked')->change();
|
||||
$table->string('notes')->nullable()->comment('Notes sur un contact')->change();
|
||||
$table->string('visits')->default('[]')
|
||||
->comment('Visite d\'un contact, Array<{title:string,note:string}>')->change();
|
||||
|
||||
$table->dropColumn('type');
|
||||
$table->dropColumn('other');
|
||||
$table->dropColumn('select1');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue