From e9129acb71bf77a39c88a57fddc19090533b8759 Mon Sep 17 00:00:00 2001 From: Rhys Nute <nuterd@cardiff.ac.uk> Date: Thu, 30 Nov 2023 22:02:16 +0000 Subject: [PATCH] tidied schema --- src/main/resources/schema.sql | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/src/main/resources/schema.sql b/src/main/resources/schema.sql index c10ffb81..890adec1 100644 --- a/src/main/resources/schema.sql +++ b/src/main/resources/schema.sql @@ -1,15 +1,18 @@ drop table if exists trail; -create table if not exists trail( - trailID bigint auto_increment primary key, - name varchar(100) -) engine=InnoDB; -drop table if exists locations; -create table if not exists locations( -locationID bigint auto_increment primary key, -name varchar(100) -) engine=InnoDB; -drop table if exists users; -create table if not exists users( - userID bigint auto_increment primary key, - name varchar(100) -) engine=InnoDB; \ No newline at end of file + create table if not exists trail + ( + trailID bigint auto_increment primary key, + name varchar + ) engine=InnoDB; + drop table if exists locations; + create table if not exists locations + ( + locationID bigint auto_increment primary key, + name varchar + ) engine=InnoDB; + drop table if exists users; + create table if not exists users + ( + userID bigint auto_increment primary key, + name varchar + ) engine=InnoDB; \ No newline at end of file -- GitLab