# Country

# Beschreibung

Beinhaltet die Länder in welchen Placing-Me aktiv ist.

# altes country-Model

# old migration

CREATE TABLE `pyou_countries` (
    `country_uuid` varchar(36) NOT NULL,
    `country_id` MEDIUMINT NOT NULL,
    `country_code` varchar(5) DEFAULT NULL,
    `country_name` varchar(255) DEFAULT NULL,
    `country_alternative_name` varchar(255) DEFAULT NULL,
    `country_ts_create` timestamp NULL DEFAULT NULL,
    `country_ts_delete` timestamp NULL DEFAULT NULL,
    PRIMARY KEY (`country_uuid`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8;

# neues Address-Model

Anmerkung

  • 🆕
  • Functionality
  • Implementierung: ✅
  • Erweiterung:
  • kleinere Anpassungen

# Model (json)

{
    "class": "App\\Models\\Country",
    "database": "mysql",
    "table": "countries",
    "policy": null,
    "attributes": [
    {
    "name": "id",
    "type": "bigint unsigned",
    "increments": true,
    "nullable": false,
    "default": null,
    "unique": true,
    "fillable": true,
    "hidden": false,
    "appended": null,
    "cast": "int"
    },
    {
    "name": "country_code",
    "type": "string(255)",
    "increments": false,
    "nullable": false,
    "default": null,
    "unique": false,
    "fillable": true,
    "hidden": false,
    "appended": null,
    "cast": null
    },
    {
    "name": "name",
    "type": "string(255)",
    "increments": false,
    "nullable": false,
    "default": null,
    "unique": false,
    "fillable": true,
    "hidden": false,
    "appended": null,
    "cast": null
    },
    {
    "name": "created_at",
    "type": "datetime",
    "increments": false,
    "nullable": true,
    "default": null,
    "unique": false,
    "fillable": true,
    "hidden": false,
    "appended": null,
    "cast": "datetime"
    },
    {
    "name": "updated_at",
    "type": "datetime",
    "increments": false,
    "nullable": true,
    "default": null,
    "unique": false,
    "fillable": true,
    "hidden": false,
    "appended": null,
    "cast": "datetime"
    }
    ],
    "relations": [],
    "observers": []
}

# übergeordnetes Thema

2.6 Datenstruktur

Last Updated: 9/20/2023, 5:19:08 PM