19 lines
565 B
MySQL
19 lines
565 B
MySQL
|
CREATE TABLE `vn`.`supplierAddress`
|
||
|
(
|
||
|
id INT NULL AUTO_INCREMENT,
|
||
|
supplierFk INT NULL,
|
||
|
nickname VARCHAR(40) NULL,
|
||
|
street VARCHAR(255) NULL,
|
||
|
provinceFk SMALLINT(6) UNSIGNED NULL,
|
||
|
postalCode VARCHAR(10) NULL,
|
||
|
city VARCHAR(50) NULL,
|
||
|
phone VARCHAR(15) NULL,
|
||
|
mobile VARCHAR(15) NULL,
|
||
|
CONSTRAINT supplierAddress_pk
|
||
|
PRIMARY KEY (id),
|
||
|
CONSTRAINT supplierAddress_province_fk
|
||
|
FOREIGN KEY (provinceFk) REFERENCES province (id)
|
||
|
ON UPDATE CASCADE
|
||
|
);
|
||
|
|