(toggl-portal): Add project caching

This commit is contained in:
2023-11-06 20:10:10 +00:00
parent 8e9f8538de
commit 64570190c8
5 changed files with 41 additions and 7 deletions
@@ -11,8 +11,8 @@ impl MigrationTrait for Migration {
Table::create()
.table(Project::Table)
.if_not_exists()
.col(ColumnDef::new(Project::Id).integer().not_null())
.col(ColumnDef::new(Project::TogglId).big_unsigned().not_null())
.col(ColumnDef::new(Project::Id).integer().primary_key().auto_increment().not_null())
.col(ColumnDef::new(Project::TogglId).big_unsigned().not_null().unique_key())
.col(
ColumnDef::new(Project::WorkspaceId)
.big_unsigned()