Store location in seperate table

This commit is contained in:
jvyden 2021-10-06 17:05:57 -04:00
commit b2428b6ba8
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
6 changed files with 62 additions and 15 deletions

17
DatabaseMigrations/1.sql Normal file
View file

@ -0,0 +1,17 @@
create table ProfileCardLocations
(
UserId int not null,
LocationX int not null,
LocationY int not null
);
create unique index ProfileCardLocations_UserId_uindex
on Locations (Id);
alter table Locations
add constraint ProfileCardLocations_pk
primary key (Id);
alter table Users
add LocationId int null;