/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
company: _attributes: { phpName: Company } id: { type: INTEGER, primaryKey: true, autoIncrement: true, required: true } name: { type: VARCHAR, size: 255, required: true } contact_id: { type: INTEGER, required: false } _foreignKeys: - foreignTable: contact onDelete: SET NULL references: - { local: contact_id, foreign: id }