Inital commit
This commit is contained in:
13
apiHandler/opensensemap/db_table_config.sql.template
Normal file
13
apiHandler/opensensemap/db_table_config.sql.template
Normal file
@ -0,0 +1,13 @@
|
||||
DROP TABLE IF EXISTS `opensensemap`
|
||||
#NL
|
||||
CREATE TABLE IF NOT EXISTS `opensensemap` (
|
||||
`id` BIGINT unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
||||
`description` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
||||
`source_id` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
||||
`loc` POINT NOT NULL,
|
||||
`protocol_id` SMALLINT unsigned NOT NULL,
|
||||
`link` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
||||
UNIQUE (id)
|
||||
);
|
||||
#NL
|
Reference in New Issue
Block a user