changes to sms packages and option to create user
This commit is contained in:
@@ -11,43 +11,43 @@
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('person_types', function(Blueprint $table){
|
||||
Schema::create('person_types', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name',50);
|
||||
$table->string('description',125)->nullable();
|
||||
$table->string('name', 50);
|
||||
$table->string('description', 125)->nullable();
|
||||
$table->softDeletes();
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
|
||||
Schema::create('person_groups', function(Blueprint $table){
|
||||
Schema::create('person_groups', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name',50);
|
||||
$table->string('description',125)->nullable();
|
||||
$table->string('name', 50);
|
||||
$table->string('description', 125)->nullable();
|
||||
$table->string('color_tag', 50)->nullable();
|
||||
$table->softDeletes();
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
|
||||
Schema::create('phone_types', function(Blueprint $table){
|
||||
Schema::create('phone_types', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name',50);
|
||||
$table->string('description',125)->nullable();
|
||||
$table->string('name', 50);
|
||||
$table->string('description', 125)->nullable();
|
||||
$table->softDeletes();
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
|
||||
Schema::create('address_types', function(Blueprint $table){
|
||||
Schema::create('address_types', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name',50);
|
||||
$table->string('description',125)->nullable();
|
||||
$table->string('name', 50);
|
||||
$table->string('description', 125)->nullable();
|
||||
$table->softDeletes();
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
|
||||
|
||||
Schema::create('person', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->uuid('uuid')->unique();
|
||||
@@ -55,11 +55,11 @@ public function up(): void
|
||||
$table->string('first_name', 255)->nullable();
|
||||
$table->string('last_name', 255)->nullable();
|
||||
$table->string('full_name', 255)->nullable();
|
||||
$table->enum('gender', ['m','w'])->nullable();
|
||||
$table->enum('gender', ['m', 'w'])->nullable();
|
||||
$table->date('birthday')->nullable();
|
||||
$table->string('tax_number', 99)->nullable();
|
||||
$table->string('social_security_number',99)->nullable();
|
||||
$table->string('description',500)->nullable();
|
||||
$table->string('social_security_number', 99)->nullable();
|
||||
$table->string('description', 500)->nullable();
|
||||
$table->foreignId('group_id')->references('id')->on('person_groups');
|
||||
$table->foreignId('type_id')->references('id')->on('person_types');
|
||||
$table->unsignedTinyInteger('active')->default(1);
|
||||
@@ -68,12 +68,12 @@ public function up(): void
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('person_phones', function(Blueprint $table){
|
||||
Schema::create('person_phones', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nu',50);
|
||||
$table->string('nu', 50);
|
||||
$table->unsignedInteger('country_code')->nullable();
|
||||
$table->foreignId('type_id')->references('id')->on('phone_types');
|
||||
$table->string('description',125)->nullable();
|
||||
$table->string('description', 125)->nullable();
|
||||
$table->foreignIdFor(\App\Models\Person\Person::class);
|
||||
$table->unsignedTinyInteger('active')->default(1);
|
||||
$table->softDeletes();
|
||||
@@ -82,12 +82,12 @@ public function up(): void
|
||||
|
||||
});
|
||||
|
||||
Schema::create('person_addresses', function(Blueprint $table){
|
||||
Schema::create('person_addresses', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('address',150);
|
||||
$table->string('address', 150);
|
||||
$table->string('country')->nullable();
|
||||
$table->foreignId('type_id')->references('id')->on('address_types');
|
||||
$table->string('description',125)->nullable();
|
||||
$table->string('description', 125)->nullable();
|
||||
$table->foreignIdFor(\App\Models\Person\Person::class);
|
||||
$table->unsignedTinyInteger('active')->default(1);
|
||||
$table->softDeletes();
|
||||
|
||||
Reference in New Issue
Block a user