get back to where we were. but now with sea_orm and a more sane structure
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-07-14 22:29:35 +02:00
parent 35bde07b39
commit e33a734199
26 changed files with 126 additions and 312 deletions

View File

@@ -40,6 +40,7 @@ impl MigrationTrait for Migration {
manager
.create_index(
Index::create()
.name("user_id_index")
.table(User)
.col(users::Column::UserId)
.to_owned(),

View File

@@ -40,6 +40,7 @@ impl MigrationTrait for Migration {
manager
.create_index(
Index::create()
.name("device_id_index")
.table(Device)
.col(devices::Column::DeviceId)
.to_owned(),
@@ -48,6 +49,7 @@ impl MigrationTrait for Migration {
manager
.create_index(
Index::create()
.name("user_uuid_index")
.table(Device)
.col(devices::Column::UserUuid)
.to_owned(),

View File

@@ -35,6 +35,7 @@ impl MigrationTrait for Migration {
manager
.create_index(
Index::create()
.name("device_uuid_index")
.table(Session)
.col(sessions::Column::DeviceUuid)
.to_owned(),