volleyballsimtypes 0.0.456 → 0.0.457
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56,6 +56,10 @@ class TeamModel extends sequelize_1.Model {
|
|
|
56
56
|
{ model: _1.TacticsModel, as: 'tactics' }
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
+
// A partial, case-insensitive UNIQUE index on lower(btrim(name)) WHERE active enforces unique team names
|
|
60
|
+
// among active teams. It lives in migration 2026-07-01-add-team-name-unique.sql + vb_sim.sql, not here:
|
|
61
|
+
// Sequelize's `indexes` can't cleanly express a partial functional index, prod applies it via migration,
|
|
62
|
+
// and local DBs seed it from vb_sim.sql.
|
|
59
63
|
indexes: [{
|
|
60
64
|
name: 'Team_pk',
|
|
61
65
|
unique: true,
|
|
@@ -53,6 +53,10 @@ export class TeamModel extends Model {
|
|
|
53
53
|
{ model: TacticsModel, as: 'tactics' }
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
|
+
// A partial, case-insensitive UNIQUE index on lower(btrim(name)) WHERE active enforces unique team names
|
|
57
|
+
// among active teams. It lives in migration 2026-07-01-add-team-name-unique.sql + vb_sim.sql, not here:
|
|
58
|
+
// Sequelize's `indexes` can't cleanly express a partial functional index, prod applies it via migration,
|
|
59
|
+
// and local DBs seed it from vb_sim.sql.
|
|
56
60
|
indexes: [{
|
|
57
61
|
name: 'Team_pk',
|
|
58
62
|
unique: true,
|