diff --git a/cafe.cafe.xml b/cafe.cafe.xml index 423478d..baa2ead 100644 --- a/cafe.cafe.xml +++ b/cafe.cafe.xml @@ -1,4 +1,4 @@ - + diff --git a/columns.html b/columns.html index 54cf314..dd9a2b8 100644 --- a/columns.html +++ b/columns.html @@ -116,8 +116,36 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "price", - "type": "DECIMAL", + "name": "description", + "type": "TEXT", + "length": 65535, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, + { + "tableName": "user", + "tableFileName": "user", + "tableType": "Table", + "keyClass": "indexedColumn", + "keyTitle": "Indexed", + "name": "<\/i>email", + "type": "VARCHAR", + "length": 320, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, + { + "tableName": "order_product", + "tableFileName": "order_product", + "tableType": "Table", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>order_id", + "type": "INT UNSIGNED", "length": 10, "nullable": "", "autoUpdated": "", @@ -152,43 +180,15 @@

Columns

"defaultValue": "0", "comments": "

Whether token has been used once<\/p>" }, - { - "tableName": "order_product", - "tableFileName": "order_product", - "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "unit_price", - "type": "DECIMAL", - "length": 10, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

Unit price of product<\/p>" - }, - { - "tableName": "password_change_request", - "tableFileName": "password_change_request", - "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "expiry_date", - "type": "DATETIME", - "length": 19, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "" - }, { "tableName": "order_product", "tableFileName": "order_product", "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>cup_size", - "type": "enum('small', 'medium', 'large')", - "length": 6, + "name": "<\/i>milk_type", + "type": "enum('almond', 'coconut', 'oat', 'soy')", + "length": 7, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -198,11 +198,11 @@

Columns

"tableName": "user", "tableFileName": "user", "tableType": "Table", - "keyClass": "indexedColumn", - "keyTitle": "Indexed", - "name": "<\/i>email", + "keyClass": "", + "keyTitle": "", + "name": "first_name", "type": "VARCHAR", - "length": 320, + "length": 255, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -212,11 +212,11 @@

Columns

"tableName": "store", "tableFileName": "store", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>district_id", - "type": "INT UNSIGNED", - "length": 10, + "keyClass": "", + "keyTitle": "", + "name": "city", + "type": "VARCHAR", + "length": 255, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -228,9 +228,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "img_alt_text", + "name": "category", "type": "VARCHAR", - "length": 150, + "length": 50, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -242,24 +242,24 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "description", - "type": "TEXT", - "length": 65535, + "name": "created_date", + "type": "DATETIME", + "length": 19, "nullable": "", "autoUpdated": "", - "defaultValue": "null", + "defaultValue": "CURRENT_TIMESTAMP", "comments": "" }, { - "tableName": "client", - "tableFileName": "client", + "tableName": "comment", + "tableFileName": "comment", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "city", - "type": "VARCHAR", - "length": 255, - "nullable": "", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>parent_comment_id", + "type": "INT UNSIGNED", + "length": 10, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -270,7 +270,7 @@

Columns

"tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>store_id", + "name": "<\/i>product_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", @@ -282,13 +282,13 @@

Columns

"tableName": "product", "tableFileName": "product", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>product_id", - "type": "INT UNSIGNED", - "length": 10, + "keyClass": "", + "keyTitle": "", + "name": "name", + "type": "VARCHAR", + "length": 255, "nullable": "", - "autoUpdated": "√", + "autoUpdated": "", "defaultValue": "null", "comments": "" }, @@ -296,11 +296,11 @@

Columns

"tableName": "administrator", "tableFileName": "administrator", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>user_id", - "type": "INT UNSIGNED", - "length": 10, + "keyClass": "", + "keyTitle": "", + "name": "job_title", + "type": "VARCHAR", + "length": 255, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -312,13 +312,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "quantity", - "type": "INT UNSIGNED", + "name": "unit_price", + "type": "DECIMAL", "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

Unit price of product<\/p>" }, { "tableName": "user", @@ -326,7 +326,7 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "first_name", + "name": "password", "type": "VARCHAR", "length": 255, "nullable": "", @@ -335,12 +335,12 @@

Columns

"comments": "" }, { - "tableName": "client", - "tableFileName": "client", + "tableName": "comment", + "tableFileName": "comment", "tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>district_id", + "name": "<\/i>user_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", @@ -352,11 +352,11 @@

Columns

"tableName": "password_change_request", "tableFileName": "password_change_request", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>user_id", - "type": "INT UNSIGNED", - "length": 10, + "keyClass": "", + "keyTitle": "", + "name": "token_hash", + "type": "VARCHAR", + "length": 255, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -377,29 +377,15 @@

Columns

"comments": "

ID of review under which comment is found<\/p>" }, { - "tableName": "comment", - "tableFileName": "comment", + "tableName": "client", + "tableFileName": "client", "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>comment_id", + "name": "<\/i>user_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", - "autoUpdated": "√", - "defaultValue": "null", - "comments": "" - }, - { - "tableName": "comment", - "tableFileName": "comment", - "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "text", - "type": "VARCHAR", - "length": 2000, - "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -408,13 +394,13 @@

Columns

"tableName": "district", "tableFileName": "district", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>district_id", - "type": "INT UNSIGNED", - "length": 10, + "keyClass": "indexedColumn", + "keyTitle": "Indexed", + "name": "<\/i>name", + "type": "enum('Moka', 'Port Louis', 'Flacq', 'Curepipe', 'Black River', 'Savanne', 'Grand Port', 'Riviere du Rempart', 'Pamplemousses', 'Mahebourg', 'Plaines Wilhems')", + "length": 18, "nullable": "", - "autoUpdated": "√", + "autoUpdated": "", "defaultValue": "null", "comments": "" }, @@ -424,9 +410,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "token_hash", - "type": "VARCHAR", - "length": 255, + "name": "expiry_date", + "type": "DATETIME", + "length": 19, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -438,7 +424,7 @@

Columns

"tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>order_id", + "name": "<\/i>product_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", @@ -447,12 +433,12 @@

Columns

"comments": "" }, { - "tableName": "comment", - "tableFileName": "comment", + "tableName": "client", + "tableFileName": "client", "tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>user_id", + "name": "<\/i>district_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", @@ -461,16 +447,16 @@

Columns

"comments": "" }, { - "tableName": "order", - "tableFileName": "order", + "tableName": "product", + "tableFileName": "product", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>store_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>product_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", - "autoUpdated": "", + "autoUpdated": "√", "defaultValue": "null", "comments": "" }, @@ -480,7 +466,21 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "calories", + "name": "img_url", + "type": "VARCHAR", + "length": 255, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, + { + "tableName": "administrator", + "tableFileName": "administrator", + "tableType": "Table", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>user_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", @@ -494,9 +494,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "category", - "type": "VARCHAR", - "length": 50, + "name": "price", + "type": "DECIMAL", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -508,9 +508,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "img_url", + "name": "img_alt_text", "type": "VARCHAR", - "length": 255, + "length": 150, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -522,7 +522,7 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>client_id", + "name": "<\/i>product_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", @@ -536,7 +536,7 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "password", + "name": "phone_no", "type": "VARCHAR", "length": 255, "nullable": "", @@ -545,58 +545,44 @@

Columns

"comments": "" }, { - "tableName": "district", - "tableFileName": "district", - "tableType": "Table", - "keyClass": "indexedColumn", - "keyTitle": "Indexed", - "name": "<\/i>name", - "type": "enum('Moka', 'Port Louis', 'Flacq', 'Curepipe', 'Black River', 'Savanne', 'Grand Port', 'Riviere du Rempart', 'Pamplemousses', 'Mahebourg', 'Plaines Wilhems')", - "length": 18, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "" - }, - { - "tableName": "store_product", - "tableFileName": "store_product", + "tableName": "order", + "tableFileName": "order", "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>product_id", + "name": "<\/i>order_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", - "autoUpdated": "", + "autoUpdated": "√", "defaultValue": "null", "comments": "" }, { - "tableName": "administrator", - "tableFileName": "administrator", + "tableName": "store_product", + "tableFileName": "store_product", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "is_super_admin", - "type": "BIT", - "length": 1, + "name": "stock_level", + "type": "INT UNSIGNED", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "0", "comments": "" }, { - "tableName": "client", - "tableFileName": "client", + "tableName": "district", + "tableFileName": "district", "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>user_id", + "name": "<\/i>district_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", - "autoUpdated": "", + "autoUpdated": "√", "defaultValue": "null", "comments": "" }, @@ -606,12 +592,26 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "created_date", - "type": "DATETIME", - "length": 19, + "name": "text", + "type": "VARCHAR", + "length": 2000, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_TIMESTAMP", + "defaultValue": "null", + "comments": "" + }, + { + "tableName": "client", + "tableFileName": "client", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", + "name": "street", + "type": "VARCHAR", + "length": 255, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", "comments": "" }, { @@ -620,12 +620,12 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "created_date", - "type": "DATETIME", - "length": 19, + "name": "text", + "type": "VARCHAR", + "length": 2000, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_TIMESTAMP", + "defaultValue": "null", "comments": "" }, { @@ -634,10 +634,10 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>client_id", + "name": "<\/i>store_id", "type": "INT UNSIGNED", "length": 10, - "nullable": "√", + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -648,7 +648,7 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "phone_no", + "name": "street", "type": "VARCHAR", "length": 255, "nullable": "", @@ -660,11 +660,11 @@

Columns

"tableName": "review", "tableFileName": "review", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "text", - "type": "VARCHAR", - "length": 2000, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>client_id", + "type": "INT UNSIGNED", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -674,51 +674,37 @@

Columns

"tableName": "store", "tableFileName": "store", "tableType": "Table", - "keyClass": "indexedColumn", - "keyTitle": "Indexed", - "name": "<\/i>coordinate", - "type": "GEOMETRY", - "length": 65535, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "" - }, - { - "tableName": "comment", - "tableFileName": "comment", - "tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>parent_comment_id", + "name": "<\/i>district_id", "type": "INT UNSIGNED", "length": 10, - "nullable": "√", + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "store", - "tableFileName": "store", + "tableName": "client", + "tableFileName": "client", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>store_id", - "type": "INT UNSIGNED", - "length": 10, + "keyClass": "", + "keyTitle": "", + "name": "city", + "type": "VARCHAR", + "length": 255, "nullable": "", - "autoUpdated": "√", + "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "user", - "tableFileName": "user", + "tableName": "store", + "tableFileName": "store", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "last_name", + "name": "phone_no", "type": "VARCHAR", "length": 255, "nullable": "", @@ -727,12 +713,12 @@

Columns

"comments": "" }, { - "tableName": "order", - "tableFileName": "order", + "tableName": "comment", + "tableFileName": "comment", "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>order_id", + "name": "<\/i>comment_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", @@ -740,32 +726,46 @@

Columns

"defaultValue": "null", "comments": "" }, + { + "tableName": "order", + "tableFileName": "order", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", + "name": "status", + "type": "enum('pending', 'cancelled', 'completed')", + "length": 9, + "nullable": "", + "autoUpdated": "", + "defaultValue": "pending", + "comments": "" + }, { "tableName": "password_change_request", "tableFileName": "password_change_request", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>request_id", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>user_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", - "autoUpdated": "√", + "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "client", - "tableFileName": "client", + "tableName": "comment", + "tableFileName": "comment", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "street", - "type": "VARCHAR", - "length": 255, + "name": "created_date", + "type": "DATETIME", + "length": 19, "nullable": "", "autoUpdated": "", - "defaultValue": "null", + "defaultValue": "CURRENT_TIMESTAMP", "comments": "" }, { @@ -774,9 +774,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "name", - "type": "VARCHAR", - "length": 255, + "name": "calories", + "type": "INT UNSIGNED", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -786,11 +786,11 @@

Columns

"tableName": "order_product", "tableFileName": "order_product", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>milk_type", - "type": "enum('almond', 'coconut', 'oat', 'soy')", - "length": 7, + "keyClass": "", + "keyTitle": "", + "name": "quantity", + "type": "INT UNSIGNED", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -800,15 +800,15 @@

Columns

"tableName": "order", "tableFileName": "order", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "pickup_date", - "type": "DATETIME", - "length": 19, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>client_id", + "type": "INT UNSIGNED", + "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

Date when client picks up his order at the store<\/p>" + "comments": "" }, { "tableName": "order", @@ -816,12 +816,12 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "status", - "type": "enum('pending', 'cancelled', 'completed')", - "length": 9, + "name": "created_date", + "type": "DATETIME", + "length": 19, "nullable": "", "autoUpdated": "", - "defaultValue": "pending", + "defaultValue": "CURRENT_TIMESTAMP", "comments": "" }, { @@ -830,7 +830,7 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "phone_no", + "name": "last_name", "type": "VARCHAR", "length": 255, "nullable": "", @@ -839,31 +839,31 @@

Columns

"comments": "" }, { - "tableName": "review", - "tableFileName": "review", + "tableName": "password_change_request", + "tableFileName": "password_change_request", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>product_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>request_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", - "autoUpdated": "", + "autoUpdated": "√", "defaultValue": "null", "comments": "" }, { - "tableName": "product", - "tableFileName": "product", + "tableName": "store", + "tableFileName": "store", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "created_date", - "type": "DATETIME", - "length": 19, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>store_id", + "type": "INT UNSIGNED", + "length": 10, "nullable": "", - "autoUpdated": "", - "defaultValue": "CURRENT_TIMESTAMP", + "autoUpdated": "√", + "defaultValue": "null", "comments": "" }, { @@ -872,40 +872,40 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "job_title", - "type": "VARCHAR", - "length": 255, + "name": "is_super_admin", + "type": "BIT", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "null", + "defaultValue": "0", "comments": "" }, { "tableName": "store", "tableFileName": "store", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "street", - "type": "VARCHAR", - "length": 255, + "keyClass": "indexedColumn", + "keyTitle": "Indexed", + "name": "<\/i>coordinate", + "type": "GEOMETRY", + "length": 65535, "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "store_product", - "tableFileName": "store_product", + "tableName": "review", + "tableFileName": "review", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "stock_level", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>review_id", "type": "INT UNSIGNED", "length": 10, "nullable": "", - "autoUpdated": "", - "defaultValue": "0", + "autoUpdated": "√", + "defaultValue": "null", "comments": "" }, { @@ -914,9 +914,9 @@

Columns

"tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>product_id", - "type": "INT UNSIGNED", - "length": 10, + "name": "<\/i>cup_size", + "type": "enum('small', 'medium', 'large')", + "length": 6, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -928,23 +928,23 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "created_date", + "name": "pickup_date", "type": "DATETIME", "length": 19, - "nullable": "", + "nullable": "√", "autoUpdated": "", - "defaultValue": "CURRENT_TIMESTAMP", - "comments": "" + "defaultValue": "null", + "comments": "

Date when client picks up his order at the store<\/p>" }, { - "tableName": "store", - "tableFileName": "store", + "tableName": "store_product", + "tableFileName": "store_product", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "city", - "type": "VARCHAR", - "length": 255, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>store_id", + "type": "INT UNSIGNED", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -954,13 +954,13 @@

Columns

"tableName": "review", "tableFileName": "review", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>review_id", + "keyClass": "", + "keyTitle": "", + "name": "rating", "type": "INT UNSIGNED", "length": 10, "nullable": "", - "autoUpdated": "√", + "autoUpdated": "", "defaultValue": "null", "comments": "" }, @@ -970,12 +970,12 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "rating", - "type": "INT UNSIGNED", - "length": 10, + "name": "created_date", + "type": "DATETIME", + "length": 19, "nullable": "", "autoUpdated": "", - "defaultValue": "null", + "defaultValue": "CURRENT_TIMESTAMP", "comments": "" } ]; diff --git a/constraints.html b/constraints.html index 8377dea..637fe76 100644 --- a/constraints.html +++ b/constraints.html @@ -302,11 +302,11 @@

16 Foreign Key Constraints

- + @@ -317,79 +317,79 @@

16 Foreign Key Constraints

Restrict delete
client_fkcomment_user_user_id_fk - +
client.user_idcomment.user_id
- Cascade on delete + Restrict delete - client_district_district_id_fk + comment_review_review_id_fk - +
client.district_idcomment.review_id
- +
district.district_idreview.review_id
Restrict delete - comment_user_user_id_fk + comment_comment_comment_id_fk - +
comment.user_idcomment.parent_comment_id
- +
user.user_idcomment.comment_id
- Restrict delete + Cascade on delete - comment_review_review_id_fk + client_fk - +
comment.review_idclient.user_id
- +
review.review_iduser.user_id
- Restrict delete + Cascade on delete - comment_comment_comment_id_fk + client_district_district_id_fk - +
comment.parent_comment_idclient.district_id
- +
comment.comment_iddistrict.district_id
- Cascade on delete + Restrict delete diff --git a/diagrams/summary/relationships.real.compact.dot b/diagrams/summary/relationships.real.compact.dot index 4f54197..04e5789 100644 --- a/diagrams/summary/relationships.real.compact.dot +++ b/diagrams/summary/relationships.real.compact.dot @@ -132,19 +132,6 @@ digraph "compactRelationshipsDiagram" { target="_top" tooltip="user" ]; - "client" [ - label=< - - - - - - -
client[table]
user_id
district_id
...
< 20 rows2 >
> - URL="../../tables/client.html" - target="_top" - tooltip="client" - ]; "comment" [ label=< @@ -160,6 +147,19 @@ digraph "compactRelationshipsDiagram" { target="_top" tooltip="comment" ]; + "client" [ + label=< +
+ + + + + +
client[table]
user_id
district_id
...
< 20 rows2 >
> + URL="../../tables/client.html" + target="_top" + tooltip="client" + ]; "administrator":"user_id":w -> "user":"user_id":e [arrowhead=none dir=back arrowtail=teeodot]; "client":"district_id":w -> "district":"district_id":e [arrowhead=none dir=back arrowtail=crowodot]; "client":"user_id":w -> "user":"user_id":e [arrowhead=none dir=back arrowtail=teeodot]; diff --git a/diagrams/summary/relationships.real.compact.svg b/diagrams/summary/relationships.real.compact.svg index 68fb43c..11b6648 100644 --- a/diagrams/summary/relationships.real.compact.svg +++ b/diagrams/summary/relationships.real.compact.svg @@ -175,9 +175,9 @@ - + client - + @@ -421,25 +421,10 @@ - - -client:w->district:e - - - - - - -client:w->user:e - - - - - - + comment - + @@ -495,5 +480,20 @@ + + +client:w->district:e + + + + + + +client:w->user:e + + + + + diff --git a/diagrams/summary/relationships.real.large.dot b/diagrams/summary/relationships.real.large.dot index 323cde5..b161458 100644 --- a/diagrams/summary/relationships.real.large.dot +++ b/diagrams/summary/relationships.real.large.dot @@ -152,20 +152,6 @@ digraph "largeRelationshipsDiagram" { target="_top" tooltip="user" ]; - "client" [ - label=< - - - - - - - -
client[table]
user_id
street
city
district_id
< 20 rows2 >
> - URL="../../tables/client.html" - target="_top" - tooltip="client" - ]; "comment" [ label=< @@ -182,6 +168,20 @@ digraph "largeRelationshipsDiagram" { target="_top" tooltip="comment" ]; + "client" [ + label=< +
+ + + + + + +
client[table]
user_id
street
city
district_id
< 20 rows2 >
> + URL="../../tables/client.html" + target="_top" + tooltip="client" + ]; "administrator":"user_id":w -> "user":"user_id":e [arrowhead=none dir=back arrowtail=teeodot]; "client":"district_id":w -> "district":"district_id":e [arrowhead=none dir=back arrowtail=crowodot]; "client":"user_id":w -> "user":"user_id":e [arrowhead=none dir=back arrowtail=teeodot]; diff --git a/diagrams/summary/relationships.real.large.svg b/diagrams/summary/relationships.real.large.svg index 60a58af..0fb7109 100644 --- a/diagrams/summary/relationships.real.large.svg +++ b/diagrams/summary/relationships.real.large.svg @@ -191,43 +191,43 @@ - + client -
- - - -client -[table] - - -user_id - -street - -city - - - -district_id - - -< 2 - - -0 rows - - -2 > + + + + +client +[table] + + +user_id + +street + +city + + + +district_id + + +< 2 + + +0 rows + + +2 > order:w->client:e - - - + + + @@ -360,16 +360,16 @@ review:w->product:e - - - + + + review:w->client:e - - - + + + @@ -459,29 +459,14 @@ order_product:w->product:e - - - - - - -client:w->district:e - - - - - - -client:w->user:e - - - - + + + - + comment - + @@ -539,5 +524,20 @@ + + +client:w->district:e + + + + + + +client:w->user:e + + + + + diff --git a/index.html b/index.html index f3adf22..ebacfa9 100644 --- a/index.html +++ b/index.html @@ -78,7 +78,7 @@

Tables


SchemaSpy Analysis of cafe.cafe

-

Generated on Sat Jun 08 09:54 UTC 2024

+

Generated on Wed Oct 09 15:45 UTC 2024

@@ -168,7 +168,7 @@

Database Properties

-

Database Type: MySQL - 8.0.36-0ubuntu0.22.04.1

+

Database Type: MySQL - 8.0.39-0ubuntu0.22.04.1

@@ -287,19 +287,19 @@

Tables

-
client - 2 - 2 - 4 + comment + 1 + 3 + 6 0 Table - comment - 1 - 3 - 6 + client + 2 + 2 + 4 0 Table diff --git a/info-html.txt b/info-html.txt index 99c6eea..e4b5e4f 100644 --- a/info-html.txt +++ b/info-html.txt @@ -1,5 +1,5 @@ -date=2024-06-08 09:54:27+0000 -os=Linux 6.5.0-1021-azure +date=2024-10-09 15:45:22+0000 +os=Linux 6.5.0-1025-azure schemaspy-version=6.2.4 schemaspy-build=6.2.4.41 2023-07-21 11:15:12 renderer=Viz.js 1.7.1 (Graphviz 2.40.1, Expat 2.1.0, Emscripten 1.37.9)