7 lines
415 B
MySQL
7 lines
415 B
MySQL
|
CREATE TABLE IF NOT EXISTS devices (
|
||
|
device_id CHAR(36) CONSTRAINT pk_devices PRIMARY KEY,
|
||
|
device_name VARCHAR(64) NOT NULL,
|
||
|
device_location VARCHAR(64),
|
||
|
creation_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||
|
update_date TIMESTAMP
|
||
|
);
|