Assign shard_number to model instance on create