Markus Pesch
4931c63c10
changes: - Add postgres backend - Modified or added table attributes. UpdateDate, ForeignKeys, Booleans - Fix test for sqlite and postgres. Compare json instead the struct.
7 lines
357 B
SQL
7 lines
357 B
SQL
CREATE TABLE IF NOT EXISTS devices (
|
|
device_id CHAR(36) PRIMARY KEY,
|
|
device_name VARCHAR(64) NOT NULL,
|
|
device_location VARCHAR(64),
|
|
creation_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
|
update_date TIMESTAMP
|
|
); |