CREATE TABLE IF NOT EXISTS police_files (
  player_id UUID NOT NULL,
  degree INTEGER NOT NULL DEFAULT 0,
  crime_points INTEGER NOT NULL DEFAULT 0,
  total_crimes INTEGER NOT NULL DEFAULT 0,
  violent_crimes INTEGER NOT NULL DEFAULT 0,
  arrest_count INTEGER NOT NULL DEFAULT 0,
  escape_count INTEGER NOT NULL DEFAULT 0,
  last_crime_date TIMESTAMP,
  pardon_count INTEGER NOT NULL DEFAULT 0,
  is_permanent BOOLEAN NOT NULL DEFAULT false,
  updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
  CONSTRAINT police_files_pkey PRIMARY KEY (player_id),
  CONSTRAINT police_files_player_fkey FOREIGN KEY (player_id) REFERENCES players(id) ON DELETE CASCADE
);
