Skip to content

Instantly share code, notes, and snippets.

@pcnoic
Created August 12, 2021 12:15
Show Gist options
  • Save pcnoic/1db02da87b2a61ea6e3c4201bc245c52 to your computer and use it in GitHub Desktop.
Save pcnoic/1db02da87b2a61ea6e3c4201bc245c52 to your computer and use it in GitHub Desktop.
create table for pois
CREATE TABLE points_of_interest(
id BIGINT(20) UNSIGNED NOT NULL PRIMARY KEY
,type_id BIGINT(20) UNSIGNED NOT NULL
,name VARCHAR(77) NOT NULL
,latitude FLOAT NOT NULL
,longitude FLOAT NOT NULL
,active BIT NOT NULL
,created_at DATETIME NOT NULL
,updated_at DATETIME NOT NULL
,description VARCHAR(85) NOT NULL
,tel VARCHAR(50)
,fax VARCHAR(38)
,mail VARCHAR(81)
,website VARCHAR(50)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment