v1.2.0: planes.owner_id + ownership checks + per-player onboarding (ISS-108, ISS-109)
CI / build + unit + e2e (pull_request) Successful in 13m46s
CI / build + unit + e2e (pull_request) Successful in 13m46s
This commit is contained in:
@@ -6,6 +6,10 @@ import { integer, real, sqliteTable, text } from 'drizzle-orm/sqlite-core';
|
||||
|
||||
export const planes = sqliteTable('planes', {
|
||||
id: text('id').primaryKey().notNull(),
|
||||
// v1.2.0 (ISS-109): owner's players.id — every plane action requires the session player to own
|
||||
// the plane (403 otherwise). Legacy rows backfill to 'local' in open(); fresh installs and
|
||||
// onboarding stamp it explicitly on insert.
|
||||
ownerId: text('owner_id').notNull(),
|
||||
model: text('model').notNull(),
|
||||
// v0.39.0 (ISS-069): 'repairing' = grounded in the shop until repairUntilSimTime passes; the
|
||||
// engine flips it back to 'available' on a tick. All status guards key off 'available'.
|
||||
|
||||
Reference in New Issue
Block a user