huellas/migrations/20220717192031_create_places_table.sql

12 lines
316 B
MySQL
Raw Normal View History

2022-07-17 17:04:48 -04:00
CREATE TABLE places (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name VARCHAR NOT NULL,
address VARCHAR NOT NULL,
open_hours VARCHAR NOT NULL,
icon VARCHAR NOT NULL,
description VARCHAR NOT NULL,
longitude REAL NOT NULL,
latitude REAL NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE
);