PKGBUILD/pkg/repository/sqlite3/ddl/1_table_devices.up.sql

8 lines
437 B
MySQL
Raw Normal View History

CREATE TABLE devices (
device_id CHAR(36) NOT NULL,
device_name VARCHAR(64) NOT NULL,
device_location VARCHAR(64),
creation_date TIMESTAMP DEFAULT (datetime('now', 'localtime')) NOT NULL,
update_date TIMESTAMP,
CONSTRAINT pk_devices PRIMARY KEY (device_id)
);